Skip to content
Memory corruption Advisory Advanced CVE-2020-16970

Microsoft Azure Sphere AF_AZSPIO socket memory corruption vulnerability

A double-free and out-of-bounds read in the Azure Sphere kernel's AF_AZSPIO socket handling allows an attacker to crash the system, and potentially escalate privileges if the NULL page can be mapped.

Lilith >_> Follow

Originally disclosed on Cisco Talos

High 8.1 View original

A memory corruption vulnerability exists in the AFAZSPIO socket functionality of Microsoft Azure Sphere 20.05. A sequence of socket operations can cause a double-free and out-of-bounds read in the kernel.

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, the kernel's socket binding code adds the same socket to a global list twice and then removes it, corrupting the list and leading to a double-free when the socket is later released.

Impact

The vulnerability could cause a denial-of-service, and potentially privilege escalation if the NULL page can be mapped.

What the attacker needed

Ability to run a high-level application on Azure Sphere

How it was found

  1. Create an AF_AZSPIO socket.
  2. Bind the socket with a valid component ID.
  3. Bind the socket again with the same component ID.
  4. Close the socket, triggering a crash.

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.

This report describes a bug in the kernel of Microsoft's Azure Sphere, a special operating system for internet-connected devices. By making a series of socket calls, an attacker can corrupt memory and crash the device, and if they can also map a special memory area, they might gain higher privileges.

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.

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.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.