CVE-2024-50069: pinctrl: apple: check devm_kasprintf() returned value

Description

In the Linux kernel, the following vulnerability has been resolved:

pinctrl: apple: check devm_kasprintf() returned value

devm_kasprintf() can return a NULL pointer on failure but this returned
value is not checked. Fix this lack and check the returned value.

Found by code review.

Classification

CVE ID: CVE-2024-50069

Affected Products

Vendor: Linux

Product: Linux

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.03% (probability of being exploited)

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

EPSS Date: 2025-05-06 (when was this score calculated)

References

https://nvd.nist.gov/vuln/detail/CVE-2024-50069
https://git.kernel.org/stable/c/0a4d4dbef622ac8796a6665e0080da2685f9220a
https://git.kernel.org/stable/c/fad940e2dd789155f99ecafa71a7baf6f96530bc
https://git.kernel.org/stable/c/4d2296fb7c80fdc9925d29a8e85d617cad08731a
https://git.kernel.org/stable/c/665a58fe663ac7a9ea618dc0b29881649324b116

Timeline