VDB

CVE-2024-38659

CVE-2024-38659 PUBLISHED CVSS 7.3 HIGH

enic: Validate length of nl attributes in enic_set_vf_port

Reported by linux · Published June 21, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
SCALANCE XCM-/XRM-/XCH-/XRH-300 familySiemens3.1
linux_kernellinux6.9.4, 6.6.33, 6.1.93, 5.15.161, 5.10.219, 5.4.278, 4.19.316
SIMATIC S7-1500 TM MFP - GNU/Linux subsystemSiemens1.1.1
RUGGEDCOM RST2428PSiemens3.1
LinuxLinuxf6638e955ca00c489894789492776842e102af9c, e8021b94b0412c37bcc79027c2e382086b6ce449, ca63fb7af9d3e531aa25f7ae187bfc6c7166ec2d, aee1955a1509a921c05c70dad5d6fc8563dfcb31, 7077c22f84f41974a711604a42fd0e0684232ee5, 3c0d36972edbe56fcf98899622d9b90ac9965227

Risk scores

CVSS 3.1
7.3
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H

Affected products

VendorProductVersions
LinuxLinuxf8bd909183acffad68780b10c1cdf36161cfd5d1, f8bd909183acffad68780b10c1cdf36161cfd5d1, f8bd909183acffad68780b10c1cdf36161cfd5d1
LinuxLinux2.6.35, 0, 4.19.316
SiemensSCALANCE XCM-/XRM-/XCH-/XRH-300 family0
SiemensSCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family0
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem0
SiemensRUGGEDCOM RST2428P0
LinuxLinux*, *, *
linuxlinux_kernel2.6.35, 2.6.35, 2.6.35

Timeline

  • Jun 21, 2024 CVE Published
  • Jun 22, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (13 in total, the first dated here)
  • Jan 8, 2026 Security Advisory (138 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (118 in total, the first dated here)
  • Aug 4, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-38659
vulnetix vdb fixes CVE-2024-38659

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-38659/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›