Root Exploit Vulnerability in Kernel 2.6.30
A recently discovered root exploit attacked the newest Linux versions and circumvented protection systems such as SELinux and AppArmor. A solution has been found.
An entry in the Internet Storm Center's Handler's Diary by Bojan Zdrnja entitled "A new fascinating Linux kernel vulnerability" describes the root exploit. The exploit code had been exposed by Brad Spengler, himself a developer for the grsecurity open source security application, in a "full-disclosure" on Grok.org. Zdrnja explains, "Why is it so fascinating? Because a source code audit of the vulnerable code would never find this vulnerability (well, actually, it is possible but I assure you that almost everyone would miss it). Spengler assures that only Kernel 2.6.30 and later are affected, with the exploit code running on 32-bit and 64-bit versions.
The security hole results from a vulnerability in the net/tun implementation. Even though the code correctly checks for a certain NULL variable, the compiler removes the if statement, thereby allowing access to otherwise inaccesible parts of memory. Zdrnja describes the "relatively easy" fix: "the check has to be done before assigning the value to the sk structure."
Thus the compiler introduces a vulnerability in the binary code that didn't exist in the source code, leading Zdrnja to the conclusion, "Fascinating research that again shows how security depends on every layer, and how even [a] very expensive source code audit can result in missed vulnerabilities."
ERRATA: Our original news indicated that Kernel 2.6.30 was previously released to customers primarily in a build for RHEL 5. We were wrong. The truth is that the exploit applies to Kernel 2.6.30 and later, as well as Kernel 2.6.18 in RHEL 5. The source code of the exploit, therefore, is compilable with different options. We apologize for our error.
Comments
comments powered by DisqusSubscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Plasma 6.3 Ready for Public Beta Testing
Plasma 6.3 will ship with KDE Gear 24.12.1 and KDE Frameworks 6.10, along with some new and exciting features.
-
Budgie 10.10 Scheduled for Q1 2025 with a Surprising Desktop Update
If Budgie is your desktop environment of choice, 2025 is going to be a great year for you.
-
Firefox 134 Offers Improvements for Linux Version
Fans of Linux and Firefox rejoice, as there's a new version available that includes some handy updates.
-
Serpent OS Arrives with a New Alpha Release
After months of silence, Ikey Doherty has released a new alpha for his Serpent OS.
-
HashiCorp Cofounder Unveils Ghostty, a Linux Terminal App
Ghostty is a new Linux terminal app that's fast, feature-rich, and offers a platform-native GUI while remaining cross-platform.
-
Fedora Asahi Remix 41 Available for Apple Silicon
If you have an Apple Silicon Mac and you're hoping to install Fedora, you're in luck because the latest release supports the M1 and M2 chips.
-
Systemd Fixes Bug While Facing New Challenger in GNU Shepherd
The systemd developers have fixed a really nasty bug amid the release of the new GNU Shepherd init system.
-
AlmaLinux 10.0 Beta Released
The AlmaLinux OS Foundation has announced the availability of AlmaLinux 10.0 Beta ("Purple Lion") for all supported devices with significant changes.
-
Gnome 47.2 Now Available
Gnome 47.2 is now available for general use but don't expect much in the way of newness, as this is all about improvements and bug fixes.
-
Latest Cinnamon Desktop Releases with a Bold New Look
Just in time for the holidays, the developer of the Cinnamon desktop has shipped a new release to help spice up your eggnog with new features and a new look.
Confusion
RHEL 5?