В ядре Linux устранена следующая уязвимость:
ipv4: учет fraggap на пути страничного распределения
В __ip_append_data(), когда берется ветвь страничного распределения,
аллоклен и педждлен вычисляются как
аллоклен = фрагхедерлен + трансхдрлен;
pagedlen = datalen - трансхдрлен;
datalen уже включает fraggap, но байты fraggap переносятся
из предыдущего skb копируются в линейную область нового skb по адресу
смещение transhdrlen последующим skb_copy_and_csum_bits(). Таким образом, линейная область занижается на несколько байтов, в то время как pagedlen
завышена на ту же сумму. Невыгружаемая ветвь устанавливает для alloclen значение fraglen, что уже учитывает
для fraggap, потому что datalen это делает.
Приведите выгружаемую ветку в соответствие с помощью
добавление fraggap к alloclen и вычитание его из pagedlen. После этой корректировки копия больше не сворачивается в -fraggap на
постраничный путь, поэтому удалите устаревший комментарий, описывающий эту старую арифметику.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: ipv4: account for fraggap on the paged allocation path In __ip_append_data(), when the paged-allocation branch is taken, alloclen and pagedlen are computed as alloclen = fragheaderlen + transhdrlen; pagedlen = datalen - transhdrlen; datalen already includes fraggap, but the fraggap bytes carried over from the previous skb are copied into the new skb's linear area at offset transhdrlen by the subsequent skb_copy_and_csum_bits(). The linear area is therefore undersized by fraggap bytes while pagedlen is overstated by the same amount. The non-paged branch sets alloclen to fraglen, which already accounts for fraggap because datalen does. Bring the paged branch in line by adding fraggap to alloclen and subtracting it from pagedlen. After this adjustment, copy no longer collapses to -fraggap on the paged path, so remove the stale comment describing that old arithmetic.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 4
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.0
|
6.6.144
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.95
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.38
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.1.3
|