Skip to content
Info disclosure Write-up Advanced

CVE-2021-26333 - Flaw in AMD PSP chipset affects millions of computers

A driver for AMD's Platform Security Processor (PSP) failed to properly initialise allocated memory and failed to free memory correctly, allowing low-privileged users to read uninitialised memory that could contain sensitive data such as encryption keys and password hashes.

hackaday.com

Published on hackaday.com

Another day, another vulnerability. This time, it’s AMD’s turn, with a broad swathe of its modern CPU lines falling victim to a dangerous driver vulnerability that could leave PCs open to all manner of attacks.

The author, on hackaday.com

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the driver rounded up memory allocation requests to a full page but only initialised the requested bytes, and also failed to release memory on certain free calls, leaving uninitialised data accessible.

Impact

Attackers could steal encryption keys, password hashes, and other sensitive data from memory, and the memory leak could tie up large amounts of memory, though a software update fixes the issue.

What the attacker needed

Low-privileged user access to the system; Affected AMD chipset with vulnerable PSP driver

The fix

The issue was fixed by updating to AMD PSP driver [redacted] or AMD Chipset Driver 3.08.17.735, which presumably zeroes out memory during allocation and properly frees memory.

How it was found

  1. A low-privileged user makes a call to the AMD driver to allocate uninitialised memory.
  2. The driver rounds up the requested size to the default page size (e.g., 4096 bytes) but only initialises the requested bytes.
  3. The user can then access the remaining uninitialised bytes, reading leftover data from prior processes.
  4. Separately, certain calls to free contiguous memory do not properly release it, causing a memory leak.

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 write-up has not been written yet. The Original tab links to the source.

When a program asks the computer for memory, the operating system usually clears it first so old data doesn't leak. Here, a driver for a security chip inside AMD processors didn't clear the memory properly, so a normal user program could read leftover data from other programs, like passwords or encryption keys.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.