CVE-2025-40337 Details
Description
In the Linux kernel, the following vulnerability has been resolved: net: stmmac: Correctly handle Rx checksum offload errors The stmmac_rx function would previously set skb->ip_summed to CHECKSUM_UNNECESSARY 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 `csum_none` status flag, which is set when the hardware reports a checksum error. If this flag is set, skb->ip_summed is now correctly set to CHECKSUM_NONE, ensuring the kernel's network stack will perform its own validation and properly handle the corrupt packet.
A vulnerability in the Linux kernel's stmmac Ethernet driver could lead to corrupted packets being incorrectly processed as valid. This issue arises because the driver fails to properly handle hardware checksum offload errors. When hardware checksum offload is enabled, the driver should verify if the hardware has reported a checksum error before passing the packet up the network stack. However, this check is currently missing, allowing packets with checksum errors to be accepted as valid. The vulnerability affects the Linux kernel stable tree.
Users can apply the patch available in the Linux kernel stable tree to address this vulnerability. The patch is included in the official Linux kernel repositories.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 9, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/1aa319e0f12d2d761a31556b82a5852c98eb0bea | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/3c5e5fccc4138c072d99be4ebe6b16df6a70a40c | kernel.org | |
| https://git.kernel.org/stable/c/63fbe0e6413279d5ea5842e2423e351ded547683 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/719fcdf29051f7471d5d433475af76219019d33d | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/ee0aace5f844ef59335148875d05bec8764e71e8 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 30, 2026 | CVE Modified | kernel.org |
| Oct 14, 2026 | CVE Translated | [email protected] |
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 9, 2025 | New CVE Received | kernel.org |
Volerion