В ядре Linux устранена следующая уязвимость:
пакет: используйте согласованный hard_header_len в пути отправки TX_RING
tpacket_snd() независимо читает dev->hard_header_len для skb
выделение и построение заголовка в tpacket_fill_skb(). Параллельно
Таким образом, реконфигурация netdevice может сделать зарезервированный запас
меньше, чем сумма, отправленная позже, или сделайте copylen — hard_header_len
отрицательный. Сделайте снимок hard_header_len один раз перед обработкой кольцевых кадров и используйте его.
для ограничения кадра, распределения запаса, длины копии и skb
строительство.
Передайте снимок в tpacket_fill_skb(). Отдельная проблема согласованности SOCK_DGRAM между hard_header_len и
header_ops->create здесь не рассматривается.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: packet: use consistent hard_header_len in TX_RING send path tpacket_snd() reads dev->hard_header_len independently for skb allocation and header construction in tpacket_fill_skb(). Concurrent netdevice reconfiguration can therefore make the reserved headroom smaller than the amount later pushed, or make copylen - hard_header_len negative. Snapshot hard_header_len once before processing ring frames and use it for the frame limit, headroom allocation, copy length, and skb construction. Pass the snapshot to tpacket_fill_skb(). The separate SOCK_DGRAM consistency problem between hard_header_len and header_ops->create is not addressed here.
Характеристики атаки
Последствия
Строка CVSS v3.1