GhostLock (CVE-2026-43499): A 15-Year-Old Linux Kernel rtmutex Bug Leads to Root and Container Escape

The rtmutex (real-time mutex) in the Linux kernel implements priority inheritance to prevent priority inversion between threads. It is old locking code that has seen few changes for more than a decade. In July 2026, researchers disclosed a use-after-free vulnerability in this code that dates back to kernel 2.6.39 (2011). Any local user can get root with ordinary threading calls, with no special privileges or configuration, and the attack also escapes containers. The researchers named it “GhostLock” (CVE-2026-43499), and the public exploit has a 97% success rate. This post covers the root cause, the exploit chain, the affected versions, and the patch status.

What is GhostLock (CVE-2026-43499)?

GhostLock is a use-after-free in the priority inheritance cleanup path of the rtmutex code. The vulnerable code appeared in kernel 2.6.39 in 2011, and major distributions shipped it by default for about 15 years.

The security team Nebula turned it into a full exploit chain: a kernel memory leak, arbitrary read/write, control-flow hijacking, and a root shell. The team received $92,337 from the Google kernelCTF program.

The attack needs no network access and no special capabilities. An ordinary multithreaded program that runs locally is enough, and the public proof of concept (PoC) gets a root shell in about 5 seconds.

Root cause: a pointer mix-up in remove_waiter()

The bug is in the remove_waiter() cleanup path of the rtmutex code. When this function removes a waiter from the priority inheritance chain, it clears the pointer of the current task instead of the waiter task. This leaves a dangling pointer to kernel stack memory that is already freed.

According to the Nebula analysis, the attacker uses three futexes and several threads to create a priority inversion deadlock on purpose. The attacker then refills the freed stack frame with a fake waiter structure, a reclaim technique similar to heap spraying. The attacker extends the resulting constrained write into arbitrary kernel read/write, and then hijacks control flow to get a root shell. The race needs precise timing, but once it succeeds, the exploit is very reliable.

The IonStack exploit chain and container escape

GhostLock is a local privilege escalation on its own, but it is also the second half of a larger chain that Nebula calls “IonStack”. The first half is a Firefox vulnerability (CVE-2026-10702) that gets code execution in the browser and escapes its sandbox. GhostLock then escalates from the sandbox escape to kernel root. A full path from a web page visit to root is therefore possible.

Container escape is the more important point. GhostLock is a bug in the host kernel, not in the application layer. A process in a container shares the kernel, so it can trigger the bug too. Namespaces and cgroups give no protection against GhostLock, and one compromised container can take over the whole host.

Affected versions and patch timeline

The vulnerable code exists from kernel 2.6.39 up to the fix. The upstream fix, commit 3bfdc63936dd, was merged in Linux 7.1. Distributions backport the fix to their own kernel branches.

  • AlmaLinux: fixed in kernel-4.18.0-553.141.2.el8_10 (8), kernel-5.14.0-687.24.1.el9_8 (9), and kernel-6.12.0-211.32.1.el10_2 (10) or later.
  • RHEL: Red Hat confirmed that all releases from 6 to 10 and the layered products are affected.
  • Ubuntu: as of July 8, the CVE tracker showed 24.04, 22.04, and 20.04 LTS as vulnerable or with fixes in progress. See the related notices, such as USN-8488-1, USN-8489-1, and USN-8507-1.
  • CloudLinux: KernelCare provides live patches that need no reboot.

No exploitation in the wild has been reported so far. But the exploit code is public and reliable, so many observers think that attacks are only a matter of time.

Cautions

  • Apply the kernel update first, on servers, desktops, and container hosts. The PoC is public and reliable.
  • Do not rely on the kernel version number alone. Distributions backport security fixes to their own branches, so check the vendor CVE notice or the package changelog.
  • Do not assume that containers are safe. Container isolation gives no protection against GhostLock, so patching the host kernel is the container security fix.
uname -r
apt changelog linux-image-$(uname -r) 2>/dev/null | grep -i '43499\|GhostLock'
rpm -q --changelog kernel 2>/dev/null | grep -i '43499\|GhostLock'

These commands search the changelog of the installed kernel package for the CVE-2026-43499 fix, on Debian/Ubuntu and on RHEL-based systems. If they print nothing, the fix is probably not installed yet. Check the security notices of your distribution again.

Conclusion

GhostLock comes from rtmutex priority inheritance code that nobody examined for almost 15 years. It shows that “old, stable code is safe” is a dangerous assumption. The IonStack chain starts from a browser sandbox escape, and container isolation fails against a shared kernel. The impact is not limited to one local server. If a system is not patched yet, update its kernel first.

This is a referral link. I may receive credit if you sign up, at no extra cost to you.

Try it on a cloud server — Deploy Ubuntu on Vultr

References

Leave a Reply