Microsoft Azure Sphere Pluton SIGN_WITH_TENANT_ATTESTATION_KEY memory corruption vulnerability
A memory corruption vulnerability exists in the Pluton SIGN_WITH_TENANT_ATTESTATION_KEY functionality of Microsoft Azure Sphere 20.07. An attacker can issue an ioctl from the Normal World with a specially crafted digest object to trigger an out-of-bounds write in Pluton, potentially leading to arbitrary code execution.
A memory corruption vulnerability exists in the Pluton SIGNWITHTENANTATTESTATIONKEY functionality of Microsoft Azure Sphere 20.07. A sequence of specially crafted ioctl calls can cause memory corruption in Pluton.
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 Pluton firmware copies a user-controlled buffer of user-controlled length without any bounds check, leading to an out-of-bounds write.
Impact
An attacker could, with careful control of the size and contents of the buffer, corrupt memory in Pluton and potentially execute arbitrary code, depending on how memory is mapped.
What the attacker needed
Local access to the device; ability to open /dev/pluton
How it was found
- Open the /dev/pluton device.
- Prepare an azure_sphere_digest object with a size field set to a large value such as 0x1de1.
- Issue the PLUTON_SIGN_WITH_TENANT_ATTESTATION_KEY ioctl with that object.
- Observe the device panic and reboot.
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 part of it called Pluton handles security functions. The driver that lets programs talk to Pluton does not check the size of the data it copies, so a program can send too much data and overwrite memory, which could let an attacker run their own code.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.