Skip to content
Info disclosure Advisory Intermediate CVE-2021-1969

GHSL-2021-1031: Information leak in Qualcomm npu driver - CVE-2021-1969

The Qualcomm npu driver copies a kernel structure back to user space without initialising all its bytes, because a union field is only partially filled. An attacker could read uninitialised kernel memory, leaking kernel addresses and bypassing KASLR.

m-y-mo Follow

Originally disclosed on GitHub Security Lab

Samsung Galaxy A71: SM-A715F/DS AP: A715FXXU3ATJ2 and CP: A715FXXU3ATI5, Kernel version 4.14.117-19828683 and build ID QP1A.190711.020.A715FXXU3ATJ2

m-y-mo, on GitHub Security Lab

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 kernel copies a struct containing a union and reserved fields to user space without zeroing the parts not set by the specific event type, so uninitialised stack or heap memory is disclosed.

Impact

Trivially exploitable to leak kernel address and bypass KASLR from the untrusted app domain.

What the attacker needed

Access to the npu driver from an app

The fix

The fix was made available publicly in the October 2021 Qualcomm bulletin.

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.

When a program sends data from the kernel to a user application, it should only send the bytes it actually filled in. Here, the kernel sent a larger block than it had written, so the extra bytes contained whatever was left in memory from earlier use. Those leftovers can include secret addresses that help an attacker defeat a security feature called KASLR, which randomises where the kernel sits in memory.

What is Info disclosure?

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

More by m-y-mo

View all

64 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

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.