# CVE-2024-26770: HID: nvidia-shield: Add missing null pointer checks to LED initialization

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-04-03T17:00:56.894Z
- Modified: 2026-06-17T07:18:18.067Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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]

(As written by CVE List.)

## Affected

- 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 *)
- linux linux_kernel: before 6.6.19; from 6.7 before 6.7.7; 6.8

## References

- <https://git.kernel.org/stable/c/83527a13740f57b45f162e3af4c7db4b88521100> (patch)
- <https://git.kernel.org/stable/c/e71cc4a1e584293deafff1a7dea614b0210d0443> (patch)
- <https://git.kernel.org/stable/c/b6eda11c44dc89a681e1c105f0f4660e69b1e183> (patch)

## Sources

- CVE List: [CVE-2024-26770](https://www.cve.org/CVERecord?id=CVE-2024-26770), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-26770](https://nvd.nist.gov/vuln/detail/CVE-2024-26770), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-26770 · Whole record: https://cve.day/CVE-2024-26770.json · Rebuilt by cve.day 2026-11-25T22:58:38.695Z
