All reports
Medium

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

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2024-26770

Probability of exploitation in the next 30 days: 0.24%

FIRST EPSS · 2026-11-23

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]

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.