HID: core: Fix assumption that Resolution Multipliers must be in Logical Collections (Linux Linux)

CVE-2024-57986
HIGH 7.1

En bref

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

Description

In the Linux kernel, the following vulnerability has been resolved: HID: core: Fix assumption that Resolution Multipliers must be in Logical Collections A report in 2019 by the syzbot fuzzer was found to be connected to two errors in the HID core associated with Resolution Multipliers. One of the errors was fixed by commit ea427a222d8b ("HID: core: Fix deadloop in hid_apply_multiplier."), but the other has not been fixed. This error arises because hid_apply_multipler() assumes that every Resolution Multiplier control is contained in a Logical Collection, i.e., there's no way the routine can ever set multiplier_collection to NULL. This is in spite of the fact that the function starts with a big comment saying: * "The Resolution Multiplier control must be contained in the same * Logical Collection as the control(s) to which it is to be applied. ... * If no Logical Collection is * defined, the Resolution Multiplier is associated with all * controls in the report." * HID Usage Table, v1.12, Section 4.3.1, p30 * * Thus, search from the current collection upwards until we find a * logical collection... The comment and the code overlook the possibility that none of the collections found may be a Logical Collection. The fix is to set the multiplier_collection pointer to NULL if the collection found isn't a Logical Collection.

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1HIGH 7.1CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:HLinux
CVSS 3.1HIGH 7.1CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
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 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc < 3a002e4029230d9a6be89f869b2328b258612f5c ; affected 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc < 05dd7d10675b540b8b7b31035c0a8abb6e6f3b88 ; affected 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc < a32ea3f982b389ea43a41ce77b6fb70d74006d9b ; affected 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc < bebf542e8d7c44a18a95f306b1b5dc160c823506 ; affected 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc < ed3d3883476423f337aac0f22c521819b3f1e970 ; affected 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc < ebaeca33d32c8bdb705a8c88267737a456f354b1
Linux · Linuxaffected 5.0 ; unaffected 0 < 5.0 ; unaffected 5.4.291 ≤ 5.4.* ; unaffected 5.10.235 ≤ 5.10.* ; unaffected 5.15.179 ≤ 5.15.* ; unaffected 6.1.129 ≤ 6.1.*

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