Skip to content
Access control Advisory Advanced CVE-2020-16994

Microsoft Azure Sphere Normal World application /proc/self/mem unsigned code execution vulnerability

The Azure Sphere Linux kernel allows a process to write to its own /proc/self/mem, bypassing memory protection that normally prevents writable memory from being executable. An attacker who has already compromised an application could use this to modify its code at runtime and execute unsigned shellcode.

Lilith >_> Follow

Originally disclosed on Cisco Talos

Medium 6.2 View original

A code execution vulnerability exists in the normal world’s signed code execution functionality of Microsoft Azure Sphere 20.05. A specially crafted shellcode can cause a process’ non-writable memory to be written.

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

The Linux kernel in Azure Sphere does not restrict writing to /proc/pid/mem, allowing a process to modify its own read-only memory mappings.

Impact

An attacker who has already compromised an application could execute unsigned code, but the exploit would need to be implemented via ROP gadgets.

What the attacker needed

Already compromised application

How it was found

  1. Open /proc/self/mem for writing.
  2. Seek to the address of the target function.
  3. Write shellcode to overwrite the function.

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 secure platform for internet-of-things devices. Normally, it prevents a program from changing its own code while running, but the report shows that a special file (/proc/self/mem) lets a program write to its own memory anyway. If an attacker already controls a program, they could use this to run their own code.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Lilith >_>

View all

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

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.