CVE-2026-31649·Kernel vulnerability
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
- critical
- Software
- Kernel
- Fixed in
- 6.19.13
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.46% — higher than 38% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-31649 scores 9.8 on CVSS, so a successful attack would be serious — but at 0.46%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 6.19
Until: 6.19.13
Fixed in: 6.19.13
How to fix this CVE
Update the Linux kernel to version 6.19.13 or later to patch an integer underflow vulnerability in the stmmac network driver's chain mode implementation. This vulnerability allows arbitrary kernel memory to be exposed to DMA operations and potentially corrupted by hardware on systems without IOMMU protection. Prioritize this update on systems using stmmac-compatible network controllers.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check installed kernel version with `uname -r` and compare against vulnerable range 6.19.0 to 6.19.12
- Step 2: Verify stmmac driver presence with `lsmod | grep stmmac` or check `/sys/class/net/*/device/driver` for stmmac entries
- Step 3: Search kernel logs with `sudo dmesg | grep -i 'stmmac\|dma'` and `sudo journalctl -b | grep -i 'stmmac'` for unusual DMA mapping patterns or page fault errors
- Step 4: After update, verify new kernel version with `uname -r` and confirm it shows 6.19.13 or higher
FAQ
What is CVE-2026-31649?
CVE-2026-31649 is a critical integer underflow vulnerability in the Linux kernel's stmmac network driver chain-mode implementation. When processing jumbo frames with large page fragments, the vulnerability causes unbounded DMA memory mapping operations that expose kernel memory to hardware access and potential corruption.
Is CVE-2026-31649 being actively exploited?
No, this vulnerability is not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available. However, the critical severity and ease of triggering make it a high-priority patch.
What versions of Kernel are affected by CVE-2026-31649?
Linux kernel versions 6.19.0 through 6.19.12 are affected. The fix is available in kernel 6.19.13 and later.
How do I check if my server is vulnerable to CVE-2026-31649?
Run `uname -r` to check your kernel version. If it reports 6.19.0 through 6.19.12, your system is vulnerable. Additionally, run `lsmod | grep stmmac` to confirm the affected driver is loaded.
Does Defensia detect CVE-2026-31649?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel package is installed on a monitored server running version 6.19.0–6.19.12, CVE-2026-31649 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/10d12b9240ebf96c785f0e2e4228318cd5f3a3eb
- https://git.kernel.org/stable/c/275bdf762e82082f064e60a92448fa2ac43cf95b
- https://git.kernel.org/stable/c/2c91b39912278d0878f9ba60ba04d2518b18a08d
- https://git.kernel.org/stable/c/513e06735f5be575b409d195822195348b164e48
- https://git.kernel.org/stable/c/51f4e090b9f87b40c21b6daadb5c06e6c0a07b67
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-31649. Free for 1 server.
Get started free