CVE-2025-40337
net: stmmac: Correctly handle Rx checksum offload errors
Check your servers for CVE-2025-40337
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-40337 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity high, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.52%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 45.3% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 3c20f72f9108b2fcf30ec63d8a4203736c01ccd0, before 3c5e5fccc4138c072d99be4ebe6b16df6a70a40c affected from 3c20f72f9108b2fcf30ec63d8a4203736c01ccd0, before 63fbe0e6413279d5ea5842e2423e351ded547683 affected from 3c20f72f9108b2fcf30ec63d8a4203736c01ccd0, before 719fcdf29051f7471d5d433475af76219019d33d affected from 3c20f72f9108b2fcf30ec63d8a4203736c01ccd0, before 1aa319e0f12d2d761a31556b82a5852c98eb0bea affected from 3c20f72f9108b2fcf30ec63d8a4203736c01ccd0, before ee0aace5f844ef59335148875d05bec8764e71e8
Other versions: unaffected
|
| Linux |
affected 3.2 unaffected before 3.2 unaffected from 6.1.191 up to and including 6.1.* unaffected from 6.6.117 up to and including 6.6.* unaffected from 6.12.58 up to and including 6.12.* unaffected from 6.17.8 up to and including 6.17.* unaffected 6.18 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-40337 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40337
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-40337
trivy image --scanners vuln IMAGE | grep CVE-2025-40337
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/3c5e5fccc4138c072d99be4ebe6b16df6a70a40c git.kernel.org
- https://git.kernel.org/stable/c/63fbe0e6413279d5ea5842e2423e351ded547683 git.kernel.org
- https://git.kernel.org/stable/c/719fcdf29051f7471d5d433475af76219019d33d git.kernel.org
- https://git.kernel.org/stable/c/1aa319e0f12d2d761a31556b82a5852c98eb0bea git.kernel.org
- https://git.kernel.org/stable/c/ee0aace5f844ef59335148875d05bec8764e71e8 git.kernel.org
Source: the record CVE-2025-40337 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse