← Retour au blog
tech 13 July 2026

GhostLock: A 15-Year-Old Flaw in All Linux Distributions

GhostLock (CVE-2026-43499) is a critical vulnerability that has existed in the Linux kernel for over 15 years. This flaw enables privilege escalation and container escape without special configurations.

Article inspired by the original source
GhostLock, a stack-UAF that has existed in all Linux distributions for 15 years ↗ nebusec.ai

A Vulnerability Through Time

GhostLock, identified as CVE-2026-43499, stands as one of the most persistent and insidious vulnerabilities in the Linux kernel. Discovered by the Nebula Security team, this stack-UAF (Use After Free) has existed in all major Linux distributions since version 2.6.39 released in 2011, and was only patched with kernel version 7.1.

What is a stack-UAF?

A stack-UAF is a vulnerability that occurs when memory allocated on the stack is freed but remains accessible. This means malicious code can exploit this memory to perform unauthorized actions, such as taking control of a program's execution flow.

Origins of GhostLock

GhostLock was introduced during the rtmutex rework (“rtmutex: Simplify PI algorithm and make highest prio task get lock”) and went unnoticed for 15 years. This bug allows a local attacker without special privileges to gain a dangling pointer to kernel stack memory and write to an almost arbitrary address.

Exploiting GhostLock

The exploitation of GhostLock is particularly concerning because it does not require any special kernel configuration or privileges. By using regular threading syscalls, an attacker can not only gain root access but also escape secure container environments.

Impact and Rewards

In terms of security, every unpatched Linux distribution is vulnerable, meaning millions of systems worldwide are potentially at risk. Google acknowledged the severity of this flaw by awarding $92,337 to Nebula Security for their work within the kernelCTF program.

Mitigation Measures

Addressing this vulnerability relies on applying a specific patch integrated into Linux kernel version 7.1. Another approach includes using mitigation techniques like RANDOMIZE_KSTACK_OFFSET, which helps make stack address prediction more difficult.

Conclusion

GhostLock is a stark reminder of the importance of continuous vigilance in managing Linux systems. To secure your infrastructures, it's crucial to keep your systems updated with the latest security patches.

Let's discuss your project in 15 minutes.

GhostLock Linux stack-UAF CVE-2026-43499 vulnerability
Deepthix newsletter · 100% AI · every Monday 8am

An AI agent reads tech for you.

Our AI agent scans ~200 sources per week and ships the best articles to your inbox Monday 8am. Free. One click to unsubscribe.

Visit the newsletter page →

Want to automate your operations?

Let's talk about your project in 15 minutes.

Book a call