CVE-2026-143342

Not scored yetLast modified Dec 3, 2026

Description

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

net: stmmac: fix VLAN tag stripping on short and non-linear RX frames

stmmac_rx_vlan() reads the VLAN header straight from skb->data and removes it with skb_pull(), assuming the header is fully present in the linear part of the skb. XDP can change the frame length and head layout before the tag is stripped.

An XDP program can use bpf_xdp_adjust_tail() to shrink a frame to as little as ETH_HLEN while bytes 12-13 still contain a VLAN ethertype. The driver then reads h_vlan_TCI past skb->len and pops the tag, leaving less than ETH_HLEN in the skb. eth_type_trans() cannot pull the MAC header, so a malformed skb is passed up. The TCI is also read from the wrong place when the tag is not fully in the linear head, e.g. when it spans into a frag.

Read h_vlan_proto after pulling ETH_HLEN into the linear part, and check it together with the device features. Only if the tag is actually going to be popped, pull VLAN_ETH_HLEN and re-derive the header pointer afterwards, as pskb_may_pull() may reallocate the skb head. Return an error so the callers can drop a frame that claims a VLAN tag but cannot provide the full header. This also drops and counts frames shorter than ETH_HLEN in rx_dropped, even when VLAN RX offload is disabled; bpf_xdp_adjust_head() and bpf_xdp_adjust_tail() cannot produce such a frame, so it only affects a runt that reaches the driver, and dropping it is safer than handing it to eth_type_trans().

Also move the XDP metadata written with bpf_xdp_adjust_meta() together with the MAC header when the tag is popped, so data_meta still points at the metadata after eth_type_trans() anchors mac_header, instead of at the first bytes of the destination MAC.

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-143343In the Linux kernel, the following vulnerability has been resolved: net: stmmac: copy XDP metadata in AF_XDP zero-copy RX stmmac_constructCVE-2026-143344In the Linux kernel, the following vulnerability has been resolved: net: stmmac: drop multi-buffer frames in XDP mode stmmac_rx() runs theCVE-2026-143345In the Linux kernel, the following vulnerability has been resolved: net: stmmac: drop split frames on AF_XDP zero-copy RX stmmac_rx_zc() aCVE-2026-143346In the Linux kernel, the following vulnerability has been resolved: net: stmmac: take ownership of saved RX state at poll entry When a savCVE-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 ip
CVE-2026-143342: Unscored | Vulnix