CVE Database›CVE-2022-48978

CVE-2022-48978

kernel: HID: core: fix shift-out-of-bounds in hid_report_raw_event

Loading…

Severity

Moderate

Red Hat Product Security

7.1

CVSS 3.1

Review impact separately from score.

Published · October 21, 2024

Updated · October 29, 2026

Description

A flaw was found in the Linux kernel's Human Interface Device (HID) core. A local attacker with low privileges could exploit a shift-out-of-bounds vulnerability in the hid_report_raw_event function. This occurs when the size of an integer in the snto32() function exceeds 32 bits, leading to an invalid shift operation. Successful exploitation of this vulnerability could result in a system crash, causing a denial of service.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

To prevent exploitation, blacklist the hid kernel module. Create /etc/modprobe.d/disable-hid.conf with install hid /bin/true. Regenerate the initramfs and reboot the system. Note that disabling the hid module will prevent the use of Human Interface Devices, such as keyboards and mice, impacting system usability.

CVSS / CWE

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

CWE-125 · Out-of-bounds Read