CVE-2024-50069Published Oct 29, 2024 · Oct 29Updated Oct 28
pinctrl: apple: check devm_kasprintf() returned value
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's Apple pinctrl code does not check whether devm_kasprintf() returns NULL on failure. This could lead to a null pointer dereference; the input does not establish how an attacker could trigger it or whether access, authentication, or user interaction is required.
Engineers running Linux kernels with the Apple pinctrl code should check whether their kernel is affected; affected versions were not provided.