# CVE-2026-45940: net: stmmac: fix oops when split header is enabled

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.16% (percentile 3, 2026-11-26)
- **Published:** 2026-05-27T12:17:56.350Z
- **Modified:** 2026-11-06T16:18:53.183Z

## Who should check

- Anyone running Linux \>= ec222003bd948de8f3ffbca522d328af1a8452ad, \< a7fe1d75e087862bc4087f3fcdfd5e291b9d9caa; \>= ec222003bd948de8f3ffbca522d328af1a8452ad, \< 107e169f963920b11fa3c1bb384c077fe7330696; \>= ec222003bd948de8f3ffbca522d328af1a8452ad, \< 92b45c99311ac4f3857cccee47059c4fb067fd4d; \>= ec222003bd948de8f3ffbca522d328af1a8452ad, \< b1f23df09e7dbf4c86b6908dff7efb8cb2b7d609; \>= ec222003bd948de8f3ffbca522d328af1a8452ad, \< 36f81cb7d82e9614a7058da6abdf2e3a03993df1; \>= ec222003bd948de8f3ffbca522d328af1a8452ad, \< babab1b42ed68877ef669a08384becf281ad2582
- Anyone running Linux 5.4

## Description

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

net: stmmac: fix oops when split header is enabled

For GMAC4, when split header is enabled, in some rare cases, the
hardware does not fill buf2 of the first descriptor with payload.
Thus we cannot assume buf2 is always fully filled if it is not
the last descriptor. Otherwise, the length of buf2 of the second
descriptor will be calculated wrong and cause an oops:

Unable to handle kernel paging request at virtual address ffff00019246bfc0
...
x2 : 0000000000000040 x1 : ffff00019246bfc0 x0 : ffff00009246c000
Call trace:
 dcache\_inval\_poc+0x28/0x58 (P)
 dma\_direct\_sync\_single\_for\_cpu+0x38/0x6c
 \_\_dma\_sync\_single\_for\_cpu+0x34/0x6c
 stmmac\_napi\_poll\_rx+0x8f0/0xb60
 \_\_napi\_poll.constprop.0+0x30/0x144
 net\_rx\_action+0x160/0x274
 handle\_softirqs+0x1b8/0x1fc
...

To fix this, the PL bit-field in RDES3 register is used for all
descriptors, whether it is the last descriptor or not.

## Affected and fixed versions

- Linux: \>= ec222003bd948de8f3ffbca522d328af1a8452ad, \< a7fe1d75e087862bc4087f3fcdfd5e291b9d9caa; \>= ec222003bd948de8f3ffbca522d328af1a8452ad, \< 107e169f963920b11fa3c1bb384c077fe7330696; \>= ec222003bd948de8f3ffbca522d328af1a8452ad, \< 92b45c99311ac4f3857cccee47059c4fb067fd4d; \>= ec222003bd948de8f3ffbca522d328af1a8452ad, \< b1f23df09e7dbf4c86b6908dff7efb8cb2b7d609; \>= ec222003bd948de8f3ffbca522d328af1a8452ad, \< 36f81cb7d82e9614a7058da6abdf2e3a03993df1; \>= ec222003bd948de8f3ffbca522d328af1a8452ad, \< babab1b42ed68877ef669a08384becf281ad2582 (cvelist)
- Linux: 5.4 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-45940. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-45940.md
Affected: Linux >= ec222003bd948de8f3ffbca522d328af1a8452ad, < a7fe1d75e087862bc4087f3fcdfd5e291b9d9caa; >= ec222003bd948de8f3ffbca522d328af1a8452ad, < 107e169f963920b11fa3c1bb384c077fe7330696; >= ec222003bd948de8f3ffbca522d328af1a8452ad, < 92b45c99311ac4f3857cccee47059c4fb067fd4d; >= ec222003bd948de8f3ffbca…
Fixed in: Linux 107e169f963920b11fa3c1bb384c077fe7330696, Linux 92b45c99311ac4f3857cccee47059c4fb067fd4d, Linux 36f81cb7d82e9614a7058da6abdf2e3a03993df1

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-45940 being exploited?

There is no confirmed exploitation: CVE-2026-45940 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.16% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-45940?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-45940?

Linux \>= ec222003bd948de8f3ffbca522d328af1a8452ad, \< a7fe1d75e087862bc4087f3fcdfd5e291b9d9caa; \>= ec222003bd948de8f3ffbca522d328af1a8452ad, \< 107e169f963920b11fa3c1bb384c077fe7330696; \>= ec222003bd948de8f3ffbca522d328af1a8452ad, \< 92b45c99311ac4f3857cccee47059c4fb067fd4d; \>= ec222003bd948de8f3ffbca522d328af1a8452ad, \< b1f23df09e7dbf4c86b6908dff7efb8cb2b7d609; \>= ec222003bd948de8f3ffbca522d328af1a8452ad, \< 36f81cb7d82e9614a7058da6abdf2e3a03993df1; \>= ec222003bd948de8f3ffbca522d328af1a8452ad, \< babab1b42ed68877ef669a08384becf281ad2582; Linux 5.4.

### Is there a fix for CVE-2026-45940?

Yes. Fixed in Linux 107e169f963920b11fa3c1bb384c077fe7330696, Linux 92b45c99311ac4f3857cccee47059c4fb067fd4d, Linux 36f81cb7d82e9614a7058da6abdf2e3a03993df1. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-45940?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/b1f23df09e7dbf4c86b6908dff7efb8cb2b7d609>
- patch: <https://git.kernel.org/stable/c/36f81cb7d82e9614a7058da6abdf2e3a03993df1>
- patch: <https://git.kernel.org/stable/c/babab1b42ed68877ef669a08384becf281ad2582>
- other: <https://git.kernel.org/stable/c/a7fe1d75e087862bc4087f3fcdfd5e291b9d9caa>
- other: <https://git.kernel.org/stable/c/107e169f963920b11fa3c1bb384c077fe7330696>
- other: <https://git.kernel.org/stable/c/92b45c99311ac4f3857cccee47059c4fb067fd4d>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-45940>

HTML: <https://flawdb.com/CVE-2026-45940> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-45940>
