CVE-2024-46745

Description

A flaw was found in the Linux kernel's uinput interface. A local user could exploit this vulnerability by attempting to set up a uinput device with an unreasonably large number of slots. This action triggers a memory allocation failure, which can place a significant burden on the system, potentially leading to a Denial of Service (DoS).

Mitigation

To prevent a local attacker from exploiting this vulnerability, the `uinput` kernel module can be blacklisted. This will prevent the creation of virtual input devices.

bash
echo "install uinput /bin/true" | sudo tee /etc/modprobe.d/disable-uinput.conf

After applying this change, a system reboot is required for the blacklist to take full effect if the module is already loaded. Disabling `uinput` may impact applications that rely on virtual input devices.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score5.55.5N/A
Attack VectorLocalLocalN/A
Attack ComplexityLowLowN/A
Privileges RequiredLowLowN/A
User InteractionNoneNoneN/A
ScopeUnchangedUnchangedN/A
ConfidentialityNoneNoneN/A
Integrity ImpactNoneNoneN/A
Availability ImpactHighHighN/A

Vector

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

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

Understanding the Weakness (CWE)

Availability

Technical Impact: DoS: Resource Consumption (CPU); DoS: Resource Consumption (Memory); DoS: Resource Consumption (Other)

When allocating resources without limits, an attacker could prevent other systems, applications, or processes from accessing the same type of resource. It can be easy for an attacker to consume many resources by rapidly making many requests or causing larger resources to be used than is needed.

Frequently Asked Questions

Want to get errata notifications? Sign up here.