CVE-2025-40337

Description

A flaw was found in the Linux kernel's STMicroelectronics Ethernet (stmmac) driver. When hardware checksum offload is enabled, the driver fails to check hardware error flags for corrupted packets received over the network. An attacker on an adjacent network path capable of transmitting malformed frames can exploit this flaw to bypass network stack verification, causing corrupted packets to be accepted and processed as valid.

Statement

This vulnerability does not affect supported Red Hat Enterprise Linux releases as the susceptible code is not present. The underlying issue is isolated to the STMicroelectronics Ethernet (stmmac) controller driver, which is typically found in specialized embedded systems and system-on-chip architectures rather than enterprise server environments. Under affected configurations, the flaw would allow packets with invalid hardware checksums to bypass network stack verification, requiring an attacker to be on an adjacent network path capable of transmitting malformed frames.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score8.2N/A8.2
Attack VectorNetworkN/ANetwork
Attack ComplexityLowN/ALow
Privileges RequiredNoneN/ANone
User InteractionNoneN/ANone
ScopeUnchangedN/AUnchanged
ConfidentialityNoneN/ANone
Integrity ImpactHighN/AHigh
Availability ImpactLowN/ALow

Vector

Red Hat: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L

cve.org: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L

Understanding the Weakness (CWE)

Integrity,Other

Technical Impact: Modify Application Data; Other

Integrity checks usually use a secret key that helps authenticate the data origin. Skipping integrity checking generally opens up the possibility that new data from an invalid source can be injected.

Integrity,Other

Technical Impact: Other

Data that is parsed and used may be corrupted.

Non-Repudiation,Other

Technical Impact: Hide Activities; Other

Without a checksum check, it is impossible to determine if any changes have been made to the data after it was sent.

Frequently Asked Questions

Want to get errata notifications? Sign up here.