Skip to content
DoS Advisory Advanced CVE-2020-16986

Microsoft Azure Sphere Littlefs Quota denial of service vulnerability

A quota bypass in Azure Sphere's littlefs allows an attacker to fill the /mnt/config partition by repeatedly truncating a file to a huge negative size, which resets the used_bytes counter. This can cause a watchdog reset and denial of service, requiring full device recovery.

Lilith Follow

Originally disclosed on Cisco Talos

Critical 9.0 View original

A denial of service vulnerability exists in the Littlefs Quota functionality of Microsoft Azure Sphere 20.06. A specially crafted set of syscalls can cause a quota bypass and reboot.

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 an integer overflow in the quota charge calculation when truncating to a huge negative size causes the used_bytes counter to be reset to zero, bypassing the quota limit.

Impact

An attacker can fill the /mnt/config partition, causing a watchdog reset and denial of service; recovery may require a full device recovery.

What the attacker needed

Ability to run code on the device; mutable storage enabled

How it was found

  1. Create a file in the mutable storage directory.
  2. Repeatedly truncate the file to a very large negative size (e.g., 0xFFFFFFFE), which fails but resets the quota counter.
  3. After each truncate, write more data to the file to consume additional quota.
  4. Continue until the /mnt/config partition is completely full.
  5. Any further write attempt causes an infinite loop in lfs_dir_traverse, triggering a watchdog reset and denial of service.

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.

Azure Sphere is a platform for internet-of-things devices. It has a storage area for apps, and a quota limits how much space each app can use. The bug lets an app trick the quota system into thinking it has used no space, so it can keep writing until the storage is full. When full, the device crashes and reboots, and may need to be fully reset to work again.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

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.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.