Skip to content
Info disclosure Advisory Advanced

Microsoft Azure Sphere Littlefs truncate information disclosure vulnerability

A truncate operation on a file in the littlefs filesystem can cause a read to return uninitialized memory from a cached page, leaking data from other processes. An attacker with local access can use syscalls to trigger this information disclosure.

Lilith Follow

Originally disclosed on Cisco Talos

High 7.1 View original

An information disclosure vulnerability exists in the Littlefs filesystem functionality of Microsoft Azure Sphere 20.06. A specially crafted set of syscalls can cause an uninitialized read, resulting leakage of information.

Lilith >_>, Claudio Bozzato and Dave McDaniel, 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 a page in the page cache is marked as up-to-date but contains uninitialized data, and the read path copies it to userspace without zeroing the extended portion.

Impact

An attacker could read uninitialized memory that may contain information from other processes, leading to information disclosure.

What the attacker needed

Local access to the device; ability to execute syscalls; mutable storage enabled

How it was found

  1. Open a file with create and read-write flags.
  2. Write a few bytes to the file.
  3. Close the file.
  4. Truncate the file to a larger size.
  5. Read the file to observe leaked data.

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.

When a file is made larger with the truncate command, the new space should be filled with zeros. Instead, the system sometimes returns old data that was left in memory, which could belong to other programs. This means someone with access to the device could read information they should not see.

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

3 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.