F2fs-Tools F2fs.Fsck filesystem checking Information Disclosure Vulnerability
A crafted f2fs filesystem image can cause an out-of-bounds read in f2fs.fsck's get_dnode_of_data function, leading to information disclosure. An attacker can provide a malicious file to trigger this vulnerability.
Originally disclosed on Cisco Talos
An exploitable information disclosure vulnerability exists in the getdnodeofdata functionality of F2fs-Tools F2fs.Fsck 1.13. A specially crafted f2fs filesystem can cause information disclosure resulting in a information disclosure.
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
The tool uses a user-controlled value from the filesystem image to calculate an index into an array without proper bounds checking, leading to an out-of-bounds read.
Impact
An attacker could disclose sensitive information from the tool's memory, and on Android could potentially gain privileges during boot, though on Android 10 the mmap layout may prevent defeating address space randomization.
What the attacker needed
Ability to provide a malicious f2fs image; victim runs f2fs.fsck on the image
How it was found
- Craft a malicious f2fs filesystem image with a specially crafted inode.
- Run f2fs.fsck on the crafted image.
- The tool processes the inode and triggers the out-of-bounds read.
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.
This is a bug in a tool that checks a type of filesystem (a way of organising files on disk). The tool reads a file that describes the filesystem, and because it trusts some numbers in that file without checking them, it can read memory outside the intended area. That can leak information from the tool's memory.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.