AF_UNIX MSG_PEEK garbage-collection race
A MSG_PEEK receive could duplicate SCM_RIGHTS file references without synchronizing with AF_UNIX garbage collection, allowing GC to free a message buffer that the peeking receiver still used.
- Product
- Android kernel and Linux AF_UNIX socket garbage collection
- Vendor
- Google and Linux kernel
- Affected
- Android kernels containing the vulnerable AF_UNIX SCM_RIGHTS code; upstream Linux through 5.13 and 5.14-rc1 through 5.14-rc3
- Fixed in
- Android November 2021 security update and upstream fixes that serialize MSG_PEEK file duplication with unix_gc_lock
- Weakness
- CWE-416
- CVSS vector
- CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
- Published
- 15 Dec 2021
Classified as
References
Related CVEs
- CVE-2019-2215high 7.82019
Bad Binder: freed binder thread still on an epoll waitlist
A device thread hands its wait queue to epoll, then a thread-exit path frees the thread without removing that registration, so epoll cleanup later dereferences freed kernel memory.
- CVE-2025-49844critical 9.92025
RediShell Lua parser use-after-free
Redis failed to root a Lua parser string across garbage collection, allowing a crafted authenticated script to reclaim a still-referenced object and potentially execute code.
- CVE-2024-9680critical 9.82024
Firefox animation timeline: reentrant Tick leaves dangling removals
AnimationTimeline::Tick retained raw Animation pointers across callback-capable animation processing, so script could cancel and release an animation before the deferred removal loop used its dangling pointer.
- CVE-2024-22252critical 9.32024
VMware XHCI: mutable slot identity strands a live USB request
A privileged guest can readdress an XHCI slot while non-control endpoint state survives, making transfer-ring cleanup resolve the wrong virtual USB device and leaving a live URB with a pointer into the freed ring.