В ядре Linux устранена следующая уязвимость:
enic: проверка длины атрибутов nl в enic_set_vf_port.
enic_set_vf_port предполагает, что атрибут nl IFLA_PORT_PROFILE
имеет длину PORT_PROFILE_MAX и что атрибуты nl
IFLA_PORT_INSTANCE_UUID, IFLA_PORT_HOST_UUID имеют длину PORT_UUID_MAX. Эти атрибуты проверяются (в функции do_setlink в rtnetlink.c).
используя nla_policy ifla_port_policy. Политика определяет IFLA_PORT_PROFILE
как NLA_STRING, IFLA_PORT_INSTANCE_UUID как NLA_BINARY и
IFLA_PORT_HOST_UUID как NLA_STRING.
Это означает, что проверка длины
использование политики предназначено для максимального размера атрибутов, а не для точного
size, поэтому длина этих атрибутов может быть меньше размеров, которые
enic_set_vf_port ожидает. Это может привести к выходу из диапазона
доступ для чтения в memcpys данных этих
атрибуты в enic_set_vf_port.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: enic: Validate length of nl attributes in enic_set_vf_port enic_set_vf_port assumes that the nl attribute IFLA_PORT_PROFILE is of length PORT_PROFILE_MAX and that the nl attributes IFLA_PORT_INSTANCE_UUID, IFLA_PORT_HOST_UUID are of length PORT_UUID_MAX. These attributes are validated (in the function do_setlink in rtnetlink.c) using the nla_policy ifla_port_policy. The policy defines IFLA_PORT_PROFILE as NLA_STRING, IFLA_PORT_INSTANCE_UUID as NLA_BINARY and IFLA_PORT_HOST_UUID as NLA_STRING. That means that the length validation using the policy is for the max size of the attributes and not on exact size so the length of these attributes might be less than the sizes that enic_set_vf_port expects. This might cause an out of bands read access in the memcpys of the data of these attributes in enic_set_vf_port.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 8
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.35
|
4.19.316
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.20
|
5.4.278
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.5
|
5.10.219
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.11
|
5.15.161
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
6.1.93
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.6.33
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.9.4
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.10:rc1:*:*:*:*:*:*
|
— | — |