CVE-2024-50070Published Oct 29, 2024 · Oct 29Updated Oct 28
pinctrl: stm32: 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: stm32: 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 STM32 pinctrl code in the Linux kernel does not check whether devm_kasprintf() returns NULL on failure. This could cause a NULL pointer dereference; the input does not identify an attacker action or specify access or interaction requirements.
Engineers running Linux kernels with the STM32 pinctrl code should check their installations; affected versions are not specified.