# CVE-2024-56719: net: stmmac: fix TSO DMA API usage causing oops

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

- **Severity:** CRITICAL 10.0
- **CVSS:** 10.0 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.99% (percentile 61, 2026-11-28)
- **Published:** 2024-12-29T08:48:51.495Z
- **Modified:** 2026-11-10T13:17:27.357Z

## Who should check

- Anyone running Linux \>= ece593fc9c00741b682869d3f3dc584d37b7c9df, \< 05968b6dd0ffc65d7386608b11a11fb4fdfc9f36; \>= a3ff23f7c3f0e13f718900803e090fd3997d6bc9, \< 6abcdc9a73274052a9e96a1926994ecf9aedad82; \>= 07c9c26e37542486e34d767505e842f48f29c3f6, \< db3667c9bbfbbf5de98e6c9542f7e03fb5243286; \>= 66600fac7a984dea4ae095411f644770b2561ede, \< 9d5dd7ccea1b46a9a7c6b3c2b9e5ed8864e185e2; \>= 66600fac7a984dea4ae095411f644770b2561ede, \< 4c49f38e20a57f8abaebdf95b369295b153d1f8e; 58d23d835eb498336716cca55b5714191a309286; \>= 5.15.171, \< 5.15.209; \>= 6.1.116, \< 6.1.167; \>= 6.6.60, \< 6.6.68; \>= 6.11.7, \< 6.12
- Anyone running Linux 6.12

## Description

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

net: stmmac: fix TSO DMA API usage causing oops

Commit 66600fac7a98 ("net: stmmac: TSO: Fix unbalanced DMA map/unmap
for non-paged SKB data") moved the assignment of tx\_skbuff\_dma\[\]'s
members to be later in stmmac\_tso\_xmit().

The buf (dma cookie) and len stored in this structure are passed to
dma\_unmap\_single() by stmmac\_tx\_clean(). The DMA API requires that
the dma cookie passed to dma\_unmap\_single() is the same as the value
returned from dma\_map\_single(). However, by moving the assignment
later, this is not the case when priv-\>dma\_cap.addr64 \> 32 as "des"
is offset by proto\_hdr\_len.

This causes problems such as:

  dwc-eth-dwmac 2490000.ethernet eth0: Tx DMA map failed

and with DMA\_API\_DEBUG enabled:

  DMA-API: dwc-eth-dwmac 2490000.ethernet: device driver tries to +free DMA memory it has not allocated \[device address=0x000000ffffcf65c0\] \[size=66 bytes\]

Fix this by maintaining "des" as the original DMA cookie, and use
tso\_des to pass the offset DMA cookie to stmmac\_tso\_allocator().

Full details of the crashes can be found at:
https://lore.kernel.org/all/d8112193-0386-4e14-b516-37c2d838171a@nvidia.com/
https://lore.kernel.org/all/klkzp5yn5kq5efgtrow6wbvnc46bcqfxs65nz3qy77ujr5turc@bwwhelz2l4dw/

## Affected and fixed versions

- Linux: \>= ece593fc9c00741b682869d3f3dc584d37b7c9df, \< 05968b6dd0ffc65d7386608b11a11fb4fdfc9f36; \>= a3ff23f7c3f0e13f718900803e090fd3997d6bc9, \< 6abcdc9a73274052a9e96a1926994ecf9aedad82; \>= 07c9c26e37542486e34d767505e842f48f29c3f6, \< db3667c9bbfbbf5de98e6c9542f7e03fb5243286; \>= 66600fac7a984dea4ae095411f644770b2561ede, \< 9d5dd7ccea1b46a9a7c6b3c2b9e5ed8864e185e2; \>= 66600fac7a984dea4ae095411f644770b2561ede, \< 4c49f38e20a57f8abaebdf95b369295b153d1f8e; 58d23d835eb498336716cca55b5714191a309286; \>= 5.15.171, \< 5.15.209; \>= 6.1.116, \< 6.1.167; \>= 6.6.60, \< 6.6.68; \>= 6.11.7, \< 6.12 (cvelist)
- Linux: 6.12 (cvelist)

## Mitigation

- Upgrade Linux to 6.12 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-56719.md
Affected: Linux >= ece593fc9c00741b682869d3f3dc584d37b7c9df, < 05968b6dd0ffc65d7386608b11a11fb4fdfc9f36; >= a3ff23f7c3f0e13f718900803e090fd3997d6bc9, < 6abcdc9a73274052a9e96a1926994ecf9aedad82; >= 07c9c26e37542486e34d767505e842f48f29c3f6, < db3667c9bbfbbf5de98e6c9542f7e03fb5243286; >= 66600fac7a984dea4ae0954…
Fixed in: Linux 05968b6dd0ffc65d7386608b11a11fb4fdfc9f36, Linux 6abcdc9a73274052a9e96a1926994ecf9aedad82, Linux 9d5dd7ccea1b46a9a7c6b3c2b9e5ed8864e185e2, Linux 4c49f38e20a57f8abaebdf95b369295b153d1f8e, Linux 5.15.209, Linux 6.1.167, Linux 6.6.68, Linux 6.12

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-2024-56719 being exploited?

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

### How serious is CVE-2024-56719?

Critical: CVSS 10.0 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2024-56719?

Linux \>= ece593fc9c00741b682869d3f3dc584d37b7c9df, \< 05968b6dd0ffc65d7386608b11a11fb4fdfc9f36; \>= a3ff23f7c3f0e13f718900803e090fd3997d6bc9, \< 6abcdc9a73274052a9e96a1926994ecf9aedad82; \>= 07c9c26e37542486e34d767505e842f48f29c3f6, \< db3667c9bbfbbf5de98e6c9542f7e03fb5243286; \>= 66600fac7a984dea4ae095411f644770b2561ede, \< 9d5dd7ccea1b46a9a7c6b3c2b9e5ed8864e185e2; \>= 66600fac7a984dea4ae095411f644770b2561ede, \< 4c49f38e20a57f8abaebdf95b369295b153d1f8e; 58d23d835eb498336716cca55b5714191a309286; \>= 5.15.171, \< 5.15.209; \>= 6.1.116, \< 6.1.167; \>= 6.6.60, \< 6.6.68; \>= 6.11.7, \< 6.12; Linux 6.12.

### Is there a fix for CVE-2024-56719?

Yes. Fixed in Linux 05968b6dd0ffc65d7386608b11a11fb4fdfc9f36, Linux 6abcdc9a73274052a9e96a1926994ecf9aedad82, Linux 9d5dd7ccea1b46a9a7c6b3c2b9e5ed8864e185e2, Linux 4c49f38e20a57f8abaebdf95b369295b153d1f8e, Linux 5.15.209, Linux 6.1.167, Linux 6.6.68, Linux 6.12. Upgrade Linux to 6.12 or later.

### How do I check if I'm affected by CVE-2024-56719?

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/db3667c9bbfbbf5de98e6c9542f7e03fb5243286>
- patch: <https://git.kernel.org/stable/c/9d5dd7ccea1b46a9a7c6b3c2b9e5ed8864e185e2>
- patch: <https://git.kernel.org/stable/c/4c49f38e20a57f8abaebdf95b369295b153d1f8e>
- other: <https://git.kernel.org/stable/c/05968b6dd0ffc65d7386608b11a11fb4fdfc9f36>
- other: <https://git.kernel.org/stable/c/6abcdc9a73274052a9e96a1926994ecf9aedad82>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## 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-2024-56719>

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