CVE-2024-38659CWE-1284

CVE-2024-38659

High · published June 21, 2024

CVSS v3.1
7.3
EPSS
0%
Percentile
14.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.3 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H
CVSS v4.0
Not supplied
EPSS
0.00245 · 14.8th percentile
Weakness
CWE-1284 · Improper Validation of Specified Quantity in Input
Published
2024-06-21T15:15Z
Affected products (8)
ProductVersionsFixed in
linux/linux_kernel≥ 2.6.35, < 4.19.3164.19.316
linux/linux_kernel≥ 4.20, < 5.4.2785.4.278
linux/linux_kernel≥ 5.5, < 5.10.2195.10.219
linux/linux_kernel≥ 5.11, < 5.15.1615.15.161
linux/linux_kernel≥ 5.16, < 6.1.936.1.93
linux/linux_kernel≥ 6.2, < 6.6.336.6.33
linux/linux_kernel≥ 6.7, < 6.9.46.9.4
linux/linux_kernelall versions—
References (19)
https://git.kernel.org/stable/c/25571a12fbc8a1283bd8380d461267956fd426f7 · 416baaa9-dc9f-4396-8d5f-8c081fb06d67https://git.kernel.org/stable/c/2b649d7e0cb42a660f0260ef25fd55fdc9c6c600 · 416baaa9-dc9f-4396-8d5f-8c081fb06d67https://git.kernel.org/stable/c/3c0d36972edbe56fcf98899622d9b90ac9965227 · 416baaa9-dc9f-4396-8d5f-8c081fb06d67https://git.kernel.org/stable/c/7077c22f84f41974a711604a42fd0e0684232ee5 · 416baaa9-dc9f-4396-8d5f-8c081fb06d67https://git.kernel.org/stable/c/aee1955a1509a921c05c70dad5d6fc8563dfcb31 · 416baaa9-dc9f-4396-8d5f-8c081fb06d67https://git.kernel.org/stable/c/ca63fb7af9d3e531aa25f7ae187bfc6c7166ec2d · 416baaa9-dc9f-4396-8d5f-8c081fb06d67https://git.kernel.org/stable/c/e8021b94b0412c37bcc79027c2e382086b6ce449 · 416baaa9-dc9f-4396-8d5f-8c081fb06d67https://git.kernel.org/stable/c/f6638e955ca00c489894789492776842e102af9c · 416baaa9-dc9f-4396-8d5f-8c081fb06d67https://git.kernel.org/stable/c/25571a12fbc8a1283bd8380d461267956fd426f7 · af854a3a-2127-422b-91ae-364da2661108https://git.kernel.org/stable/c/2b649d7e0cb42a660f0260ef25fd55fdc9c6c600 · af854a3a-2127-422b-91ae-364da2661108https://git.kernel.org/stable/c/3c0d36972edbe56fcf98899622d9b90ac9965227 · af854a3a-2127-422b-91ae-364da2661108https://git.kernel.org/stable/c/7077c22f84f41974a711604a42fd0e0684232ee5 · af854a3a-2127-422b-91ae-364da2661108https://git.kernel.org/stable/c/aee1955a1509a921c05c70dad5d6fc8563dfcb31 · af854a3a-2127-422b-91ae-364da2661108https://git.kernel.org/stable/c/ca63fb7af9d3e531aa25f7ae187bfc6c7166ec2d · af854a3a-2127-422b-91ae-364da2661108https://git.kernel.org/stable/c/e8021b94b0412c37bcc79027c2e382086b6ce449 · af854a3a-2127-422b-91ae-364da2661108https://git.kernel.org/stable/c/f6638e955ca00c489894789492776842e102af9c · af854a3a-2127-422b-91ae-364da2661108https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html · af854a3a-2127-422b-91ae-364da2661108https://cert-portal.siemens.com/productcert/html/ssa-265688.html · 0b142b55-0307-4c5a-b3c9-f314f3fb7c5ehttps://cert-portal.siemens.com/productcert/html/ssa-613116.html · 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
EPSS history
Timeline
  • 21 JUN 10:28Z
    enic: Validate length of nl attributes in enic_set_vf_port
    cvelistv5