Skip to main content
← All vulnerabilities
CVE-2023-4622

Use-after-free in Linux kernel's af_unix component

Published
Last modified
published
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
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

  1. CVE published
  2. 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

References 8

git.kernel.org

kernel.dance

debian.org

lists.debian.org

packetstormsecurity.com

GitHub · uz56764/CVE-CVE-2023-4622