В ядре Linux устранена следующая уязвимость:
crypto: nx — исправить аргумент nx_crypto_ctx_exit
nx_crypto_ctx_shash_exit вызывает nx_crypto_ctx_exit с помощью crypto_shash_ctx(...)
но crypto_shash_ctx дает nx_crypto_ctx *, а не crypto_tfm *. Исправьте тип в nx_crypto_ctx_exit и удалите фиктивный crypto_tfm_ctx.
позвони. Это исправляет следующие ошибки:
ОШИБКА: невозможно обработать доступ к данным ядра по адресу 0xc0403effffffffc8.
Адрес сбойной инструкции: 0xc000000000396cb4. Упс: доступ к ядру в плохой области, сигнал: 11 [#15]
Отслеживание вызова:
nx_crypto_ctx_shash_exit+0x24/0x60
crypto_shash_exit_tfm+0x28/0x40
crypto_destroy_tfm+0x98/0x140
crypto_exit_ahash_using_shash+0x20/0x40
crypto_destroy_tfm+0x98/0x140
hash_release+0x1c/0x30
alg_sock_destruct+0x38/0x60
__sk_destruct+0x48/0x2b0
af_alg_release+0x58/0xb0
__sock_release+0x68/0x150
носок_близко+0x20/0x40
__fput+0x110/0x3a0
sys_close+0x48/0xa0
system_call_Exception+0x140/0x2d0
system_call_common+0xf4/0x258
.. который был получен из жесткой ссылки (1) с использованием AF_ALG. Та же проблема существует с nx_crypto_ctx_skcipher_exit, получающим контекст
он не ожидал, но, очевидно, никто не попадал в него уже много лет.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: crypto: nx - fix nx_crypto_ctx_exit argument nx_crypto_ctx_shash_exit calls nx_crypto_ctx_exit with crypto_shash_ctx(...) but crypto_shash_ctx gives a nx_crypto_ctx *, not a crypto_tfm *. Fix the type in nx_crypto_ctx_exit and drop the bogus crypto_tfm_ctx call. This fixes the following oops: BUG: Unable to handle kernel data access at 0xc0403effffffffc8 Faulting instruction address: 0xc000000000396cb4 Oops: Kernel access of bad area, sig: 11 [#15] Call Trace: nx_crypto_ctx_shash_exit+0x24/0x60 crypto_shash_exit_tfm+0x28/0x40 crypto_destroy_tfm+0x98/0x140 crypto_exit_ahash_using_shash+0x20/0x40 crypto_destroy_tfm+0x98/0x140 hash_release+0x1c/0x30 alg_sock_destruct+0x38/0x60 __sk_destruct+0x48/0x2b0 af_alg_release+0x58/0xb0 __sock_release+0x68/0x150 sock_close+0x20/0x40 __fput+0x110/0x3a0 sys_close+0x48/0xa0 system_call_exception+0x140/0x2d0 system_call_common+0xf4/0x258 .. which came from hardlink(1) opportunistically using AF_ALG. The same problem exists with nx_crypto_ctx_skcipher_exit getting a context it wasn't expecting, but apparently nobody hit that for years.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 2
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.5
|
6.18.38
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.1.3
|