CVE-2024-26770
kernel: HID: nvidia-shield: Add missing null pointer checks to LED initialization
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · April 3, 2024
Updated · November 21, 2025
Description
A vulnerability was found in the Linux kernel during LED initialization in the devm_kasprintf() function, which returns a pointer to dynamically allocated memory. This pointer could return NULL if the function fails, which could result in crashes or undefined behavior.
Statement
Red Hat Enterprise Linux 8 is not affected because nvidia-shield code is not present in RHEL 8. Red Hat Enterprise Linux 9 not affected because the kconfig for the affected driver is not enabled.
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
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 4.4CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
CWE-170 · Improper Null Termination