CVE-2025-40337: net: stmmac: Correctly handle Rx checksum offload errors

Published Dec 9, 2025
·
Updated

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

net: stmmac: Correctly handle Rx checksum offload errors

The stmmacrx function would previously set skb->ipsummed to CHECKSUMUNNECESSARY if hardware checksum offload (CoE) was enabled and the packet was of a known IP ethertype.

However, this logic failed to check if the hardware had actually reported a checksum error. The hardware status, indicating a header or payload checksum failure, was being ignored at this stage. This could cause corrupt packets to be passed up the network stack as valid.

This patch corrects the logic by checking the csumnone status flag, which is set when the hardware reports a checksum error. If this flag is set, skb->ipsummed is now correctly set to CHECKSUMNONE, ensuring the kernel's network stack will perform its own validation and properly handle the corrupt packet.

Affected Software

2 affected componentsFixes available
linux/kernel
Microsoft azl3 kernel 6.6.112.1-2

Event History

Dec 9, 2025
CVE Published
via MITRE·04:09 AM
Data Sourced
via MITRE·04:09 AM
DescriptionSeverity
Data Sourced
via NVD·04:17 PM
DescriptionSeverity
Dec 10, 2025
Data Sourced
via Microsoft·01:02 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·01:02 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2025-40337?

CVE-2025-40337 has been classified as a medium severity vulnerability.

2

How do I fix CVE-2025-40337?

To fix CVE-2025-40337, update your Linux kernel to the latest stable version that includes the patch for this vulnerability.

3

What components are affected by CVE-2025-40337?

CVE-2025-40337 affects the stmmac driver in the Linux kernel, particularly related to hardware checksum offload.

4

What issues does CVE-2025-40337 cause?

CVE-2025-40337 can lead to improper handling of received checksum errors, potentially affecting network communications.

5

Is CVE-2025-40337 exploitable?

Yes, CVE-2025-40337 is considered exploitable under certain conditions where hardware checksum offload is enabled.

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203