Description
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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
c09440f7dcb304002dfced8c0fea289eb25f2da0 to < 2edba845227b628e0da5930160f83ad0dce4a6cfaffectedc09440f7dcb304002dfced8c0fea289eb25f2da0 to < 92b5b6a909653128b74753dff6be369e11ea2fd4affectedc09440f7dcb304002dfced8c0fea289eb25f2da0 to < 8a66dd77c4344b729f9ea5986d7c6eacc1147586affectedc09440f7dcb304002dfced8c0fea289eb25f2da0 to < 1d5e2c57e9ffc134e14b3f837c8d7c53b508bd22affected
Linux Linux
Default version status: affected
4.6affected0 to < 4.6unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected