CVE-2026-31649
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedIn 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceInteger underflow in stmmac driver's jumbo_frm() chain-mode implementation causes unsigned wrap when skb_headlen(skb) <= BUF_SIZE but skb->len > BUF_SIZE, producing a huge len value that iterates beyond skb buffer boundaries, mapping arbitrary kernel memory to DMA on IOMMU-less SoCs.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 3.2.1, < 5.10.253>= 5.11, < 5.15.203>= 5.16, < 6.1.169>= 6.2, < 6.6.135>= 6.7, < 6.12.82>= 6.13, < 6.18.23>= 6.19, < 6.19.13= 3.2= 7.0CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check kernel versionRun 'uname -r' or 'cat /proc/version' to get the running kernel versionAffected if The kernel version falls within any of these ranges: >=3.2.1 and <5.10.253, >=5.11 and <5.15.203, >=5.16 and <6.1.169, >=6.2 and <6.6.135, >=6.7 and <6.12.82, >=6.13 and <6.18.23, >=6.19 and <6.19.13, or is exactly 3.2 or 7.0
-
Identify stmmac network interfacesRun 'ls /sys/class/net/' and check each interface's driver via 'cat /sys/class/net/<iface>/device/driver' or 'ethtool -i <iface>'Affected if Any network interface uses the stmmac driver (also shown as stmmac-4-ww, stmmac-5-ww, etc.)
-
Check if jumbo frames are enabledRun 'ip link show' or 'ifconfig' and look for 'mtu 9000' or similar large MTU values on stmmac interfacesAffected if An stmmac interface has MTU set above the standard 1500 bytes (e.g., 9000 for jumbo frames)
-
Verify chain mode configuration in stmmacCheck stmmac driver parameters or module options: 'cat /sys/module/stmmac/parameters/*' or check device tree for 'snps,tx-channels' or 'snps,rx-channels' with chain mode enabledAffected if Chain mode is enabled in the stmmac driver configuration (typically indicated by specific channel/queue settings)
-
Check for IOMMU statusRun 'dmesg | grep -i iommu' or check 'cat /proc/cmdline' for 'intel_iommu=on' or 'amd_iommu=on'Affected if IOMMU is disabled (no iommu= parameter or iommu=off in kernel cmdline) - this makes DMA memory exposure possible
The system is affected if it runs a vulnerable kernel version, uses stmmac driver with jumbo frames enabled, has chain mode active, and has IOMMU disabled - allowing the underflow to expose kernel memory to DMA.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped5.10.2535.15.2036.1.169
Apply the kernel patch introducing buf_len clamped to min(nopaged_len, bmax) to prevent the underflow; ensure the fix is backported to affected kernel versions.
Linux Kernel 6.6.135 (or 6.1.169, 5.15.203, or 5.10.253 depending on current version branch - choose the next stable release in your branch that meets or exceeds the minimum fixed version)
- 1. Identify the currently running Linux kernel version using 'uname -r'
- 2. Determine which version range your current kernel falls into from the affected versions list
- 3. For kernels >= 3.2.1 and < 5.10.253: upgrade to kernel version 5.10.253 or later
- 4. For kernels >= 5.11 and < 5.15.203: upgrade to kernel version 5.15.203 or later
- 5. For kernels >= 5.16 and < 6.1.169: upgrade to kernel version 6.1.169 or later
- 6. For kernels >= 6.2 and < 6.6.135: upgrade to kernel version 6.6.135 or later
- 7. After upgrade, verify the fix is present by checking the stmmac driver source for the buf_len variable in the jumbo_frm() function
- 8. Reboot into the new kernel and verify system stability
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation2.0 h
- Testing6.0 h
- Review / QA3.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,520.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-31649 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-31649 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data