CVE-2024-38659

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.10:rc1:*:*:*:*:*:*

History

03 Oct 2025, 15:05

Type Values Removed Values Added
CPE cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.10:rc1:*:*:*:*:*:*
First Time Linux linux Kernel
Linux
CWE CWE-1284
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 7.1
References () https://git.kernel.org/stable/c/25571a12fbc8a1283bd8380d461267956fd426f7 - () https://git.kernel.org/stable/c/25571a12fbc8a1283bd8380d461267956fd426f7 - Patch
References () https://git.kernel.org/stable/c/2b649d7e0cb42a660f0260ef25fd55fdc9c6c600 - () https://git.kernel.org/stable/c/2b649d7e0cb42a660f0260ef25fd55fdc9c6c600 - Patch
References () https://git.kernel.org/stable/c/3c0d36972edbe56fcf98899622d9b90ac9965227 - () https://git.kernel.org/stable/c/3c0d36972edbe56fcf98899622d9b90ac9965227 - Patch
References () https://git.kernel.org/stable/c/7077c22f84f41974a711604a42fd0e0684232ee5 - () https://git.kernel.org/stable/c/7077c22f84f41974a711604a42fd0e0684232ee5 - Patch
References () https://git.kernel.org/stable/c/aee1955a1509a921c05c70dad5d6fc8563dfcb31 - () https://git.kernel.org/stable/c/aee1955a1509a921c05c70dad5d6fc8563dfcb31 - Patch
References () https://git.kernel.org/stable/c/ca63fb7af9d3e531aa25f7ae187bfc6c7166ec2d - () https://git.kernel.org/stable/c/ca63fb7af9d3e531aa25f7ae187bfc6c7166ec2d - Patch
References () https://git.kernel.org/stable/c/e8021b94b0412c37bcc79027c2e382086b6ce449 - () https://git.kernel.org/stable/c/e8021b94b0412c37bcc79027c2e382086b6ce449 - Patch
References () https://git.kernel.org/stable/c/f6638e955ca00c489894789492776842e102af9c - () https://git.kernel.org/stable/c/f6638e955ca00c489894789492776842e102af9c - Patch

21 Nov 2024, 09:26

Type Values Removed Values Added
References () https://git.kernel.org/stable/c/25571a12fbc8a1283bd8380d461267956fd426f7 - () https://git.kernel.org/stable/c/25571a12fbc8a1283bd8380d461267956fd426f7 -
References () https://git.kernel.org/stable/c/2b649d7e0cb42a660f0260ef25fd55fdc9c6c600 - () https://git.kernel.org/stable/c/2b649d7e0cb42a660f0260ef25fd55fdc9c6c600 -
References () https://git.kernel.org/stable/c/3c0d36972edbe56fcf98899622d9b90ac9965227 - () https://git.kernel.org/stable/c/3c0d36972edbe56fcf98899622d9b90ac9965227 -
References () https://git.kernel.org/stable/c/7077c22f84f41974a711604a42fd0e0684232ee5 - () https://git.kernel.org/stable/c/7077c22f84f41974a711604a42fd0e0684232ee5 -
References () https://git.kernel.org/stable/c/aee1955a1509a921c05c70dad5d6fc8563dfcb31 - () https://git.kernel.org/stable/c/aee1955a1509a921c05c70dad5d6fc8563dfcb31 -
References () https://git.kernel.org/stable/c/ca63fb7af9d3e531aa25f7ae187bfc6c7166ec2d - () https://git.kernel.org/stable/c/ca63fb7af9d3e531aa25f7ae187bfc6c7166ec2d -
References () https://git.kernel.org/stable/c/e8021b94b0412c37bcc79027c2e382086b6ce449 - () https://git.kernel.org/stable/c/e8021b94b0412c37bcc79027c2e382086b6ce449 -
References () https://git.kernel.org/stable/c/f6638e955ca00c489894789492776842e102af9c - () https://git.kernel.org/stable/c/f6638e955ca00c489894789492776842e102af9c -

15 Jul 2024, 07:15

Type Values Removed Values Added
References
  • {'url': 'https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html', 'source': '416baaa9-dc9f-4396-8d5f-8c081fb06d67'}

27 Jun 2024, 13:16

Type Values Removed Values Added
References
  • () https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html -
Summary
  • (es) En el kernel de Linux se ha resuelto la siguiente vulnerabilidad: enic: Validar la longitud de los atributos nl en enic_set_vf_port enic_set_vf_port supone que el atributo nl IFLA_PORT_PROFILE tiene una longitud PORT_PROFILE_MAX y que los atributos nl IFLA_PORT_INSTANCE_UUID, IFLA_PORT_HOST_UUID tienen una longitud PORT_UUID_MAX. Estos atributos se validan (en la función do_setlink en rtnetlink.c) usando nla_policy ifla_port_policy. La política define IFLA_PORT_PROFILE como NLA_STRING, IFLA_PORT_INSTANCE_UUID como NLA_BINARY e IFLA_PORT_HOST_UUID como NLA_STRING. Eso significa que la validación de longitud que utiliza la política es para el tamaño máximo de los atributos y no para el tamaño exacto, por lo que la longitud de estos atributos puede ser menor que los tamaños que espera enic_set_vf_port. Esto podría causar un acceso de lectura fuera de banda en los memcpys de los datos de estos atributos en enic_set_vf_port.

21 Jun 2024, 11:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-06-21 11:15

Updated : 2025-10-03 15:05


NVD link : CVE-2024-38659

Mitre link : CVE-2024-38659

CVE.ORG link : CVE-2024-38659


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-1284

Improper Validation of Specified Quantity in Input