CVE-2024-26770
JSON

5.5medium

HID: nvidia-shield: Add missing null pointer checks to LED initialization

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.24% (higher than 15% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: HID: nvidia-shield: Add missing null pointer checks to LED initialization devm_kasprintf() returns a pointer to dynamically allocated memory which can be NULL upon failure. Ensure the allocation was successful by checking the pointer validity. [jkosina@suse.com: tweak changelog a bit]

Affected

Product or packageVersionsReported by
Linux Linuxfrom 09308562d4afb1abc66366608fa1cb9de783272f before 83527a13740f57b45f162e3af4c7db4b88521100, from 09308562d4afb1abc66366608fa1cb9de783272f before e71cc4a1e584293deafff1a7dea614b0210d0443, from 09308562d4afb1abc66366608fa1cb9de783272f before b6eda11c44dc89a681e1c105f0f4660e69b1e183, 6.5
Not affected: before 6.5, from 6.6.19 up to 6.6.*, from 6.7.7 up to 6.7.*, from 6.8 up to *
CVE List
linux linux_kernelbefore 6.6.19, from 6.7 before 6.7.7, 6.8NVD

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: HID: nvidia-shield: Add missing null pointer checks to LED initialization devm_kasprintf() returns a pointer to dynamically allocated memory which can be NULL upon failure. Ensure the allocation was successful by checking the pointer validity. [jkosina@suse.com: tweak changelog a bit]

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: HID: nvidia-shield: agregar comprobaciones de puntero nulo faltantes a la inicialización del LED devm_kasprintf() devuelve un puntero a la memoria asignada dinámicamente que puede ser NULL en caso de falla. Asegúrese de que la asignación se haya realizado correctamente comprobando la validez del puntero. [jkosina@suse.com: modificar un poco el registro de cambios]

References

Sources

SourceRecordLicence
CVE ListCVE-2024-26770 changed 2026-05-11CVE Terms of Use
NVDCVE-2024-26770 changed 2026-06-17Public domain