CVE-2024-57986: HID: core: Fix assumption that Resolution Multipliers must be in Logical Collections
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 multipliercollection 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 multipliercollection pointer to NULL if the collection found isn't a Logical Collection.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Linux kernel HID coreto a version that resolves this vulnerability.Patch ea427a222d8b - Upgrade
Upgrade
Linux kernel HID coreto a version that resolves this vulnerability.Patch ea427a222d8b (
Event History
Frequently Asked Questions
What is the severity of CVE-2024-57986?
CVE-2024-57986 has a medium severity rating of 5.5 on the CVSS scale.
How do I fix CVE-2024-57986?
To fix CVE-2024-57986, ensure you update your Linux kernel to the patched version that addresses the HID: core vulnerability.
What systems are affected by CVE-2024-57986?
CVE-2024-57986 affects systems running the Linux kernel, including IBM Verify Identity Access and IBM Security Verify Access.
What type of vulnerability is CVE-2024-57986?
CVE-2024-57986 is categorized as a vulnerability in the Linux kernel related to HID core Resolution Multipliers.
Is CVE-2024-57986 exploitable?
Yes, CVE-2024-57986 can be exploited under certain conditions, but it requires specific access to the affected systems.