# CVE-2024-38659: enic: Validate length of nl attributes in enic_set_vf_port

- Severity: High 7.3 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-06-21T10:28:15.337Z
- Modified: 2026-10-15T01:18:32.510Z
- Weaknesses: CWE-1284
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from f8bd909183acffad68780b10c1cdf36161cfd5d1 before 2b649d7e0cb42a660f0260ef25fd55fdc9c6c600; from f8bd909183acffad68780b10c1cdf36161cfd5d1 before ca63fb7af9d3e531aa25f7ae187bfc6c7166ec2d; from f8bd909183acffad68780b10c1cdf36161cfd5d1 before 3c0d36972edbe56fcf98899622d9b90ac9965227; from f8bd909183acffad68780b10c1cdf36161cfd5d1 before 25571a12fbc8a1283bd8380d461267956fd426f7; from f8bd909183acffad68780b10c1cdf36161cfd5d1 before 7077c22f84f41974a711604a42fd0e0684232ee5; from f8bd909183acffad68780b10c1cdf36161cfd5d1 before f6638e955ca00c489894789492776842e102af9c; from f8bd909183acffad68780b10c1cdf36161cfd5d1 before aee1955a1509a921c05c70dad5d6fc8563dfcb31; from f8bd909183acffad68780b10c1cdf36161cfd5d1 before e8021b94b0412c37bcc79027c2e382086b6ce449; 2.6.35 (not affected: before 2.6.35; from 4.19.316 up to 4.19.*; from 5.4.278 up to 5.4.*; from 5.10.219 up to 5.10.*; from 5.15.161 up to 5.15.*; from 6.1.93 up to 6.1.*; from 6.6.33 up to 6.6.*; from 6.9.4 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 2.6.35 before 4.19.316; from 4.20 before 5.4.278; from 5.5 before 5.10.219; from 5.11 before 5.15.161; from 5.16 before 6.1.93; from 6.2 before 6.6.33; from 6.7 before 6.9.4; 6.10

## Every score

- Linux: CVSS:3.1 7.3 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/2b649d7e0cb42a660f0260ef25fd55fdc9c6c600> (patch)
- <https://git.kernel.org/stable/c/ca63fb7af9d3e531aa25f7ae187bfc6c7166ec2d> (patch)
- <https://git.kernel.org/stable/c/3c0d36972edbe56fcf98899622d9b90ac9965227> (patch)
- <https://git.kernel.org/stable/c/25571a12fbc8a1283bd8380d461267956fd426f7> (patch)
- <https://git.kernel.org/stable/c/7077c22f84f41974a711604a42fd0e0684232ee5> (patch)
- <https://git.kernel.org/stable/c/f6638e955ca00c489894789492776842e102af9c> (patch)
- <https://git.kernel.org/stable/c/aee1955a1509a921c05c70dad5d6fc8563dfcb31> (patch)
- <https://git.kernel.org/stable/c/e8021b94b0412c37bcc79027c2e382086b6ce449> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-613116.html>

## Sources

- CVE List: [CVE-2024-38659](https://www.cve.org/CVERecord?id=CVE-2024-38659), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2024-38659](https://nvd.nist.gov/vuln/detail/CVE-2024-38659), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2024-38659 · Whole record: https://cve.day/CVE-2024-38659.json · Rebuilt by cve.day 2026-11-25T22:58:42.122Z
