CVE-2026-139472

bng_en: pad short frames before sampling nr_frags

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

bng_en: pad short frames before sampling nr_frags

bnge_start_xmit() samples skb_shinfo(skb)->nr_frags into last_frag,
and stores it in tx_buf->nr_frags, before calling eth_skb_pad().

If a nonlinear skb is shorter than ETH_ZLEN, __skb_pad() calls
skb_linearize(), which pulls the frags into the linear part,
releases the frag pages and sets nr_frags to zero.

bnge_start_xmit() then uses the stale last_frag to fill TX_BD_CNT()
and to walk skb_shinfo(skb)->frags[], DMA-mapping pages the skb
no longer holds a reference on, and sending their content twice.

Fix this by calling eth_skb_pad() before nr_frags is sampled.

Found by Sashiko while reviewing the similar bnxt_en fix.

Analysis

AI-generated

Technical impact

The Linux kernel network driver bnge samples the fragment count of a socket buffer before padding short frames, causing the driver to use a stale fragment count. After padding, the kernel performs a linearization that frees the frame fragments and resets the fragment counter, yet the driver still maps and transmits the now released fragments, duplicating frame data and potentially operating on freed memory. This use‑after‑free can corrupt memory, lead to kernel crashes, or provide an avenue for escalation of privileges. The impact is a loss of data integrity and availability on affected systems.

Affected Systems

The vulnerability exists in the Linux kernel’s bng_en driver on all Linux distributions that ship a kernel containing the buggy implementation. No specific vendor version list is available; the issue is tied to the kernel code committed in the bnge driver.

Risk and Exploitability

The CVSS score is not provided and EPSS is unavailable, so the precise exploitation probability cannot be quantified. The bug is listed in no KEV catalog. However, because it involves a use‑after‑free in a network driver that can be triggered by crafting specific Ethernet frames, the likelihood of exploitation in environments that expose the vulnerable interface (including typical servers and embedded devices) is considered moderate to high. An attacker able to send crafted frames could trigger a kernel panic or achieve privilege escalation, especially if the system lacks mandatory access controls. No public exploits are documented yet, but the nature of the flaw makes it attractive for development of proof‑of‑concept attacks.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the bnge driver fix found at https://git.kernel.org/stable/c/056d046bf530d44bff5ce13a0addbc50c14ac95f
  • If an immediate kernel upgrade is not possible, backport the patch that moves eth_skb_pad() before nr_frags is sampled into the local kernel configuration
  • Temporarily disable or replace the bnge network interface until the patch is applied to avoid processing potentially malicious frames

Generated by OpenCVE AI on November 30, 2026 at 22:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bng_en: pad short frames before sampling nr_frags bnge_start_xmit() samples skb_shinfo(skb)->nr_frags into last_frag, and stores it in tx_buf->nr_frags, before calling eth_skb_pad(). If a nonlinear skb is shorter than ETH_ZLEN, __skb_pad() calls skb_linearize(), which pulls the frags into the linear part, releases the frag pages and sets nr_frags to zero. bnge_start_xmit() then uses the stale last_frag to fill TX_BD_CNT() and to walk skb_shinfo(skb)->frags[], DMA-mapping pages the skb no longer holds a reference on, and sending their content twice. Fix this by calling eth_skb_pad() before nr_frags is sampled. Found by Sashiko while reviewing the similar bnxt_en fix.
Title bng_en: pad short frames before sampling nr_frags
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
Nov 30, 2026, 1:35 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM