CVE-2026-31649

net: stmmac: fix integer underflow in chain mode

9.8 critical EPSS 0.60%

Published 24 Apr 2026 Updated 10 Nov 2026 CNA: Linux

Check your servers for CVE-2026-31649

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-31649 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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

net: stmmac: fix integer underflow in chain mode

The jumbo_frm() chain-mode implementation unconditionally computes

len = nopaged_len - bmax;

where nopaged_len = skb_headlen(skb) (linear bytes only) and bmax is BUF_SIZE_8KiB or BUF_SIZE_2KiB. However, the caller stmmac_xmit() decides to invoke jumbo_frm() based on skb->len (total length including page fragments):

is_jumbo = stmmac_is_jumbo_frm(priv, skb->len, enh_desc);

When a packet has a small linear portion (nopaged_len <= bmax) but a large total length due to page fragments (skb->len > bmax), the subtraction wraps as an unsigned integer, producing a huge len value (~0xFFFFxxxx). This causes the while (len != 0) loop to execute hundreds of thousands of iterations, passing skb->data + bmax * i pointers far beyond the skb buffer to dma_map_single(). On IOMMU-less SoCs (the typical deployment for stmmac), this maps arbitrary kernel memory to the DMA engine, constituting a kernel memory disclosure and potential memory corruption from hardware.

Fix this by introducing a buf_len local variable clamped to min(nopaged_len, bmax). Computing len = nopaged_len - buf_len is then always safe: it is zero when the linear portion fits within a single descriptor, causing the while (len != 0) loop to be skipped naturally, and the fragment loop in stmmac_xmit() handles page fragments afterward.

Severity (CVSS)

9.8 critical CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.60%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 49.8% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 16 Oct 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
yes: an attacker can automate the attack across many targets
Technical impact
total: full control of the component or of its data

Weakness

  • CWE-190 Integer Overflow or Wraparound

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 286a837217204b1ef105e3a554d0757e4fdfaac1, before 513e06735f5be575b409d195822195348b164e48
affected from 286a837217204b1ef105e3a554d0757e4fdfaac1, before 275bdf762e82082f064e60a92448fa2ac43cf95b
affected from 286a837217204b1ef105e3a554d0757e4fdfaac1, before a2b68a9a476b9544ff31f1fbcd5d80867a8a5e2f
affected from 286a837217204b1ef105e3a554d0757e4fdfaac1, before b7b8012193fd98236d7ae05d4b553f010a77b2ef
affected from 286a837217204b1ef105e3a554d0757e4fdfaac1, before 2c91b39912278d0878f9ba60ba04d2518b18a08d
affected from 286a837217204b1ef105e3a554d0757e4fdfaac1, before 6fca757c20396dc2e604dcc61922264e9e3dc803
affected from 286a837217204b1ef105e3a554d0757e4fdfaac1, before 10d12b9240ebf96c785f0e2e4228318cd5f3a3eb
affected from 286a837217204b1ef105e3a554d0757e4fdfaac1, before 51f4e090b9f87b40c21b6daadb5c06e6c0a07b67
Other versions: unaffected
Linux
affected 3.2
unaffected before 3.2
unaffected from 5.10.253 up to and including 5.10.*
unaffected from 5.15.203 up to and including 5.15.*
unaffected from 6.1.169 up to and including 6.1.*
unaffected from 6.6.135 up to and including 6.6.*
unaffected from 6.12.82 up to and including 6.12.*
unaffected from 6.18.23 up to and including 6.18.*
unaffected from 6.19.13 up to and including 6.19.*
unaffected 7.0 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-31649 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-31649

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-31649
trivy image --scanners vuln IMAGE | grep CVE-2026-31649

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-31649 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.