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

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.

[[email protected]: tweak changelog a bit]

Classification

CVE ID: CVE-2024-26770

Affected Products

Vendor: Linux

Product: Linux

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.04% (probability of being exploited)

EPSS Percentile: 5.08% (scored less or equal to compared to others)

EPSS Date: 2025-02-04 (when was this score calculated)

References

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

Timeline