Skip to content
Info disclosure Advisory Advanced CVE-2021-1968

GHSL-2021-1030: Information leak in Qualcomm npu driver - CVE-2021-1968

The Qualcomm npu driver incorrectly used the address of a field as the source for a copy_to_user operation, instead of the pointer stored in that field. This caused kernel memory, including pointer addresses, to be leaked to user space.

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 code passed the address of the reserved[0] field as the source pointer to copy_to_user, rather than the pointer value stored in that field.

Impact

An attacker could leak kernel heap addresses from the untrusted app domain, which is trivially exploitable.

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.

A driver in the phone's kernel was supposed to copy some statistics data to an app, but it copied the wrong memory location. This meant the app received parts of kernel memory, which could include secret addresses that help attackers break other protections.

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.