Language Selection

English French German Italian Portuguese Spanish

Insecurity blues: What I learned from my buggy code

Filed under
Software

It hasn't been a good month for my code. Samba, the project I'm responsible for, has had to announce several security flaws. Unfortunately some of them were in code I wrote. I always do a large amount of soul-searching whenever that happens. There's nothing worse than finding out something you were responsible for is the cause of many thousands of people having to waste their time rolling out patches. It always makes me wonder if the time has come to give up this programming lark and end my days peacefully in management, messing up other people's code instead of creating my own.

It's very educational however to look at the causes of the flaws, and try and learn what we can from the bugs and also our reactions to them. Samba is an old program. The initial code was originally written 15 years ago. At that time, modern security problems such as integer wrap (where adding two numbers together can end up with a number smaller than both of them, due to the fixed sizes of integers that processors deal with), or heap overflow vulnerabilities (where overwriting unallocated memory on the program heap can allow a clever attacker to seize control of a program) were unheard of. We knew about buffer overruns (where reading more data into a buffer than was originally allocated for it can cause a security breach) and denial of service attacks, but 1992 was a simpler, less hostile time for network software development. Most initial deployments of Samba were on networks isolated from the main Internet, by technically advanced administrators who knew how to download the source code from the Internet.

More here




More in Tux Machines

Leaked videos, screenshots reveal an HTC One running Android Lollipop

No, you won’t get this gift in time for Christmas, but perhaps seeing an HTC One running Lollipop may make the wait slightly less painful. A batch of videos and screenshots show HTC’s flagship with the newest build of Android, though of course it’s merged with the Sense 6.0 user interface (the HTC One currently runs Sense 5.0). We got a small hint of how Lollipop looks on the One in November, but this leak lays out what the entire operating system makeover looks in clearer detail. Read more

The winning Linux kernel live patch: All of the above

Life's choices often amount to one of two options: Linux or Windows? Android or iOS? Kgraft or Kpatch? That last pair consists of the two major contenders for the technology Linux could use for live kernel patches. Now a winner is in, and it amounts to all of the above. According to a post on the official Linux kernel developer's mailing list, a kernel patching system that works with both Kgraft and Kpatch and uses "core functionality abstracted out of [those] already existing implementations" has been proposed as an addition to the Linux 3.20 kernel. Read more

UNIX Industry Banks on Linux Strategies

Struggling UNIX server makers are strengthening their Linux strategy in line with the open-source application environment. The move is aimed at maintaining remaining customers, since users are increasingly abandoning UNIX servers. However, it is receiving a lukewarm response from the market. According to industry sources on Dec. 22, server vendors such as IBM and HP are concentrating on the development of products so that the Linux operating system and related applications can be used as UNIX servers. Read more

Mageia Beta Delayed, Christmas Quiz, and 7 Best Alternatives

Today in Linux news the Mageia project announced another delay in version 5 Beta 2. The Linux Voice is running a Linux quiz for Christmas and Gary Newell offers up his list of the seven best alternative Linux distributions of the year. The Register says 2015 will be the year of Linux - on mobile. Three reviews need to be highlighted and, finally today, Matt Hartley says everyone should switch to Ubuntu MATE. Read more Also: Linux Bloat, Linux Lite, and Devuan Update