CVE-2024-57986
HID: core: Fix assumption that Resolution Multipliers must be in Logical Collections
Check your servers for CVE-2024-57986
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-57986 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
- Attack vector
- adjacent: the attacker has to be on the same local network or link
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity low, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.32%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 26.3% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc, before 3a002e4029230d9a6be89f869b2328b258612f5c affected from 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc, before 05dd7d10675b540b8b7b31035c0a8abb6e6f3b88 affected from 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc, before a32ea3f982b389ea43a41ce77b6fb70d74006d9b affected from 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc, before bebf542e8d7c44a18a95f306b1b5dc160c823506 affected from 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc, before ed3d3883476423f337aac0f22c521819b3f1e970 affected from 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc, before ebaeca33d32c8bdb705a8c88267737a456f354b1 affected from 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc, before a5498f1f864ea26f4c613c77f54409c776a95a90 affected from 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc, before 64f2657b579343cf923aa933f08074e6258eb07b
Other versions: unaffected
|
| Linux |
affected 5.0 unaffected before 5.0 unaffected from 5.4.291 up to and including 5.4.* unaffected from 5.10.235 up to and including 5.10.* unaffected from 5.15.179 up to and including 5.15.* unaffected from 6.1.129 up to and including 6.1.* unaffected from 6.6.76 up to and including 6.6.* unaffected from 6.12.13 up to and including 6.12.* unaffected from 6.13.2 up to and including 6.13.* unaffected 6.14 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-57986 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-57986
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-57986
trivy image --scanners vuln IMAGE | grep CVE-2024-57986
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/3a002e4029230d9a6be89f869b2328b258612f5c git.kernel.org
- https://git.kernel.org/stable/c/05dd7d10675b540b8b7b31035c0a8abb6e6f3b88 git.kernel.org
- https://git.kernel.org/stable/c/a32ea3f982b389ea43a41ce77b6fb70d74006d9b git.kernel.org
- https://git.kernel.org/stable/c/bebf542e8d7c44a18a95f306b1b5dc160c823506 git.kernel.org
- https://git.kernel.org/stable/c/ed3d3883476423f337aac0f22c521819b3f1e970 git.kernel.org
- https://git.kernel.org/stable/c/ebaeca33d32c8bdb705a8c88267737a456f354b1 git.kernel.org
- https://git.kernel.org/stable/c/a5498f1f864ea26f4c613c77f54409c776a95a90 git.kernel.org
- https://git.kernel.org/stable/c/64f2657b579343cf923aa933f08074e6258eb07b git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-784472.html cert-portal.siemens.com
Source: the record CVE-2024-57986 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse