CVE-2026-53175

inet: frags: fix use-after-free caused by the fqdir_pre_exit() flush

Published Jun 25, 2026 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

inet: frags: fix use-after-free caused by the fqdir_pre_exit() flush

On netns teardown, fqdir_pre_exit() walks the fqdir rhashtable and
flushes every fragment queue that is not yet complete using
inet_frag_queue_flush(). That helper frees all the skbs queued on the
fragment queue but does not set INET_FRAG_COMPLETE, and leaves
q->fragments_tail and q->last_run_head pointing at the freed skbs.
The queue itself stays in the rhashtable.

fqdir_pre_exit() first lowers high_thresh to 0 to stop new queue lookups,
but it cannot stop a fragment that already obtained the queue through
inet_frag_find() earlier and stalled just before taking the queue lock.
Once that fragment resumes after the flush and takes the queue lock,
it passes the INET_FRAG_COMPLETE check and then dereferences the freed
fragments_tail. inet_frag_queue_insert() reads FRAG_CB() and ->len of
that pointer and, on the append path, writes ->next_frag, causing a
slab use-after-free. IPv6, nf_conntrack_reasm6 and 6lowpan reassembly
share the same flush path and are affected as well.

Reset rb_fragments, fragments_tail and last_run_head in
inet_frag_queue_flush() so a flushed queue no longer points at the
freed skbs. A fragment that resumes after the flush and takes the
queue lock then finds an empty queue and starts a new run instead of
dereferencing the freed fragments_tail. ip_frag_reinit() already
performed this reset after its own flush, so drop the now duplicate
code there.

Analysis

AI-generated

Technical impact

The Linux kernel contains a use‑after‑free bug in the fragment queue cleanup path invoked during network namespace teardown. When a fragment queue is freed but its tail pointers are not reset, a fragment that resumes after the flush later dereferences these freed pointers, leading to a kernel memory corruption that can crash the system or allow an attacker to execute arbitrary code. The flaw exists in the IPv6, nf_conntrack_reasm6, and 6lowpan reassembly modules, which share the same flush logic.

Affected Systems

All Linux kernel releases lacking the specific patch are vulnerable; this includes standard distributions and any system using the kernel’s native fragment reassembly code. The vulnerability applies to every kernel that relies on the patch that was merged.

Risk and Exploitability

The CVSS base score of 9.8 and the EPSS score of less than 1% indicate a severe flaw with a low probability of exploitation in the wild. The bug is not listed in the CISA KEV catalog. Successful exploitation would require control of the network namespace lifecycle—creating and destroying namespaces as a privileged user—and the ability to supply crafted fragmented packets or manipulate skb data. Attackers who achieve this could trigger a use‑after‑free, causing a kernel panic or providing a privilege escalation attack surface.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel patch that resets fragment queue pointers—update to the latest stable release or apply commit 010c3313a4d178dc2d3ce958d2e5cb055e2864c1—directly addressing the CWE‑416 use‑after‑free defect.
  • Restrict the creation and deletion of network namespaces to trusted users or disable namespace support entirely via system configuration (e.g., set kernel.unprivileged_userns_clone to 0) to reduce the attack surface for this bug.
  • After updating, enable kernel crash dumps or configure a system monitoring tool to alert on kernel panics or abnormal crashes to ensure the issue has been fully mitigated.

Generated by OpenCVE AI on August 14, 2026 at 15:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8629-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8637-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8629-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8629-3 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-8660-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8663-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8664-1 Linux kernel (NVIDIA BaseOS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-1 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-8748-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-3 Linux kernel (Oracle) vulnerabilities
Ubuntu USN Ubuntu USN USN-8911-1 Linux kernel (OEM) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-825
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: inet: frags: fix use-after-free caused by the fqdir_pre_exit() flush On netns teardown, fqdir_pre_exit() walks the fqdir rhashtable and flushes every fragment queue that is not yet complete using inet_frag_queue_flush(). That helper frees all the skbs queued on the fragment queue but does not set INET_FRAG_COMPLETE, and leaves q->fragments_tail and q->last_run_head pointing at the freed skbs. The queue itself stays in the rhashtable. fqdir_pre_exit() first lowers high_thresh to 0 to stop new queue lookups, but it cannot stop a fragment that already obtained the queue through inet_frag_find() earlier and stalled just before taking the queue lock. Once that fragment resumes after the flush and takes the queue lock, it passes the INET_FRAG_COMPLETE check and then dereferences the freed fragments_tail. inet_frag_queue_insert() reads FRAG_CB() and ->len of that pointer and, on the append path, writes ->next_frag, causing a slab use-after-free. IPv6, nf_conntrack_reasm6 and 6lowpan reassembly share the same flush path and are affected as well. Reset rb_fragments, fragments_tail and last_run_head in inet_frag_queue_flush() so a flushed queue no longer points at the freed skbs. A fragment that resumes after the flush and takes the queue lock then finds an empty queue and starts a new run instead of dereferencing the freed fragments_tail. ip_frag_reinit() already performed this reset after its own flush, so drop the now duplicate code there.
Title inet: frags: fix use-after-free caused by the fqdir_pre_exit() flush
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Sep 1, 2026, 12:04 PM
Reserved
Jun 9, 2026, 7:44 AM
Status
Modified
Published
Jun 25, 2026, 9:16 AM
Modified
Aug 14, 2026, 1:19 PM
Severity
Important
Public date
Jun 25, 2026, 12:00 AM