Skip to content
Info disclosure Advisory Advanced CVE-2020-6106

F2fs-Tools F2fs.Fsck init_node_manager Information Disclosure Vulnerability

A crafted f2fs filesystem image can cause an out-of-bounds heap read in f2fs.fsck's init_node_manager function because the NAT bitmap size is not properly validated. An attacker could disclose heap memory contents, potentially leading to further exploitation.

Lilith >_> Follow

Originally disclosed on Cisco Talos

Medium 4.4 View original

An exploitable information disclosure vulnerability exists in the initnodemanager functionality of F2fs-Tools F2fs.Fsck 1.12 and 1.13. A specially crafted filesystem can be used to disclose information.

Lilith >_>, on Cisco Talos

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 NAT bitmap size taken from the checkpoint is not sufficiently validated against the actual allocated buffer size, leading to an out-of-bounds read during memcpy.

Impact

An attacker could disclose heap memory contents, which may contain sensitive information, and potentially use this as a step towards further exploitation, such as gaining privileges during boot on Android devices.

What the attacker needed

Ability to provide a malicious filesystem image; f2fs.fsck executed on the image

How it was found

  1. Craft a malicious f2fs filesystem image with a large nat_ver_bitmap_bytesize value in the checkpoint.
  2. Run f2fs.fsck on the crafted image.
  3. The tool reads beyond the allocated checkpoint buffer during init_node_manager, causing a crash or information disclosure.

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.

f2fs.fsck is a tool that checks the health of a filesystem used on some Android devices. A malicious filesystem image can make the tool read more data than it should from memory, which could leak sensitive information. This is called an out-of-bounds read.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Lilith >_>

View all

148 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.