Kernel code execution via asynchronous NPU cleanup
Published Jul 13, 2021 · Updated Aug 3, 2024
Use-after-free in Qualcomm Snapdragon NPU drivers allows local users to execute kernel code through an asynchronous neural-network job. When a busy NPU job remains active as its device file closes, npu_close frees the client after cleanup skips the executing network, leaving network->client dangling for the completion handler. An untrusted application with access to /dev/msm_npu can trigger the race and cross from its app domain into kernel execution, affecting confidentiality, integrity, and availability.
Summary
What happened
Use-after-free in Qualcomm Snapdragon NPU drivers allows local users to execute kernel code through an asynchronous neural-network job. When a busy NPU job remains active as its device file closes, npu_close frees the client after cleanup skips the executing network, leaving network->client dangling for the completion handler. An untrusted application with access to /dev/msm_npu can trigger the race and cross from its app domain into kernel execution, affecting confidentiality, integrity, and availability.
The record
- CVE
- CVE-2021-1940
- Published
- Jul 13, 2021
- Updated
- Aug 3, 2024
- Vendor
- Qualcomm
- Product
- Snapdragon
- Classifications
- CWE-416, T1404
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jul 13, 2021CVE publishedPublication date reported by the CVE source.
- Aug 3, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=AQT1000, AR8031, AR8035, CSRA6620, CSRA6640, FSM10055, FSM10056, QCA6391, QCA6420, QCA6430, QCA6564, QCA6564A, QCA6564AU, QCA6574, QCA6574A, QCA6574AU, QCA6584AU, QCA6595AU, QCA6696, QCA8337, QCM6125, QCS405, QCS410, QCS610, QCS6125, SA415M, SA515M, SA6145P, SA6155, SA6155P, SA8155, SA8155P, SA8195P, SD 675, SD 8C, SD 8CX, SD660, SD665, SD675, SD678, SD720G, SD730, SD855, SDA429W, SDX50M, SDX55, SDX55M, SM6250, SM6250P, WCD9335, WCD9340, WCD9341, WCD9370, WCD9375, WCD9380, WCN3610, WCN3620, WCN3660B, WCN3950, WCN3980, WCN3988, WCN3990, WCN3991, WCN3998, WCN3999, WSA8810, WSA8815
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
- GHSL Qualcomm NPU use-after-free triggerproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo