Skip to content
Memory corruption Write-up Advanced

Linux Kernel Use-After-Free Exploitation Technique in Linux Kerne

The text describes a design property in the Linux kernel's SLUB sheaves where a union overlays an RCU callback function pointer with a barn list pointer, without an explicit state flag. An attacker who already has a memory write primitive could overwrite the function pointer and potentially redirect execution when the RCU callback fires.

Antonius W1sdom Follow

Published on medium.com

It’s been a long time since I last did Linux kernel exploit research; the last time was back in the Linux 2.6 era, right before I shifted my focus to kernel rootkits. However, in 2026, a fascinating development in Linux 7.0 brought me back to the field.

Antonius W1sdom, on medium.com

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

Root cause

Likely the absence of an explicit state marker in struct slab_sheaf, combined with a union that overlays rcu_head.func and barn_list.prev at the same offset, allows a write to be misinterpreted as a function pointer.

Impact

If an attacker already has a memory write primitive and knows the sheaf address, they could overwrite the RCU callback pointer and potentially achieve code execution in kernel context.

What the attacker needed

Another vulnerability giving memory write; knowledge of target sheaf address; timing within RCU grace period

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.

The Linux kernel manages memory using a structure that can be interpreted in two different ways depending on what the kernel is doing at the time. One interpretation treats a certain spot as a pointer to a function to run later, while the other treats it as a link in a list. If an attacker can already write to that spot, they might trick the kernel into running their own code instead of the intended function.

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.

More by Antonius W1sdom

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.