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.
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.
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
- Create a file in the mutable storage directory.
- Repeatedly truncate the file to a very large negative size (e.g., 0xFFFFFFFE), which fails but resets the quota counter.
- After each truncate, write more data to the file to consume additional quota.
- Continue until the /mnt/config partition is completely full.
- 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.