# CVE-2026-31675: net/sched: sch_netem: fix out-of-bounds access in packet corruption

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-04-25T08:46:51.184Z
- Modified: 2026-11-23T08:17:15.733Z
- Weaknesses: CWE-125, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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

net/sched: sch_netem: fix out-of-bounds access in packet corruption

In netem_enqueue(), the packet corruption logic uses
get_random_u32_below(skb_headlen(skb)) to select an index for
modifying skb->data. When an AF_PACKET TX_RING sends fully non-linear
packets over an IPIP tunnel, skb_headlen(skb) evaluates to 0.

Passing 0 to get_random_u32_below() takes the variable-ceil slow path
which returns an unconstrained 32-bit random integer. Using this
unconstrained value as an offset into skb->data results in an
out-of-bounds memory access.

Fix this by verifying skb_headlen(skb) is non-zero before attempting
to corrupt the linear data area. Fully non-linear packets will silently
bypass the corruption logic.

(As written by CVE List.)

## Affected

- Linux Linux: from c865e5d99e25a171e8262fc0f7ba608568633c64 before 48358cb08bf7fb712ab773a27edc4a68c980c721; from c865e5d99e25a171e8262fc0f7ba608568633c64 before 0f550925d7438781bb73ef02eda0efa32cda6d10; from c865e5d99e25a171e8262fc0f7ba608568633c64 before 8d3de49c22ec0ec8f7199cc7e2b0559de7306f87; from c865e5d99e25a171e8262fc0f7ba608568633c64 before a14b56863348686dd0387eea8ce66b85cf455908; from c865e5d99e25a171e8262fc0f7ba608568633c64 before 13a66ca1e235d4bcd53d12d4c68490cad7f8e46f; from c865e5d99e25a171e8262fc0f7ba608568633c64 before 3a2999704ac36cfb4041fed3652d26a3373e8d12; from c865e5d99e25a171e8262fc0f7ba608568633c64 before 4fd258e281fa8bc15e9ce2c7691941537e9258ad; from c865e5d99e25a171e8262fc0f7ba608568633c64 before d64cb81dcbd54927515a7f65e5e24affdc73c14b; 2.6.16 (not affected: before 2.6.16; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.191 up to 6.1.*; from 6.6.134 up to 6.6.*; from 6.12.81 up to 6.12.*; from 6.18.22 up to 6.18.*; from 6.19.12 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 2.6.16 before 6.6.134; from 6.7 before 6.12.81; from 6.13 before 6.18.22; from 6.19 before 6.19.12; 7.0

## References

- <https://git.kernel.org/stable/c/48358cb08bf7fb712ab773a27edc4a68c980c721>
- <https://git.kernel.org/stable/c/0f550925d7438781bb73ef02eda0efa32cda6d10>
- <https://git.kernel.org/stable/c/8d3de49c22ec0ec8f7199cc7e2b0559de7306f87>
- <https://git.kernel.org/stable/c/a14b56863348686dd0387eea8ce66b85cf455908> (patch)
- <https://git.kernel.org/stable/c/13a66ca1e235d4bcd53d12d4c68490cad7f8e46f> (patch)
- <https://git.kernel.org/stable/c/3a2999704ac36cfb4041fed3652d26a3373e8d12> (patch)
- <https://git.kernel.org/stable/c/4fd258e281fa8bc15e9ce2c7691941537e9258ad> (patch)
- <https://git.kernel.org/stable/c/d64cb81dcbd54927515a7f65e5e24affdc73c14b> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2026-31675 · Whole record: https://cve.day/CVE-2026-31675.json · Rebuilt by cve.day 2026-11-25T22:59:19.589Z
