Microsoft Azure Sphere Security Monitor SMSyscallWriteBlockToStageImage information disclosure vulnerability
The SMSyscallWriteBlockToStageImage syscall in Azure Sphere's Security Monitor fails to validate the source offset argument, allowing an attacker to read arbitrary memory by writing from any address in the Security Monitor's memory space to a staging buffer and then reading it back via SMSyscallReadFlash. This results in disclosure of sensitive information from the Security Monitor's entire memory space.
Originally disclosed on Cisco Talos
An information disclosure vulnerability exists in the Security Monitor SMSyscallWriteBlockToStageImage functionality of Microsoft Azure Sphere 21.01. A specially-crafted set of syscalls can lead to a disclosure of sensitive information.
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 SMSyscallWriteBlockToStageImage syscall does not validate the src_offset argument, allowing it to point anywhere in the Security Monitor's memory.
Impact
An attacker could disclose sensitive information from the Security Monitor's entire memory space.
What the attacker needed
High privileges (PR:H in CVSS)
How it was found
- Call SMSyscallOpenImageForStaging to allocate a staging buffer and obtain a handle.
- Call SMSyscallWriteBlockToStageImage with a crafted src_offset to copy data from an arbitrary Security Monitor memory address into the staging buffer.
- Call SMSyscallReadFlash to read back the staged data from flash, leaking the copied memory.
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. A syscall is a way for a program to ask the operating system to do something. The Security Monitor is a low-level part of the system that manages security. The bug lets someone with high privileges trick the Security Monitor into copying data from any memory location into a staging area, which they can then read, exposing secrets.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.