CVE-2026-143164: macsec: reject frames that decapsulate into runt Ethernet frames
In the Linux kernel, the following vulnerability has been resolved:
macsec: reject frames that decapsulate into runt Ethernet frames
When an SCI is unknown and the C bit is clear, macsechandleframe() removes the SecTAG and the default ICV without checking how much of the frame remains. A short frame can therefore become an skb shorter than ETHHLEN. ethtypetrans() cannot pull its Ethernet header, and a second stacked MACsec device can copy stale skb headroom into a packet delivered to a packet socket.
The matched-SCI path has a related hole: macsecvalidateskb() accepts a shortlength of one, so a frame that passes the existing length check can still become a 13-byte Ethernet frame.
Require enough bytes for the MACsec overhead and a complete Ethernet header before decapsulating an unknown-SCI frame. Apply the same bound in macsecvalidateskb(), using the selected SecY's ICV length, to cover the no-SA, synchronous-decrypt and asynchronous-decrypt delivery paths. Leave other unknown-SCI handling unchanged.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Compensating control
In macsec_validate_skb(), require enough bytes for the MACsec overhead, using the selected SecY’s ICV length, plus a complete ETH_HLEN Ethernet header before decapsulating frames; apply the same bound to unknown-SCI frames.
Event History
Frequently Asked Questions
Which deployments are most exposed to information disclosure from this issue?
Linux systems using MACsec are affected by the vulnerable frame-processing paths. The described packet-socket exposure requires a second MACsec device stacked on top of the first, where stale skb headroom can be copied into a delivered packet.
What does an attacker need to send to trigger the vulnerable processing?
An attacker needs to provide a short MACsec frame that decapsulates to fewer than a complete Ethernet header. This can occur on the unknown-SCI path when the C bit is clear, or on the matched-SCI path through a frame accepted with a short_length of one.
Which processing paths are covered by the fix?
The fix adds bounds checks using the selected SecY ICV length for unknown-SCI processing and for macsec_validate_skb(). It covers no-SA, synchronous-decrypt, and asynchronous-decrypt delivery paths.