В ядре Linux устранена следующая уязвимость:
tty: hvc_iucv: исправлено увеличение числа поддерживаемых устройств на единицу.
MAX_HVC_IUCV_LINES == HVC_ALLOC_TTY_ADAPTERS == 8. Это количество записей в:
статическая структура hvc_iucv_private *hvc_iucv_table[MAX_HVC_IUCV_LINES];
Иногда hvc_iucv_table[] ограничивается:
(a) if (num > hvc_iucv_devices) // для обнаружения ошибок
или
(б) for (i = 0; i < hvc_iucv_devices; i++) // в 2-х местах
(так что эти двое не согласны; второй мне кажется правильным.)
hvc_iucv_devices может иметь значение 0..8. Это счетчик.
(c) если (hvc_iucv_devices > MAX_HVC_IUCV_LINES)
Если hvc_iucv_devices == 8, (a) разрешает коду доступ к hvc_iucv_table[8].
Упс.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: tty: hvc_iucv: fix off-by-one in number of supported devices MAX_HVC_IUCV_LINES == HVC_ALLOC_TTY_ADAPTERS == 8. This is the number of entries in: static struct hvc_iucv_private *hvc_iucv_table[MAX_HVC_IUCV_LINES]; Sometimes hvc_iucv_table[] is limited by: (a) if (num > hvc_iucv_devices) // for error detection or (b) for (i = 0; i < hvc_iucv_devices; i++) // in 2 places (so these 2 don't agree; second one appears to be correct to me.) hvc_iucv_devices can be 0..8. This is a counter. (c) if (hvc_iucv_devices > MAX_HVC_IUCV_LINES) If hvc_iucv_devices == 8, (a) allows the code to access hvc_iucv_table[8]. Oops.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.29
|
5.10.258
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.11
|
5.15.209
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
6.1.175
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.6.141
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.91
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.33
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.10
|