CVE-2025-13350 Use-after-free of orphaned AF_UNIX in Ubuntu builds of Linux kernel
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- Linux KernelUbuntuDebian
Description
Ubuntu Linux 6.8 GA retains the legacy AF_UNIX garbage collector but backports upstream commit 8594d9b85c07 ("af_unix: Don’t call skb_get() for OOB skb"). When orphaned MSG_OOB sockets hit unix_gc(), the garbage collector still calls kfree_skb() 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.
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Canonical Ubuntu Linux | >= 6.8.0-56.58, < 6.8.0-84.84 | 6.8.0-84.84 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-84.84 | 6.8.0-84.84 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1039.43 | 6.8.0-1039.43 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Canonical Ubuntu Linux | >= 6.8.0-56.58, < 6.8.0-84.84 | 6.8.0-84.84 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-84.84 | 6.8.0-84.84 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1039.43 | 6.8.0-1039.43 |
References
- bugs.launchpad.net issue-tracking
- git.launchpad.net issue-tracking patch
- www.openwall.com
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- Debian Security Tracker CVE-2025-13350 vendor-advisory