CVE-2026-143346: net: stmmac: take ownership of saved RX state at poll entry

Published Dec 3, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

net: stmmac: take ownership of saved RX state at poll entry

When a saved partial packet completes with a poll budget of one, the old loop can leave statesaved and state.skb pointing at an skb that has already been delivered or freed. The next poll then reuses that pointer, causing a use-after-free or double free.

Take the saved state at poll entry and clear the stored ownership immediately. Save it again only if the packet remains incomplete, including when the next descriptor is still DMA-owned.

Track the frame-in-progress flag independently of the status read from the next descriptor. The old code keyed the save on the status of the last descriptor looked at, so a loop stopped at a DMA-owned descriptor (rx status not yet valid) could drop the saved error/length bookkeeping in stmmacrxzc().

Drop the saved state both when the queue parameters are reset and when the ring is destroyed. stmmacresetrxqueue() is reached from stmmacopen(), stmmacxdpopen(), stmmacresume() and stmmacenablerxqueue(); without draining it there, a partial frame saved before suspend (or before a queue is disabled and re-enabled) survives while currx and dirtyrx are rewound to zero. On the resume path the ring is only re-armed in place: stmmaccleardescriptors() sets the ownership bits and stmmacinitdmaengine() restores the tail pointer, but the RX buffer addresses are not reprogrammed. The first poll would then resume the stale skb against a ring position that no longer matches the descriptors it was built from. freedmarxdescresources() releases it on teardown.

Apply the same state handling to stmmacrxzc(), which also leaves statesaved set when a saved frame finishes at the budget boundary. That path saves only error and length bookkeeping, not an skb pointer.

Affected Software

3 affected componentsFixes available
Linux Linux kernel
linux/kernel>=5.4.0<6.18.66
6.18.66
linux/kernel>=6.19.0<7.3.7
7.3.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.66
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.7
  3. Compensating control

    Update stmmac RX state handling to take ownership of saved state and clear the stored ownership at poll entry; track the frame-in-progress flag independently of descriptor status; save state again only while a packet remains incomplete; clear saved state when queue parameters are reset and when the ring is destroyed; and apply the same handling in stmmac_rx_zc().

Event History

Dec 3, 2026
CVE Published
via MITRE·09:22 AM
Data Sourced
via MITRE·09:22 AM
Description
Data Sourced
via OSV·09:22 AM
DescriptionAffected Software
Data Sourced
via NVD·10:18 AM
Description

Frequently Asked Questions

1

Are suspend/resume and receive-queue reconfiguration relevant to this issue?

Yes. A partial frame saved before suspend or before a queue is disabled and re-enabled can leave saved RX state behind unless it is dropped during queue reset. The affected reset path is reached from __stmmac_open(), stmmac_xdp_open(), stmmac_resume(), and stmmac_enable_rx_queue().

2

What receive-processing condition leads to stale buffer ownership?

The unsafe case occurs when a saved partial packet completes during a poll with a budget of one. The previous logic could retain state_saved and state.skb after the skb had already been delivered or freed, allowing the next poll to reuse it.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203