UPDATE: Flaw leaves Linux computers vulnerable

A flaw in a software-compression library used in all versions of Linux could leave the lion's share of systems based on the open-source operating system open to attack, sources in the security community have said.

Several other operating systems that use open-source components are vulnerable too varying degrees as well.

The software bug--known as a double-free vulnerability--causes key memory-management functions in the zlib compression library to fail, a condition that could allow a smart attacker to compromise computers over the Internet, said Dave Wreski, director for open-source security company Guardian Digital.

"It is just a matter of time before an exploit is developed," Wreski said.

The flaw, discovered by Linux user Matthias Clasen and Owen Taylor, an engineer at Linux-software company Red Hat, affects any Linux program that uses the zlib library for decompression, including the core software of the operating system, the kernel.

Because the problem is in a library--a set of code that can be shared by any application that links to it--multiple programs could be affected by the flaw. In fact, many non-Linux operating systems use the library, making them vulnerable as well, said Mark Cox, senior director of engineering at Red Hat.

"Zlib is used on all sorts of operating systems: the BSDs and even Solaris," Cox said. "While any operating system that uses the library is affected, the ability to exploit the vulnerability depends on the operating system."

The graphical basis for the Linux desktop, X11, uses the library, as does the common software foundation for the Linux-based Netscape and Galeon browsers. Many image-editing programs, which use the library for compression, also will be affected by the flaw.

The library's functions are "used in network compression, so connecting to untrusted services could allow a hostile site to allocate space in a way that triggers a buffer overflow," Wreski said.

"Because the vulnerability is in a library, that means that the attacker has to identify programs that use the library," said Dave Ahmad, threat analysis manager for security information company SecurityFocus. "There are also a bunch of applications that borrow code from the library."

Weaving the code directly into another application--known as statically linking--means that fixing the programs is much more difficult. Where simply installing a new version of the zlib software on systems will repair the flaw in applications that merely access the library, any program that has borrowed the code itself will have to be patched on its own.

Known as a "double-free vulnerability," the software bug causes programs that use the zlib compression library to behave unpredictably when a malicious program tries to free memory more than once. Most legitimate programs wouldn't try to repeatedly free memory except by accident, but attackers could use such a technique to attempt to force the operating system to run code designed to take over the computer.

Originally, Clasen, a Linux user, found the problem when an image he had created in the open-source Portable Network Graphics, or PNG, format crashed a popular image program. When notified of the problem, Red Hat's Taylor discovered that the issue wasn't with the program but the library used for decompression.

"Owen found that it was a bigger problem than was first thought," said Red Hat's Cox. "At that stage, we realised that there was a significant security hole."

Red Hat worked with the Computer Emergency Response Team (CERT) Coordination Centre at Carnegie Mellon University to disseminate information about the flaw to software companies.

CERT/CC is soon expected to release more information, but would not comment on the vulnerability.

Advertisement

Talkback 6 comments

    Oh my what a turn up for the books, a non-Microsoft product with a MASSIVE security hole. I hope that this shows all the people in the anti-MS world, that regardless of how open source your product is, it is still vulnerable to security issues. Anonymous -- 12/03/02

    Oh my what a turn up for the books, a non-Microsoft product with a MASSIVE security hole. I hope that this shows all the people in the anti-MS world, that regardless of how open source your product is, it is still vulnerable to security issues.

    Let me guess all the people that have jumped on the Linux, it is free, it is secure and only the most intelligent, good looking people use it bandwagon, will now do turning to the BeOS and Oracle to control there networks, rather than investing in MS Software holes and all.

    Oh my what a turn up for the books, a non-Microsoft product with a MASSIVE security hole. I hope that this shows all the people in the anti-MS world, that regardless of how open source your product is, it is still vulnerable to security issues. Anonymous -- 12/03/02

    Oh my what a turn up for the books, a non-Microsoft product with a MASSIVE security hole. I hope that this shows all the people in the anti-MS world, that regardless of how open source your product is, it is still vulnerable to security issues.

    Let me guess all the people that have jumped on the Linux, it is free, it is secure and only the most intelligent, good looking people use it bandwagon, will now do turning to the BeOS and Oracle to control there networks, rather than investing in MS Software holes and all.

    comments: 1 No known exploits 2 A fix was posted for Debian on 11th March. Chances with Microsoft?????Anonymous -- 12/03/02

    comments:
    1 No known exploits
    2 A fix was posted for Debian on 11th March. Chances with Microsoft?????

    comments on previous by Brian. gee Brian it must be so great to be as smart and good looking as you and your fellow Linux users, who are "expert" users because you decide to be different from the rest of the Operating System world. (hey thaAnonymous -- 12/03/02

    comments on previous by Brian.
    gee Brian it must be so great to be as smart and good looking as you and your fellow Linux users, who are "expert" users because you decide to be different from the rest of the Operating System world. (hey that means MAC users are "experts" to.)

    For the unlucky normal people out there who are dumb Windows users (people like me and 91% of the O/S world), the Windows Update website(funnily enough a website built for every Windows Product since Win98) service from Microsoft is a convient way of updating your software, free of charge, quickly and easily.

    So when someone announces a problem it usually gets fixed quickly?

    I accept that smart and good looking people who can use Linux as well as the creators who work full time on it, don't need the help of other people to solve their problems. For the Mum's and Dad's, Corporate/Government and Education Users(that 91% of dumb operating system users) people use the Microsoft easy to use system called service packs and critical updates.

    Microsoft fix a problem that occurs on 91% of the worlds WinTel machines, you can understand why it is might take a little longer for them to publish it. It must be because MS Coders/Project Managers are not as smart and as good looking as the Linux users.

    Hi Hydrans My point is that OSS has the advantages of rapid discovery and rapid fixing of problems [hey if you are _really_ smart and handsome you *CAN* fix it yourself]. I also have to say I spend lots of my time fixing Wintel problems, buAnonymous -- 12/03/02

    Hi Hydrans
    My point is that OSS has the advantages of rapid discovery and rapid fixing of problems [hey if you are _really_ smart and handsome you *CAN* fix it yourself].

    I also have to say I spend lots of my time fixing Wintel problems, but I still use WinXP and a lot of winapps.

    Ever read the article on reverse engineering some MS products? THATS why fixes take a little while - after all a fix for a problem is a fix, on 1% or 91% of machines.

    Cheers

    Lets face it, nothing could possibly have more security flaws than Windows!Anonymous -- 15/03/02

    Lets face it, nothing could possibly have more security flaws than Windows!

Add your opinion


Latest Videos

Blogs

  • Chris Duckett PayPal launches Aussie developer program
    PayPal announced the opening of its certification program for Australian developers today, making Australia the first country outside of the US to offer certification.
  • Array Cash cow in a BigTinCan?
    Around one third of Australia's telcos have shut their doors over time, but that isn't stopping new ventures hoping to chip away at carriers' mobile call bonanza. By fighting carriers at the smartphone rather than the home phone, could the latest two contenders be onto something big?
  • Array A third of the way to a zettabyte
    This week on Twisted Wire we look at how internet usage is changing in Australia and around the world. How are we meeting this demand and how is the cost structure changing for the service provider?
  • More blogs »

Tags

Back to top

Featured