CVE-2024-57986

MediumCVSS 5.5/10Last modified Oct 15, 2026

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.

Metrics

CVSS 3.1 5.5/10CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected software

VendorProductVersions
LinuxLinux>= 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc, < 3a002e4029230d9a6be89f869b2328b258612f5c; >= 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc, < 05dd7d10675b540b8b7b31035c0a8abb6e6f3b88; >= 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc, < a32ea3f982b389ea43a41ce77b6fb70d74006d9b; >= 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc, < bebf542e8d7c44a18a95f306b1b5dc160c823506; >= 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc, < ed3d3883476423f337aac0f22c521819b3f1e970; >= 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc, < ebaeca33d32c8bdb705a8c88267737a456f354b1; >= 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc, < a5498f1f864ea26f4c613c77f54409c776a95a90; >= 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc, < 64f2657b579343cf923aa933f08074e6258eb07b
LinuxLinux5.0
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem< *
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem< *

References

Timeline

Published
Feb 27, 2025
Last modified
Oct 15, 2026
NVD status
Modified

Related CVEs from 2024

CVE-2024-579875.5In the Linux kernel, the following vulnerability has been resolved: Bluetooth: btrtl: check for NULL in btrtl_setup_realtek() If insert anCVE-2024-579885.5In the Linux kernel, the following vulnerability has been resolved: Bluetooth: btbcm: Fix NULL deref in btbcm_get_board_name() devm_kstrduCVE-2024-579895.5In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: mt7925: fix NULL deref check in mt7925_change_vif_links InCVE-2024-57994.8The CM Pop-Up Banners for WordPress plugin before 1.7.3 does not sanitise and escape some of its popup fields, which could allow high privilCVE-2024-579907.8In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: mt7925: fix off by one in mt7925_load_clc() This comparisoCVE-2024-579915.5In the Linux kernel, the following vulnerability has been resolved: wifi: rtw89: chan: fix soft lockup in rtw89_entity_recalc_mgnt_roles() CVE-2024-579925.5In the Linux kernel, the following vulnerability has been resolved: wifi: wilc1000: unregister wiphy only if it has been registered There CVE-2024-579935.5In the Linux kernel, the following vulnerability has been resolved: HID: hid-thrustmaster: Fix warning in thrustmaster_probe by adding endpCVE-2024-579945.5In the Linux kernel, the following vulnerability has been resolved: ptr_ring: do not block hard interrupts in ptr_ring_resize_multiple() JCVE-2024-579957.8In the Linux kernel, the following vulnerability has been resolved: wifi: ath12k: fix read pointer after free in ath12k_mac_assign_vif_to_vCVE-2024-579965.5In the Linux kernel, the following vulnerability has been resolved: net_sched: sch_sfq: don't allow 1 packet limit The current implementatCVE-2024-579975.5In the Linux kernel, the following vulnerability has been resolved: wifi: wcn36xx: fix channel survey memory allocation size KASAN reporte
CVE-2024-57986: Medium severity, CVSS 5.5 | Vulnix