CVE-2024-38659

enic: Validate length of nl attributes in enic_set_vf_port

7.3 high EPSS 0.25%

Published 21 Jun 2024 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2024-38659

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-38659 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

7.3 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity low, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.7% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 21 Jun 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from f8bd909183acffad68780b10c1cdf36161cfd5d1, before 2b649d7e0cb42a660f0260ef25fd55fdc9c6c600
affected from f8bd909183acffad68780b10c1cdf36161cfd5d1, before ca63fb7af9d3e531aa25f7ae187bfc6c7166ec2d
affected from f8bd909183acffad68780b10c1cdf36161cfd5d1, before 3c0d36972edbe56fcf98899622d9b90ac9965227
affected from f8bd909183acffad68780b10c1cdf36161cfd5d1, before 25571a12fbc8a1283bd8380d461267956fd426f7
affected from f8bd909183acffad68780b10c1cdf36161cfd5d1, before 7077c22f84f41974a711604a42fd0e0684232ee5
affected from f8bd909183acffad68780b10c1cdf36161cfd5d1, before f6638e955ca00c489894789492776842e102af9c
affected from f8bd909183acffad68780b10c1cdf36161cfd5d1, before aee1955a1509a921c05c70dad5d6fc8563dfcb31
affected from f8bd909183acffad68780b10c1cdf36161cfd5d1, before e8021b94b0412c37bcc79027c2e382086b6ce449
Other versions: unaffected
Linux
affected 2.6.35
unaffected before 2.6.35
unaffected from 4.19.316 up to and including 4.19.*
unaffected from 5.4.278 up to and including 5.4.*
unaffected from 5.10.219 up to and including 5.10.*
unaffected from 5.15.161 up to and including 5.15.*
unaffected from 6.1.93 up to and including 6.1.*
unaffected from 6.6.33 up to and including 6.6.*
unaffected from 6.9.4 up to and including 6.9.*
unaffected 6.10 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-38659 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-38659

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-38659
trivy image --scanners vuln IMAGE | grep CVE-2024-38659

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-38659 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.