В ядре Linux устранена следующая уязвимость:
xfrm: ах: учитывать старшие биты ESN в асинхронных обратных вызовах
AH по-разному распределяет временную структуру аутентификации/ICV, когда включен ESN:
настройка async ahash добавляет 4-байтовый слот seqhi перед ICV или
auth_data, но обратные вызовы асинхронного завершения по-прежнему восстанавливают
временная планировка, как будто секхи отсутствовала. Если выбрана реализация асинхронного AH, это позволяет AH копировать или сравнивать
неправильные байты на путях IPv4 и IPv6. В воспроизведении UML на IPv4 AH
с ESN и принудительной асинхронностью hmac(sha1) пинг завершается с ошибкой со 100% потерей пакетов,
и журналы обратных вызовов показывают смещение до исправления:
ah4 output_done: esn=1 err=0 icv_off=20 ожидаемое_off=24
ah4 input_done: esn=1 auth_off=20 ожидаемый_auth_off=24 icv_off=32 ожидаемый_icv_off=36
Восстановите макет на стороне обратного вызова так же, как его построил путь установки.
пропуская слот ESN seqhi перед поиском сохраненных данных auth_data или ICV.
Согласно RFC 4302, 32 бита старшего порядка ESN участвуют в AH ICV.
вычисления, поэтому асинхронные обратные вызовы должны учитывать слот seqhi. После исправления показано то же воспроизведение UML IPv4 AH+ESN+forced-async-hmac(sha1)
исправленное смещение (ah4 output_done: esn=1 err=0 icv_off=24
ожидаемое_выключение=24) и пинг успешен; net/ipv4/ah4.o и net/ipv6/ah6.o
построить чисто при W=1. IPv6 AH+ESN не использовался во время выполнения, и
изменение не тестировалось на реальном асинхронном аппаратном механизме AH.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: xfrm: ah: account for ESN high bits in async callbacks AH allocates its temporary auth/ICV layout differently when ESN is enabled: the async ahash setup appends a 4-byte seqhi slot before the ICV or auth_data area, but the async completion callbacks still reconstruct the temporary layout as if seqhi were absent. With an async AH implementation selected, that makes AH copy or compare the wrong bytes on both the IPv4 and IPv6 paths. In UML repro on IPv4 AH with ESN and forced async hmac(sha1), ping fails with 100% packet loss, and the callback logs show the pre-fix drift: ah4 output_done: esn=1 err=0 icv_off=20 expected_off=24 ah4 input_done: esn=1 auth_off=20 expected_auth_off=24 icv_off=32 expected_icv_off=36 Reconstruct the callback-side layout the same way the setup path built it by skipping the ESN seqhi slot before locating the saved auth_data or ICV. Per RFC 4302, the ESN high-order 32 bits participate in the AH ICV computation, so the async callbacks must account for the seqhi slot. Post-fix, the same IPv4 AH+ESN+forced-async-hmac(sha1) UML repro shows the corrected offset (ah4 output_done: esn=1 err=0 icv_off=24 expected_off=24) and ping succeeds; net/ipv4/ah4.o and net/ipv6/ah6.o build clean at W=1. IPv6 AH+ESN was not exercised at runtime, and the change has not been tested against a real async hardware AH engine.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 6
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
3.15
|
6.6.140
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.88
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.30
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.7
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
|
— | — |