High severity · published Jun 21, 2024
CVE-2024-38659
enic: Validate length of nl attributes in enic_set_vf_port
7.1
CVSS
0.2%
EPSS
No
On KEV
Description
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 vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 16% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
KE
Kernel · Linux
2.6.35 before 4.19.316; 4.20 before 5.4.278; 5.5 before 5.10.219; 5.11 before 5.15.161; 5.16 before 6.1.93; 6.2 before 6.6.33; +2 more · source: NVD
LI
Linux · Linux
f8bd909183acffad68780b10c1cdf36161cfd5d1 before 2b649d7e0cb42a660f0260ef25fd55fdc9c6c600; f8bd909183acffad68780b10c1cdf36161cfd5d1 before ca63fb7af9d3e531aa25f7ae187bfc6c7166ec2d; f8bd909183acffad68780b10c1cdf36161cfd5d1 before 3c0d36972edbe56fcf98899622d9b90ac9965227; f8bd909183acffad68780b10c1cdf36161cfd5d1 before 25571a12fbc8a1283bd8380d461267956fd426f7; f8bd909183acffad68780b10c1cdf36161cfd5d1 before 7077c22f84f41974a711604a42fd0e0684232ee5; f8bd909183acffad68780b10c1cdf36161cfd5d1 before f6638e955ca00c489894789492776842e102af9c; +3 more · source: vendor
RR
RUGGEDCOM RST2428P · Siemens
before V3.1 · source: CISA
SX
SCALANCE XCM-/XRM-/XCH-/XRH-300 family · Siemens
before V3.1 · source: CISA
SS
SIMATIC S7-1500 TM MFP - GNU/Linux subsystem · Siemens
before V1.1.1 · source: CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-38659
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-38659
Patch
https://git.kernel.org/stable/c/25571a12fbc8a1283bd8380d461267956fd426f7
Patch
https://git.kernel.org/stable/c/2b649d7e0cb42a660f0260ef25fd55fdc9c6c600
Patch
https://git.kernel.org/stable/c/3c0d36972edbe56fcf98899622d9b90ac9965227
Patch
https://git.kernel.org/stable/c/7077c22f84f41974a711604a42fd0e0684232ee5
Patch
https://git.kernel.org/stable/c/aee1955a1509a921c05c70dad5d6fc8563dfcb31
Patch
https://git.kernel.org/stable/c/ca63fb7af9d3e531aa25f7ae187bfc6c7166ec2d
More from Kernel
9.8
CVE-2025-39682
tls: fix handling of zero-length records on the rx_list
8.8
CVE-2026-53266
netfilter: bridge: make ebt_snat ARP rewrite writable
8.8
CVE-2013-6282
Linux Kernel Improper Input Validation Vulnerability
8.4
CVE-2022-0185
Linux Kernel Heap-Based Buffer Overflow Vulnerability
8.4
CVE-2013-2094
Linux Kernel Privilege Escalation Vulnerability
