CVE-2024-57986

CVE-2024-57986

High · published February 27, 2025

CVSS v3.1
7.1
EPSS
0%
Percentile
23.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.1 · HIGH
Vector
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
CVSS v4.0
Not supplied
EPSS
0.00315 · 23.2th percentile
Published
2025-02-27T07:15Z
Affected products (7)
ProductVersionsFixed in
linux/linux_kernel≥ 5.0, < 5.4.2915.4.291
linux/linux_kernel≥ 5.5, < 5.10.2355.10.235
linux/linux_kernel≥ 5.11, < 5.15.1795.15.179
linux/linux_kernel≥ 5.16, < 6.1.1296.1.129
linux/linux_kernel≥ 6.2, < 6.6.766.6.76
linux/linux_kernel≥ 6.7, < 6.12.136.12.13
linux/linux_kernel≥ 6.13, < 6.13.26.13.2
References (12)
EPSS history
Timeline
  • 27 FEB 02:07Z
    HID: core: Fix assumption that Resolution Multipliers must be in Logical Collections
    cvelistv5