В ядре Linux устранена следующая уязвимость:
netfilter: nft_payload: исправлена сборка маски для частичной разгрузки поля
nft_payload_offload_mask() создает маску соответствия разгрузки для полезной нагрузки.
выражение, которое охватывает только часть поля заголовка. Для частичного IPv6
совпадение адресов (field_len = 16, priv_len = 1), сдвиг которого равен 1 << 120, что
не определено в 32-битном операнде int. Он также обрезает только одно слово, поэтому
остальные слова остаются 0xffffffff (и когда priv_len кратен 4
обрезка полностью пропускается), в результате чего маска покрывает больше байтов, чем
правило совпадает.
UBSAN: сдвиг за пределы в net/netfilter/nft_payload.c:278:20
показатель сдвига 120 слишком велик для 32-битного типа int
...
Соответствие является побайтовым, а структура nft_data инициализируется нулем, поэтому
правильная маска — это просто первые байты priv_len, имеющие значение 0xff. Установите эти
байты напрямую и отбросьте обрезку слов/сдвигов; это удаляет неопределенное
сдвиг и больше не маскирует конечные байты.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_payload: fix mask build for partial field offload nft_payload_offload_mask() builds the offload match mask for a payload expression that covers only part of a header field. For a partial IPv6 address match (field_len = 16, priv_len = 1) that shift is 1 << 120, which is undefined on the 32-bit int operand. It also trims only one word, so the remaining words stay 0xffffffff (and when priv_len is a multiple of 4 the trim is skipped entirely), leaving the mask covering more bytes than the rule matches. UBSAN: shift-out-of-bounds in net/netfilter/nft_payload.c:278:20 shift exponent 120 is too large for 32-bit type 'int' ... The match is byte-granular and struct nft_data is zero-initialised, so the correct mask is simply the first priv_len bytes set to 0xff. Set those bytes directly and drop the word/shift trimming; this removes the undefined shift and no longer over-masks the trailing bytes.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 9
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.10
|
5.10.265
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.10
|
5.15.216
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.10
|
6.1.183
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.10
|
6.6.151
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.10
|
6.12.103
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.10
|
6.18.44
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.10
|
7.1.8
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.10
|
7.2
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.9.14
|
— |