Root access via graphics fence use-after-free
Published Jun 14, 2022 · Updated Aug 3, 2024
Use-after-free in the Qualcomm Snapdragon KGSL driver allows local users on affected devices to gain root through graphics timeline ioctls. The kgsl_timeline fence list holds dma_fence objects without increasing their reference counts, so a fence can be freed while kgsl_ioctl_timeline_destroy still traverses and signals it. An untrusted application can race timeline destruction against fence release, replace the freed kernel object, execute kernel code, and disable SELinux.
Summary
What happened
Use-after-free in the Qualcomm Snapdragon KGSL driver allows local users on affected devices to gain root through graphics timeline ioctls. The kgsl_timeline fence list holds dma_fence objects without increasing their reference counts, so a fence can be freed while kgsl_ioctl_timeline_destroy still traverses and signals it. An untrusted application can race timeline destruction against fence release, replace the freed kernel object, execute kernel code, and disable SELinux.
The record
- CVE
- CVE-2022-22057
- Published
- Jun 14, 2022
- Updated
- Aug 3, 2024
- Vendor
- Qualcomm
- Product
- Snapdragon
- Classifications
- CWE-362, T1404
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jun 14, 2022CVE 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=APQ8053, AR8035, MSM8953, QCA6174A, QCA6390, QCA6391, QCA6426, QCA6436, QCA6595AU, QCA8081, QCA8337, QCA9377, QCM2290, QCM4290, QCM6490, QCS2290, QCS4290, QCS6490, QRB5165, QRB5165M, QRB5165N, Qualcomm215, SA6155P, SA8155P, SA8195P, SD 8 Gen1 5G, SD439, SD460, SD480, SD662, SD680, SD690 5G, SD695, SD750G, SD765, SD765G, SD768G, SD778G, SD780G, SD865 5G, SD870, SD888, SD888 5G, SDX12, SDX55M, SDX65, SDXR2 5G, SM7250P, SM7315, SM7325P, SW5100, SW5100P, WCD9326, WCD9335, WCD9341, WCD9370, WCD9375, WCD9380, WCD9385, WCN3615, WCN3660B, WCN3680B, WCN3910, WCN3950, WCN3980, WCN3988, WCN3991, WCN3998, WCN6740, WCN6750, WCN6850, WCN6851, WCN6855, WCN6856, WCN7850, WCN7851, WSA8810, WSA8815, WSA8830, WSA8835
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
- Qualcomm KGSL timeline race exploitweaponized · 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