Linux Kernel CIFS File System Use-After-Free Privilege Escalation Vulnerability
A use-after-free flaw in the Linux kernel's CIFS file system code (cifs_newfile_info) fails to check that an object still exists before using it. A local attacker who can already run high-privileged code could exploit this to escalate privileges and execute code in kernel context.
Originally disclosed on Zero Day Initiative
This vulnerability allows local attackers to escalate privileges on affected installations of Linux Kernel. An attacker must first obtain the ability to execute high-privileged code on the target system in order to exploit this vulnerability.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a missing existence check on an object in cifs_newfile_info before it is dereferenced, leading to a use-after-free.
Impact
An attacker with high-privileged code execution could escalate privileges and run arbitrary code in the kernel context.
What the attacker needed
Ability to execute high-privileged code locally
The fix
Linux issued an update to correct the vulnerability.
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 report has not been written yet. The Original tab links to the source.
A use-after-free happens when a program frees a piece of memory but then keeps using it, so an attacker can arrange for that memory to hold something else. Here the bug is in the part of the Linux kernel that talks to CIFS network file shares. The attacker needs to already have high privileges on the machine, so this is mainly a way to go from high privileges to full kernel control.
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.