CVE-2023-4622
Use-after-free in Linux kernel's af_unix component
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 4.14.324, 4.19.293, 5.4.255, 5.10.192, 5.15.128, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- 1 proof of concept on GitHub
Summary
A use-after-free vulnerability in the Linux kernel's af_unix component can be exploited to achieve local privilege escalation. The unix_stream_sendpage() function tries to add data to the last skb in the peer's recv queue without locking the queue. Thus there is a race where unix_stream_sendpage() could access an skb locklessly that is being released by garbage collection, resulting in use-after-free. We recommend upgrading past commit 790c2f9d15b594350ae9bca7b236f2b1859de02c (or backported equivalents).
Timeline
- CVE published
- Record last updated
Affected versions
- kernel
From 4.2 · fixed in 4.14.324; From 4.15 · fixed in 4.19.293; From 4.20 · fixed in 5.4.255; From 5.5 · fixed in 5.10.192; From 5.11 · fixed in 5.15.128; From 5.16 · fixed in 6.1.47; From 6.2 · fixed in 6.4.12