Local privilege escalation via unsynchronized PCM ioctls
Published Apr 29, 2022 · Updated Aug 2, 2024
Use-after-free in ALSA PCM in affected Linux Kernel releases allows local users to crash the system or elevate privileges via concurrent ioctls. The PCM core releases its stream lock before buffer teardown, so overlapping hw_params or hw_free calls can free the same runtime DMA-buffer allocation while another call still uses it. Access to a PCM device is required, and reliable triggering depends on the sound driver allocating a replaceable buffer; successful exploitation causes a kernel crash or elevated execution.
Summary
What happened
Use-after-free in ALSA PCM in affected Linux Kernel releases allows local users to crash the system or elevate privileges via concurrent ioctls. The PCM core releases its stream lock before buffer teardown, so overlapping hw_params or hw_free calls can free the same runtime DMA-buffer allocation while another call still uses it. Access to a PCM device is required, and reliable triggering depends on the sound driver allocating a replaceable buffer; successful exploitation causes a kernel crash or elevated execution.
The record
- CVE
- CVE-2022-1048
- Published
- Apr 29, 2022
- Updated
- Aug 2, 2024
- Vendor
- The Linux Kernel Organization
- Product
- Linux Kernel
- Classifications
- CWE-362, CWE-416, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Apr 29, 2022CVE publishedPublication date reported by the CVE source.
- Aug 2, 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=Linux kernel 5.17-rc9
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.
Weakness, pattern, technique
Public exploit references
- snd_pcm_hw_free race proof of conceptproof 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