scsi: qla4xxx: Add length check when parsing nlattrs (Linux Linux)

CVE-2023-53456
MEDIUM 5.5

En bref

Source
NVD
EPSS
EPSS 0.16 % · centile 6 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: scsi: qla4xxx: Add length check when parsing nlattrs There are three places that qla4xxx parses nlattrs: - qla4xxx_set_chap_entry() - qla4xxx_iface_set_param() - qla4xxx_sysfs_ddb_set_param() and each of them directly converts the nlattr to specific pointer of structure without length checking. This could be dangerous as those attributes are not validated and a malformed nlattr (e.g., length 0) could result in an OOB read that leaks heap dirty data. Add the nla_len check before accessing the nlattr data and return EINVAL if the length check fails.

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/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 00c31889f7513e9ffa6b2b4de8ad6d7f59a61c80 < cfa6a1a79ed6d336fac7a5d87eb5471e4401829f ; affected 00c31889f7513e9ffa6b2b4de8ad6d7f59a61c80 < 5925e224cc6edfef57b20447f18323208461309b ; affected 00c31889f7513e9ffa6b2b4de8ad6d7f59a61c80 < 47f3be62eab50b8cd7e1ae5fc2c4dae687497c34 ; affected 00c31889f7513e9ffa6b2b4de8ad6d7f59a61c80 < 6d65079c69dc1feb817ed71f5bd15e83a7d6832d ; affected 00c31889f7513e9ffa6b2b4de8ad6d7f59a61c80 < f61fc650c47849637fa1771a31a11674c824138a ; affected 00c31889f7513e9ffa6b2b4de8ad6d7f59a61c80 < 25feffb3fbd51ae81d92c65cebc0e932663828b3
Linux · Linuxaffected 3.2 ; unaffected 0 < 3.2 ; unaffected 4.14.326 ≤ 4.14.* ; unaffected 4.19.295 ≤ 4.19.* ; unaffected 5.4.257 ≤ 5.4.* ; unaffected 5.10.195 ≤ 5.10.*

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