CVE-2025-13350: Use-after-free of orphaned AF_UNIX in Ubuntu builds of Linux kernel
Ubuntu Linux 6.8 GA retains the legacy AFUNIX garbage collector but backports upstream commit 8594d9b85c07 ("afunix: Don’t call skbget() for OOB skb"). When orphaned MSGOOB sockets hit unixgc(), the garbage collector still calls kfreeskb() as if OOB SKBs held two references; on Ubuntu Linux 6.8 (Noble Numbat) kernel tree, they have only the queue reference, so the buffer is freed while still reachable and subsequent queue walks dereference freed memory, yielding a reliable local privilege escalation (LPE) caused by a use-after-free (UAF). Ubuntu builds that have already taken the new GC stack from commit 4090fa373f0e, and mainline Linux kernels shipping that infrastructure are unaffected because they no longer execute the legacy collector path. This issue affects Ubuntu Linux from 6.8.0-56.58 before 6.8.0-84.84.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-13350?
CVE-2025-13350 is classified as a medium severity vulnerability due to potential memory corruption risks.
How do I fix CVE-2025-13350?
To fix CVE-2025-13350, you should upgrade to the latest version of the Ubuntu Linux kernel that addresses this vulnerability.
Which versions are affected by CVE-2025-13350?
CVE-2025-13350 affects Ubuntu Linux kernel versions between 6.8.0-56.58 and 6.8.0-84.84.
What type of vulnerability is CVE-2025-13350?
CVE-2025-13350 is a use-after-free vulnerability related to orphaned AF_UNIX sockets.
Can CVE-2025-13350 be exploited remotely?
Yes, CVE-2025-13350 can potentially be exploited remotely if the affected systems are exposed to untrusted network connections.