Description
In the Linux kernel, the following vulnerability has been resolved:

netfilter: nf_queue: hold bridge skb->dev while queued

br_pass_frame_up() rewrites skb->dev from the ingress port to the bridge
master before queueing bridge LOCAL_IN packets. NFQUEUE only holds
references on state.in/out and bridge physdevs, so a queued bridge
packet can retain a freed bridge master in skb->dev until reinjection.

When the verdict is reinjected later, br_netif_receive_skb() re-enters
the receive path with skb->dev still pointing at the freed bridge master,
triggering a use-after-free.

Store skb->dev in the queue entry, hold a reference on it for the queue
lifetime, and use the saved device when dropping queued packets during
NETDEV_DOWN handling.
Published: 2026-06-24
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel netfilter nf_queue module incorrectly holds a reference to the skb->dev pointer when queueing bridge LOCAL_IN packets. During packet forwarding, br_pass_frame_up() rewrites skb->dev from the ingress port to the bridge master, but NFQUEUE only manages state.in/out and bridge physdevs, allowing a queued packet to retain a pointer to a freed bridge master. When the packet is later reinjected, the receive path reenters with skb->dev still pointing to the freed bridge master, causing a use‑after‑free that can corrupt kernel memory and potentially allow an attacker to execute arbitrary code or gain elevated privileges. The vulnerability directly exposes a kernel data structure to an attacker and is a classic example of a use‑after‑free flaw.

Affected Systems

Affected systems are Linux kernel builds that contain the nf_queue module before the patch that introduces a reference hold on skb->dev are likely vulnerable. Vendors and distributions shipping Linux kernels that have not yet applied the commit that fixes this issue will be impacted.

Risk and Exploitability

Use‑after‑free vulnerabilities in the kernel are considered high‑severity and present a serious risk for exploitation. The CVSS score is not provided, but the nature of the flaw indicates a high likelihood of successful exploitation if an attacker can force packet reinjection into the queue. The EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog, which suggests it has not yet been observed in active exploitation. The likely attack vector is through crafted network traffic that is queued by nf_queue, which could be delivered either locally or remotely depending on the network topology.

Generated by OpenCVE AI on June 24, 2026 at 13:04 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest kernel update that includes the nf_queue fix.
  • If a kernel update is not immediately possible, unload or disable the nf_queue module or set ${CONFIG_NETFILTER_NFQUEUE} to off.
  • Adjust bridge forwarding configuration to mitigate exposure—e.g., set sysctl net.bridge.bridge-nf-call-iptables to 0 for LOCAL_IN packets.
  • Monitor system logs (dmesg, journalctl) for signs of kernel corruption or use‑after‑free crashes.

Generated by OpenCVE AI on June 24, 2026 at 13:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 24 Jun 2026 13:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Wed, 24 Jun 2026 07:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_queue: hold bridge skb->dev while queued br_pass_frame_up() rewrites skb->dev from the ingress port to the bridge master before queueing bridge LOCAL_IN packets. NFQUEUE only holds references on state.in/out and bridge physdevs, so a queued bridge packet can retain a freed bridge master in skb->dev until reinjection. When the verdict is reinjected later, br_netif_receive_skb() re-enters the receive path with skb->dev still pointing at the freed bridge master, triggering a use-after-free. Store skb->dev in the queue entry, hold a reference on it for the queue lifetime, and use the saved device when dropping queued packets during NETDEV_DOWN handling.
Title netfilter: nf_queue: hold bridge skb->dev while queued
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-06-24T07:14:10.583Z

Reserved: 2026-06-09T07:44:35.366Z

Link: CVE-2026-52912

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-24T13:15:15Z

Weaknesses