CVE-2026-98571

net: stmmac: clear stale buf->page after recycling on skb build failure

Published Oct 18, 2026 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

net: stmmac: clear stale buf->page after recycling on skb build failure

In stmmac_rx(), when napi_build_skb() fails the descriptor page is
recycled back to the page pool with page_pool_recycle_direct(), but
buf->page is left pointing at the recycled page, unlike every other
consumption site in the function which clears the pointer after handing
the page away.

With the stale pointer stmmac_rx_refill() skips the replacement
allocation and programs the already-recycled page back into the RX
descriptor.

Clear buf->page on the napi_build_skb() failure path to keep the buffer
lifecycle consistent with the other consumption sites.

Analysis

AI-generated

Technical impact

The Linux kernel’s stmmac network driver releases a page back to the pool when skb construction fails but fails to clear the page pointer on the descriptor. The stale pointer is later reused, causing the driver to assign a page that has already been returned to the pool. This results in a use‑after‑free and memory corruption within the kernel, which can lead to a denial‑of‑service crash or, if an attacker manages to trigger the fault repeatedly, potentially extract information from kernel memory. The weakness is an instance of improper handling of freed memory (CWE-825).

Affected Systems

Linux kernel running the stmmac driver. All kernel versions that lack the patch compiled into the stmmac module are affected. No specific version range is listed in the CVE data.

Risk and Exploitability

The CVSS score of 5.9 indicates a moderate impact. The EPSS score of less than 1% suggests a low probability of exploitation. The vulnerability is not listed in CISA KEV. The risk is assessed as a kernel memory corruption that could cause a crash if an attacker can force skb build failures in the stmmac driver. The likely attack vector is through crafted network traffic or a denial‑of‑service condition on the NIC that leads to repeated skb build failures. While exploitation has not been demonstrated publicly, the potential impact on confidentiality, integrity, and availability is significant for affected systems.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a Linux kernel version that includes the stmmac_rx patch shown in the provided references
  • If a kernel upgrade cannot be performed immediately, disable or isolate the network interfaces that use the stmmac driver to prevent traffic from triggering skb build failures
  • If the chipset or driver is not required for operation, consider unloading or removing the stmmac driver from the kernel

Generated by OpenCVE AI on October 20, 2026 at 16:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net: stmmac: clear stale buf->page after recycling on skb build failure In stmmac_rx(), when napi_build_skb() fails the descriptor page is recycled back to the page pool with page_pool_recycle_direct(), but buf->page is left pointing at the recycled page, unlike every other consumption site in the function which clears the pointer after handing the page away. With the stale pointer stmmac_rx_refill() skips the replacement allocation and programs the already-recycled page back into the RX descriptor. Clear buf->page on the napi_build_skb() failure path to keep the buffer lifecycle consistent with the other consumption sites.
Title net: stmmac: clear stale buf->page after recycling on skb build failure
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-825

    Expired Pointer Dereference

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 9:21 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 18, 2026, 4:17 PM
Modified
Oct 19, 2026, 10:19 AM
Severity
Moderate
Public date
Oct 18, 2026, 12:00 AM