Skip to main content
EPSS 0.5%top 60%

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)

0
High
Published: 12/09/2025 (12/09/2025, 18:30:36 UTC)
Source: GCVE Database

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/30/2026, 17:53:31 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses