<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Futex on kalfaoglu.net</title><link>https://blog.kalfaoglu.net/tags/futex/</link><description>Recent content in Futex on kalfaoglu.net</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 16 Jul 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://blog.kalfaoglu.net/tags/futex/index.xml" rel="self" type="application/rss+xml"/><item><title>GhostLock (CVE-2026-43499): The 15-Year-Old Kernel Bug That Hands Anyone Root</title><link>https://blog.kalfaoglu.net/posts/2026-07-16-ghostlock-cve-2026-43499-kernel-lpe-en/</link><pubDate>Thu, 16 Jul 2026 00:00:00 +0000</pubDate><guid>https://blog.kalfaoglu.net/posts/2026-07-16-ghostlock-cve-2026-43499-kernel-lpe-en/</guid><description>&lt;p&gt;A working proof-of-concept for &lt;a href="https://www.cve.org/CVERecord?id=CVE-2026-43499"&gt;CVE-2026-43499&lt;/a&gt;, nicknamed GhostLock, went public on July 7, 2026. It hands any unprivileged local user a root shell in about five seconds, and it works from inside a container to escape to the host. If you run Linux servers — shared hosting, VPS, or bare metal — this is the one to patch before anything else this week.&lt;/p&gt;
&lt;h2 id="what-ghostlock-is"&gt;What GhostLock is&lt;/h2&gt;
&lt;p&gt;The bug lives in &lt;code&gt;kernel/locking/rtmutex.c&lt;/code&gt;, on the futex priority-inheritance (PI) path. When the kernel handles a &lt;code&gt;FUTEX_CMP_REQUEUE_PI&lt;/code&gt; requeue and detects a deadlock cycle, it rolls back with &lt;code&gt;-EDEADLK&lt;/code&gt; by calling &lt;code&gt;remove_waiter()&lt;/code&gt;. The problem: that helper clears &lt;code&gt;pi_blocked_on&lt;/code&gt; on the &lt;em&gt;wrong&lt;/em&gt; thread — not the sleeping thread it should be cleaning up, but the currently running task. That leaves a live thread holding a dangling pointer into already-freed kernel stack memory. Stack use-after-free.&lt;/p&gt;</description></item></channel></rss>