CVE-2026-31675

Source
https://cve.org/CVERecord?id=CVE-2026-31675
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31675.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-31675
Downstream
Published
2026-04-25T08:46:51.184Z
Modified
2026-04-26T04:22:21.086925Z
Summary
net/sched: sch_netem: fix out-of-bounds access in packet corruption
Details

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

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

In netemenqueue(), the packet corruption logic uses getrandomu32below(skbheadlen(skb)) to select an index for modifying skb->data. When an AFPACKET TXRING sends fully non-linear packets over an IPIP tunnel, skbheadlen(skb) evaluates to 0.

Passing 0 to getrandomu32_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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31675.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
c865e5d99e25a171e8262fc0f7ba608568633c64
Fixed
a14b56863348686dd0387eea8ce66b85cf455908
Fixed
13a66ca1e235d4bcd53d12d4c68490cad7f8e46f
Fixed
3a2999704ac36cfb4041fed3652d26a3373e8d12
Fixed
4fd258e281fa8bc15e9ce2c7691941537e9258ad
Fixed
d64cb81dcbd54927515a7f65e5e24affdc73c14b

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31675.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.16
Fixed
6.6.134
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.81
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.22
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
6.19.12

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31675.json"