CVE-2024-57986

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-57986
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-57986.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-57986
Downstream
Related
Published
2025-02-27T02:07:10.621Z
Modified
2025-11-28T02:35:12.361748Z
Summary
HID: core: Fix assumption that Resolution Multipliers must be in Logical Collections
Details

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 hidapplymultiplier."), but the other has not been fixed.

This error arises because hidapplymultipler() 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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57986.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
5a4abb36f312cf83206b1b7d1308ba47cba0b3cc
Fixed
3a002e4029230d9a6be89f869b2328b258612f5c
Fixed
05dd7d10675b540b8b7b31035c0a8abb6e6f3b88
Fixed
a32ea3f982b389ea43a41ce77b6fb70d74006d9b
Fixed
bebf542e8d7c44a18a95f306b1b5dc160c823506
Fixed
ed3d3883476423f337aac0f22c521819b3f1e970
Fixed
ebaeca33d32c8bdb705a8c88267737a456f354b1
Fixed
a5498f1f864ea26f4c613c77f54409c776a95a90
Fixed
64f2657b579343cf923aa933f08074e6258eb07b

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.0.0
Fixed
5.4.291
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.235
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.179
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.129
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.76
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.13
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.13.2