# CVE-2026-139472: bng_en: pad short frames before sampling nr_frags

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-11-30T13:35:04.145Z
- Modified: 2026-11-30T14:19:20.053Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from bd5ad9c052c855c0c8a0e98f5405a22f5887b298 before b06498e826889f109dfbe681122e8b993ff4a6c2; from bd5ad9c052c855c0c8a0e98f5405a22f5887b298 before 056d046bf530d44bff5ce13a0addbc50c14ac95f; 7.0 (not affected: before 7.0; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/b06498e826889f109dfbe681122e8b993ff4a6c2>
- <https://git.kernel.org/stable/c/056d046bf530d44bff5ce13a0addbc50c14ac95f>

## Sources

- CVE List: [CVE-2026-139472](https://www.cve.org/CVERecord?id=CVE-2026-139472), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139472](https://nvd.nist.gov/vuln/detail/CVE-2026-139472), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139472 · Whole record: https://cve.day/CVE-2026-139472.json · Rebuilt by cve.day 2026-11-30T14:33:27.127Z
