Advisory Published
Updated

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

First published: Sun Dec 29 2024(Updated: )

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/

Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Affected SoftwareAffected VersionHow to fix
Linux Kernel>=5.15.171<5.16
Linux Kernel>=6.1.116<6.2
Linux Kernel>=6.6.60<6.6.68
Linux Kernel>=6.11.7<6.12.7
Linux Kernel=6.13-rc1
Linux Kernel=6.13-rc2
debian/linux<=6.1.129-1<=6.1.128-1
5.10.223-1
5.10.234-1
6.12.20-1
6.12.21-1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-56719?

    CVE-2024-56719 is classified as a moderate severity vulnerability in the Linux kernel.

  • How do I fix CVE-2024-56719?

    To fix CVE-2024-56719, update your Linux kernel to a version that has addressed this vulnerability.

  • What software versions are affected by CVE-2024-56719?

    CVE-2024-56719 affects various versions of the Linux kernel ranging from 5.15.171 to 6.12.7, including specific release candidates.

  • What type of vulnerability is CVE-2024-56719?

    CVE-2024-56719 involves an issue with the TSO DMA API usage in the Linux kernel, leading to potential system instability.

  • Is there a known exploit for CVE-2024-56719?

    As of now, there are no publicly known exploits specifically targeting CVE-2024-56719.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203