CVE-2025-40337
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-40337 is a vulnerability in the Linux kernel's net/stmmac (STMicroelectronics MAC) network driver related to incorrect handling of hardware Rx checksum offload (CoE) errors. The stmmac_rx function failed to check whether the hardware had reported a checksum error, allowing corrupt packets to be passed up the network stack as valid. It was published on December 9, 2025, and affects Linux kernel versions from the initial commit up to (but not including) the patched stable releases. It carries a CVSS v3.1 base score of 5.5 (Medium), with a local attack vector and high availability impact (MSRC, ENISA EUVD).

Technical details

The root cause is improper input validation / incorrect logic in the stmmac_rx function (CWE-754: Improper Check for Unusual or Exceptional Conditions). When hardware checksum offload (CoE) was enabled and a packet matched a known IP ethertype, the driver unconditionally set skb->ip_summed to CHECKSUM_UNNECESSARY, bypassing the kernel's software checksum validation — even when the hardware had flagged a header or payload checksum failure via the csum_none status bit. The fix checks the csum_none flag and, when set, assigns CHECKSUM_NONE to skb->ip_summed, forcing the kernel network stack to perform its own validation. Exploitation requires local access (e.g., the ability to send crafted network packets to an interface using the stmmac driver) (MSRC, ENISA EUVD).

Impact

The primary impact is an availability risk: corrupt network packets with invalid checksums can be silently accepted and processed by the kernel's network stack rather than being discarded, potentially causing application-layer misbehavior, data corruption, or denial-of-service conditions in software relying on checksum integrity. There is no direct confidentiality or integrity impact on the host system itself, and lateral movement potential is limited. The vulnerability affects systems using the stmmac Ethernet driver, which is common in embedded and SoC-based Linux platforms (MSRC, ENISA EUVD).

Mitigation and workarounds

The Linux kernel stable trees have been patched in the following versions: 6.6.117, 6.12.58, 6.17.8, and 6.18 (mainline). Microsoft has also released a patch for the Azure Linux 3 kernel (azl3_kernel_6.6.112.1-2 and later). Users should update to the appropriate patched kernel version for their distribution. No configuration-based workaround is documented; disabling hardware checksum offload on the affected interface (e.g., via ethtool -K <iface> rx-checksum off) may mitigate the issue as a temporary measure until patching is possible (MSRC, ENISA EUVD).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64557NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoNoJul 29, 2026
CVE-2026-64556NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoNoJul 29, 2026
CVE-2026-64555NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoNoJul 27, 2026
CVE-2026-64554NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.14
NoYesJul 27, 2026
CVE-2026-64553NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesJul 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management