enic: Validate length of nl attributes in enic_set_vf_port (Linux Linux)

CVE-2024-38659
HIGH 7.3

En bref

Source
NVD
EPSS
EPSS 0.24 % · centile 16 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Modified

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.

Faiblesses (CWE)

  • CWE-1284 — Validation incorrecte d'une quantité spécifiée en entrée

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1HIGH 7.3CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:HLinux
CVSS 3.1HIGH 7.3CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HNVD · nvd@nist.gov (Primary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected f8bd909183acffad68780b10c1cdf36161cfd5d1 < 2b649d7e0cb42a660f0260ef25fd55fdc9c6c600 ; affected f8bd909183acffad68780b10c1cdf36161cfd5d1 < ca63fb7af9d3e531aa25f7ae187bfc6c7166ec2d ; affected f8bd909183acffad68780b10c1cdf36161cfd5d1 < 3c0d36972edbe56fcf98899622d9b90ac9965227 ; affected f8bd909183acffad68780b10c1cdf36161cfd5d1 < 25571a12fbc8a1283bd8380d461267956fd426f7 ; affected f8bd909183acffad68780b10c1cdf36161cfd5d1 < 7077c22f84f41974a711604a42fd0e0684232ee5 ; affected f8bd909183acffad68780b10c1cdf36161cfd5d1 < f6638e955ca00c489894789492776842e102af9c
Linux · Linuxaffected 2.6.35 ; unaffected 0 < 2.6.35 ; unaffected 4.19.316 ≤ 4.19.* ; unaffected 5.4.278 ≤ 5.4.* ; unaffected 5.10.219 ≤ 5.10.* ; unaffected 5.15.161 ≤ 5.15.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD