In the Linux kernel, the following vulnerability has been resolved: net: stmmac: Correctly handle Rx checksum offload errors The stmmac_rx function… (CVE-2025-40337)
A vulnerability in the Linux kernel's stmmac network driver caused it to incorrectly handle Rx checksum offload errors. The affected function, stmmac_rx, would mark packets as having valid checksums even when hardware reported checksum errors, potentially allowing corrupt packets to be processed by the network stack. This flaw has been corrected by ensuring the kernel checks the hardware status flag indicating checksum errors and forces software validation of such packets.
AI Analysis
Technical Summary
The Linux kernel's stmmac_rx function previously set skb->ip_summed to CHECKSUM_UNNECESSARY whenever hardware checksum offload was enabled and the packet was a known IP ethertype, without verifying if the hardware reported a checksum error. This omission meant that corrupt packets with checksum failures could be passed up the network stack as valid. The patch fixes this by checking the csum_none status flag, which the hardware sets when a checksum error occurs, and setting skb->ip_summed to CHECKSUM_NONE to trigger software checksum validation, preventing corrupt packets from being accepted as valid.
Potential Impact
This vulnerability could allow corrupt network packets to be accepted as valid by the Linux kernel network stack, potentially leading to data integrity issues or denial of service conditions. The CVSS vector indicates no confidentiality impact, high integrity impact, and low availability impact. There are no known exploits in the wild at this time.
Mitigation Recommendations
A patch has been applied to the Linux kernel to correct the checksum offload error handling in the stmmac driver. Users should update to a kernel version that includes this fix. Since no explicit patch links or vendor advisories are provided, verify with the official Linux kernel release notes or vendor updates for the fixed version. Patch status is not yet confirmed in this data—check the vendor advisory for current remediation guidance.
In the Linux kernel, the following vulnerability has been resolved: net: stmmac: Correctly handle Rx checksum offload errors The stmmac_rx function… (CVE-2025-40337)
Description
A vulnerability in the Linux kernel's stmmac network driver caused it to incorrectly handle Rx checksum offload errors. The affected function, stmmac_rx, would mark packets as having valid checksums even when hardware reported checksum errors, potentially allowing corrupt packets to be processed by the network stack. This flaw has been corrected by ensuring the kernel checks the hardware status flag indicating checksum errors and forces software validation of such packets.
CVSS v3.1
Score 8.2high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's stmmac_rx function previously set skb->ip_summed to CHECKSUM_UNNECESSARY whenever hardware checksum offload was enabled and the packet was a known IP ethertype, without verifying if the hardware reported a checksum error. This omission meant that corrupt packets with checksum failures could be passed up the network stack as valid. The patch fixes this by checking the csum_none status flag, which the hardware sets when a checksum error occurs, and setting skb->ip_summed to CHECKSUM_NONE to trigger software checksum validation, preventing corrupt packets from being accepted as valid.
Potential Impact
This vulnerability could allow corrupt network packets to be accepted as valid by the Linux kernel network stack, potentially leading to data integrity issues or denial of service conditions. The CVSS vector indicates no confidentiality impact, high integrity impact, and low availability impact. There are no known exploits in the wild at this time.
Mitigation Recommendations
A patch has been applied to the Linux kernel to correct the checksum offload error handling in the stmmac driver. Users should update to a kernel version that includes this fix. Since no explicit patch links or vendor advisories are provided, verify with the official Linux kernel release notes or vendor updates for the fixed version. Patch status is not yet confirmed in this data—check the vendor advisory for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-4h2c-rg8h-8jqc
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-40337"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a6b72d49c2644c7f8478f2e
Added to database: 07/30/2026, 15:50:44 UTC
Last enriched: 07/30/2026, 17:53:31 UTC
Last updated: 09/10/2026, 19:38:47 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.