CVE-2026–31431: Linux Sistemde Sessizce Root Olmak
A logic flaw in the Linux kernel crypto API, specifically in the algif_aead component, lets a low-privileged user alter the in-memory page cache copy of a setuid binary without touching the file on disk. The attacker can then place their own code in that memory and have it run with root privileges when the binary executes.
medium.com
Published on medium.com
Bugün Linux dünyasında oldukça ses getiren CVE-2026–31431, alışılagelmiş “local privilege escalation” (LPE) açıklarından biraz daha fazlasını vaat ediyor. İlk bakışta klasik bir yetki yükseltme hatası gibi dursa da, çalışma mantığı ve stabilite noktasında oldukça tehlikeli bir noktada.
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 a logic error in the kernel crypto API's algif_aead handling that allows writes to the page cache of a file the user should not be able to modify.
Impact
A low-privileged local user could gain root, and the technique could also be used to escape a container to the host; because only memory changes, disk-based forensic tools may miss it.
What the attacker needed
Local low-privileged access; vulnerable kernel version
The fix
Apply the vendor kernel updates promptly; disabling the algif_aead module is only a temporary workaround.
How it was found
- Pick a setuid binary such as su or sudo as the target.
- Change the file's contents through the page cache while it is still in RAM.
- Place the attacker's own code into that memory area.
- Run the binary so the system uses the modified in-memory copy with root rights.
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.
Some programs on Linux are marked so that they always run with full administrator (root) rights, for example the tools used to switch users. Normally the file on disk is protected, but the kernel keeps a copy of recently used files in memory to speed things up. This bug lets an ordinary user change that in-memory copy, so when the trusted program starts it runs the attacker's code as root.
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.