CVE-2024-38659
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| SCALANCE XCM-/XRM-/XCH-/XRH-300 family | Siemens | 3.1 |
| linux_kernel | linux | 6.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 subsystem | Siemens | 1.1.1 |
| RUGGEDCOM RST2428P | Siemens | 3.1 |
| Linux | Linux | f6638e955ca00c489894789492776842e102af9c, e8021b94b0412c37bcc79027c2e382086b6ce449, ca63fb7af9d3e531aa25f7ae187bfc6c7166ec2d, aee1955a1509a921c05c70dad5d6fc8563dfcb31, 7077c22f84f41974a711604a42fd0e0684232ee5, 3c0d36972edbe56fcf98899622d9b90ac9965227 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | f8bd909183acffad68780b10c1cdf36161cfd5d1, f8bd909183acffad68780b10c1cdf36161cfd5d1, f8bd909183acffad68780b10c1cdf36161cfd5d1 |
| Linux | Linux | 2.6.35, 0, 4.19.316 |
| Siemens | SCALANCE XCM-/XRM-/XCH-/XRH-300 family | 0 |
| Siemens | SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family | 0 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 |
| Siemens | RUGGEDCOM RST2428P | 0 |
| Linux | Linux | *, *, * |
| linux | linux_kernel | 2.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