Description
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).
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Kernel
Default version status: unaffected
4.2 to < 4.14.324affected4.15 to < 4.19.293affected4.20 to < 5.4.255affected5.5 to < 5.10.192affected5.11 to < 5.15.128affected5.16 to < 6.1.47affected6.2 to < 6.4.12affected6.5unaffected
References
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4821df2ffe38d629170edc266e65fa05970e0745 ↗
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.1.y&id=790c2f9d15b594350ae9bca7b236f2b1859de02c ↗
- https://kernel.dance/790c2f9d15b594350ae9bca7b236f2b1859de02c ↗
- https://www.debian.org/security/2023/dsa-5492 ↗
- https://lists.debian.org/debian-lts-announce/2023/10/msg00027.html ↗
- http://packetstormsecurity.com/files/175963/Kernel-Live-Patch-Security-Notice-LSN-0099-1.html ↗
- https://lists.debian.org/debian-lts-announce/2024/01/msg00004.html ↗