1. Home
  2. Vulnerabilities
  3. CVE-2024-38659

CVE-2024-38659

enic: Validate length of nl attributes in enic_set_vf_port

Published 21 Jun 2024 · modified 15 Oct 2026 · Sources: NVD, CNA (vendor or assigner), EPSS (FIRST)

Low 32/100

Summary

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 products and versions

Linux (9 line(s))
Linux
ProductVersionsFixed inSource
Linux 2.6.35 — CNA (vendor or assigner)
Linux kernel from 2.6.35 (included) to 4.19.316 (excluded) — NVD
Linux kernel from 4.20 (included) to 5.4.278 (excluded) — NVD
Linux kernel from 5.5 (included) to 5.10.219 (excluded) — NVD
Linux kernel from 5.11 (included) to 5.15.161 (excluded) — NVD
Linux kernel from 5.16 (included) to 6.1.93 (excluded) — NVD
Linux kernel from 6.2 (included) to 6.6.33 (excluded) — NVD
Linux kernel from 6.7 (included) to 6.9.4 (excluded) — NVD
Linux kernel 6.10 — NVD

Fix

Not provided by the vendor.

Workaround

No workaround provided.

Check whether you are affected

No verification method provided.

Timeline

  1. — CVE published (cve)

References

Data provenance

Status
NVD
Publication date
NVD
Description
CNA (vendor or assigner)
CVSS score
NVD
Weakness (CWE)
NVD
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H (CVSS 3.1, NVD)
Weakness
CWE-1284 · Autre (CWE-1284)

How this data is obtained and calculated