Linux Kernel NTFS3 Journal Heap-based Buffer Overflow Code Execution Vulnerability
The NTFS3 driver in the Linux kernel did not properly validate data from NTFS journal log records, allowing a write past the end of an allocated buffer. A local attacker who can already run low-privileged code could exploit this to execute code in the kernel.
This vulnerability allows local attackers to execute arbitrary code on affected installations of Linux Kernel. An attacker must first obtain the ability to execute low-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 the NTFS3 journal log record parser trusted length or offset fields in the on-disk data without checking them against the size of the allocated buffer.
Impact
A local attacker with low-privileged code execution could write past a heap buffer and execute code in the kernel context.
What the attacker needed
Ability to run low-privileged code locally
The fix
Linux issued an update to correct this 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.
The kernel is the core part of the operating system that manages memory and hardware. A driver that reads a filesystem's journal (a log of recent changes) trusted the data in that log too much, so a crafted log entry could overwrite memory beyond its intended space. Someone who can already run a normal program on the machine could use this to run their own code with the highest privileges.
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.