# CVE-2024-38659: enic: Validate length of nl attributes in enic\_set\_vf\_port

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.3
- **CVSS:** 7.3 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: Low; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 19, 2026-11-26)
- **CWE:** CWE-1284
- **Published:** 2024-06-21T10:28:15.337Z
- **Modified:** 2026-10-15T01:18:32.510Z

## Who should check

- Anyone running Linux \>= f8bd909183acffad68780b10c1cdf36161cfd5d1, \< 2b649d7e0cb42a660f0260ef25fd55fdc9c6c600; \>= f8bd909183acffad68780b10c1cdf36161cfd5d1, \< ca63fb7af9d3e531aa25f7ae187bfc6c7166ec2d; \>= f8bd909183acffad68780b10c1cdf36161cfd5d1, \< 3c0d36972edbe56fcf98899622d9b90ac9965227; \>= f8bd909183acffad68780b10c1cdf36161cfd5d1, \< 25571a12fbc8a1283bd8380d461267956fd426f7; \>= f8bd909183acffad68780b10c1cdf36161cfd5d1, \< 7077c22f84f41974a711604a42fd0e0684232ee5; \>= f8bd909183acffad68780b10c1cdf36161cfd5d1, \< f6638e955ca00c489894789492776842e102af9c; \>= f8bd909183acffad68780b10c1cdf36161cfd5d1, \< aee1955a1509a921c05c70dad5d6fc8563dfcb31; \>= f8bd909183acffad68780b10c1cdf36161cfd5d1, \< e8021b94b0412c37bcc79027c2e382086b6ce449
- Anyone running Linux 2.6.35

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

## Affected and fixed versions

- Linux: \>= f8bd909183acffad68780b10c1cdf36161cfd5d1, \< 2b649d7e0cb42a660f0260ef25fd55fdc9c6c600; \>= f8bd909183acffad68780b10c1cdf36161cfd5d1, \< ca63fb7af9d3e531aa25f7ae187bfc6c7166ec2d; \>= f8bd909183acffad68780b10c1cdf36161cfd5d1, \< 3c0d36972edbe56fcf98899622d9b90ac9965227; \>= f8bd909183acffad68780b10c1cdf36161cfd5d1, \< 25571a12fbc8a1283bd8380d461267956fd426f7; \>= f8bd909183acffad68780b10c1cdf36161cfd5d1, \< 7077c22f84f41974a711604a42fd0e0684232ee5; \>= f8bd909183acffad68780b10c1cdf36161cfd5d1, \< f6638e955ca00c489894789492776842e102af9c; \>= f8bd909183acffad68780b10c1cdf36161cfd5d1, \< aee1955a1509a921c05c70dad5d6fc8563dfcb31; \>= f8bd909183acffad68780b10c1cdf36161cfd5d1, \< e8021b94b0412c37bcc79027c2e382086b6ce449 (cvelist)
- Linux: 2.6.35 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-38659. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-38659.md
Affected: Linux >= f8bd909183acffad68780b10c1cdf36161cfd5d1, < 2b649d7e0cb42a660f0260ef25fd55fdc9c6c600; >= f8bd909183acffad68780b10c1cdf36161cfd5d1, < ca63fb7af9d3e531aa25f7ae187bfc6c7166ec2d; >= f8bd909183acffad68780b10c1cdf36161cfd5d1, < 3c0d36972edbe56fcf98899622d9b90ac9965227; >= f8bd909183acffad68780b1…
Fixed in: Linux 2b649d7e0cb42a660f0260ef25fd55fdc9c6c600, Linux 3c0d36972edbe56fcf98899622d9b90ac9965227, Linux 25571a12fbc8a1283bd8380d461267956fd426f7, Linux 7077c22f84f41974a711604a42fd0e0684232ee5

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-38659 being exploited?

There is no confirmed exploitation: CVE-2024-38659 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-38659?

High: CVSS 7.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-38659?

Linux \>= f8bd909183acffad68780b10c1cdf36161cfd5d1, \< 2b649d7e0cb42a660f0260ef25fd55fdc9c6c600; \>= f8bd909183acffad68780b10c1cdf36161cfd5d1, \< ca63fb7af9d3e531aa25f7ae187bfc6c7166ec2d; \>= f8bd909183acffad68780b10c1cdf36161cfd5d1, \< 3c0d36972edbe56fcf98899622d9b90ac9965227; \>= f8bd909183acffad68780b10c1cdf36161cfd5d1, \< 25571a12fbc8a1283bd8380d461267956fd426f7; \>= f8bd909183acffad68780b10c1cdf36161cfd5d1, \< 7077c22f84f41974a711604a42fd0e0684232ee5; \>= f8bd909183acffad68780b10c1cdf36161cfd5d1, \< f6638e955ca00c489894789492776842e102af9c; \>= f8bd909183acffad68780b10c1cdf36161cfd5d1, \< aee1955a1509a921c05c70dad5d6fc8563dfcb31; \>= f8bd909183acffad68780b10c1cdf36161cfd5d1, \< e8021b94b0412c37bcc79027c2e382086b6ce449; Linux 2.6.35.

### Is there a fix for CVE-2024-38659?

Yes. Fixed in Linux 2b649d7e0cb42a660f0260ef25fd55fdc9c6c600, Linux 3c0d36972edbe56fcf98899622d9b90ac9965227, Linux 25571a12fbc8a1283bd8380d461267956fd426f7, Linux 7077c22f84f41974a711604a42fd0e0684232ee5. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-38659?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-613116.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-38659>

HTML: <https://flawdb.com/CVE-2024-38659> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-38659>
