(CVE-2024-36972) Linux Kernel Race Condition in unix_gc on oob_skb Leading to Double Free
A use-after-free flaw in the Linux kernel's Unix socket garbage collector could be triggered by a local attacker, leading to a double free. The text states this may allow a local attacker to elevate privileges to root.
starlabs.sg
Published on starlabs.sg
The vulnerability was introduced by commit 1279f9d9 (afunix: Call kfreeskb() for dead unix(sk)->oobskb in GC), which caused unixgc to free oobskb without holding unixstatelock:
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
A local attacker could potentially elevate privileges to root, though the text gives no proof-of-concept or reproduction detail.
What the attacker needed
Local access to the machine; Linux kernel 6.8 or later
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
When a program frees memory it no longer needs, it should stop using that memory. Here the kernel could free the same piece of memory twice, which can let an attacker who already has a login on the machine take control of the system.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.