CVE-2026-143346

Not scored yetLast modified Dec 3, 2026

Description

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 state_saved 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 stmmac_rx_zc().

Drop the saved state both when the queue parameters are reset and when the ring is destroyed. stmmac_reset_rx_queue() is reached from __stmmac_open(), stmmac_xdp_open(), stmmac_resume() and stmmac_enable_rx_queue(); without draining it there, a partial frame saved before suspend (or before a queue is disabled and re-enabled) survives while cur_rx and dirty_rx are rewound to zero. On the resume path the ring is only re-armed in place: stmmac_clear_descriptors() sets the ownership bits and stmmac_init_dma_engine() 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. __free_dma_rx_desc_resources() releases it on teardown.

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

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-143347In the Linux kernel, the following vulnerability has been resolved: tcp: do not let tcp_collapse() drive sk_forward_alloc negative tcp_colCVE-2026-143348In the Linux kernel, the following vulnerability has been resolved: ipv6: fix fib6 walker UAF on NLM_F_REPLACE fib6_walker uses w->leaf toCVE-2026-143349In the Linux kernel, the following vulnerability has been resolved: net/mlx5: macsec: free struct mlx5_fs_id after an RCU grace period macCVE-2026-143357.2The Easy Digital Downloads – eCommerce Payments and Subscriptions made easy plugin for WordPress is vulnerable to Stored Cross-Site ScriptinCVE-2026-143350In the Linux kernel, the following vulnerability has been resolved: bpf: lwt: Free the skb when bpf_xmit() fails to expand the headroom WhCVE-2026-143351In the Linux kernel, the following vulnerability has been resolved: bpf: Check the offset in bpf_skb_generic_{push,pop}() To make room forCVE-2026-143352In the Linux kernel, the following vulnerability has been resolved: bpf: Move the transport header with the moved headers bpf_skb_net_hdr_CVE-2026-143353In the Linux kernel, the following vulnerability has been resolved: bpf: Don't let lwt_in progs call into IPv6 when it is disabled With ipCVE-2026-143354In the Linux kernel, the following vulnerability has been resolved: bpf: Require BPF_LWT_REROUTE when an lwt_in prog changes the protocol CVE-2026-143355In the Linux kernel, the following vulnerability has been resolved: bpf: Reset skb->cb after an lwt prog pushes an IP header IPCB(skb)->opCVE-2026-143356In the Linux kernel, the following vulnerability has been resolved: bpf: Move the MAC header in bpf_lwt_seg6_adjust_srh() bpf_skb_net_hdr_CVE-2026-143357In the Linux kernel, the following vulnerability has been resolved: bpf: Don't look for the SRH again in the End.BPF helpers A packet can
CVE-2026-143346: Unscored | Vulnix