Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-13350: CWE-416 Use After Free in Canonical Ubuntu Linux

0
High
VulnerabilityCVE-2025-13350cvecve-2025-13350cwe-416
Published: Thu Mar 05 2026 (03/05/2026, 18:56:03 UTC)
Source: CVE Database V5
Vendor/Project: Canonical
Product: Ubuntu Linux

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.

AI-Powered Analysis

AILast updated: 03/05/2026, 20:23:40 UTC

Technical Analysis

CVE-2025-13350 is a use-after-free (UAF) vulnerability classified under CWE-416 that affects the legacy AF_UNIX garbage collector implementation in Ubuntu Linux 6.8 kernel versions from 6.8.0-56.58 up to but not including 6.8.0-84.84. The vulnerability stems from a backported upstream commit (8594d9b85c07) that aimed to prevent out-of-bounds skb_get() calls for out-of-band (OOB) socket buffers (SKBs). However, the legacy garbage collector still assumes OOB SKBs hold two references and calls kfree_skb() accordingly. In the affected Ubuntu kernel versions, OOB SKBs only have a single queue reference, causing the buffer to be freed prematurely while still reachable. Subsequent operations that walk the socket queue then dereference this freed memory, leading to a use-after-free condition. This memory corruption can be exploited locally by an attacker with low privileges to escalate their privileges reliably. The flaw does not require user interaction but does require local access with limited privileges. Ubuntu kernels that have integrated the newer garbage collector stack from commit 4090fa373f0e and mainline Linux kernels are not vulnerable as they no longer execute the legacy collector path. The vulnerability has a CVSS 4.0 base score of 7.1, reflecting high severity due to its impact on integrity and availability and the complexity of exploitation being moderate. No public exploits or active exploitation have been reported to date.

Potential Impact

The primary impact of CVE-2025-13350 is local privilege escalation on affected Ubuntu Linux 6.8 systems. An attacker with limited local access can exploit the use-after-free vulnerability to execute arbitrary code with elevated privileges or cause denial of service by crashing kernel components. This undermines system confidentiality, integrity, and availability by allowing unauthorized privilege gains and potential kernel memory corruption. Organizations running vulnerable Ubuntu 6.8 kernels in environments where local user access is possible—such as multi-user systems, shared hosting, or developer workstations—face increased risk of compromise. The vulnerability could facilitate lateral movement or persistence by attackers who have gained initial footholds. Although no known exploits are currently in the wild, the reliable nature of the UAF condition makes it a significant threat if weaponized. Systems running newer Ubuntu versions or mainline kernels are not affected, limiting the scope but still posing risk to legacy or slow-to-patch environments.

Mitigation Recommendations

To mitigate CVE-2025-13350, organizations should immediately identify and inventory all Ubuntu Linux 6.8 systems running kernel versions between 6.8.0-56.58 and 6.8.0-84.84. The primary remediation is to upgrade the kernel to version 6.8.0-84.84 or later, which includes the fix by removing the legacy garbage collector path and adopting the newer garbage collector stack. If upgrading is not immediately feasible, consider restricting local user access to trusted personnel only and implementing strict access controls to limit potential exploitation vectors. Employ kernel hardening features such as Kernel Page Table Isolation (KPTI) and address space layout randomization (ASLR) to increase exploitation difficulty. Regularly monitor system logs for unusual kernel or socket-related errors that could indicate attempted exploitation. Additionally, maintain up-to-date backups and incident response plans to quickly recover from any compromise. Avoid running untrusted code or services on affected systems until patched.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
canonical
Date Reserved
2025-11-18T09:33:14.643Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69a9e2f561e8e69ef5e92419

Added to database: 3/5/2026, 8:09:25 PM

Last enriched: 3/5/2026, 8:23:40 PM

Last updated: 3/5/2026, 10:44:02 PM

Views: 7

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses