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, macsec_handle_frame() 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 ETH_HLEN. eth_type_trans() 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: macsec_validate_skb() accepts a short_length 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 macsec_validate_skb(), 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.
https://git.kernel.org/stable/c/92b5b6a909653128b74753dff6be369e11ea2fd4
https://git.kernel.org/stable/c/8a66dd77c4344b729f9ea5986d7c6eacc1147586
https://git.kernel.org/stable/c/2edba845227b628e0da5930160f83ad0dce4a6cf
https://git.kernel.org/stable/c/1d5e2c57e9ffc134e14b3f837c8d7c53b508bd22