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 package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 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_kernel | before 6.6.19, from 6.7 before 6.7.7, 6.8 | NVD |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-26770 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2024-26770 changed 2026-06-17 | Public domain |