pinctrl: at91-pio4: check return value of devm_kasprintf()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 776180848b574c9c01217fa958f10843ffce584f · < 0af388fce352ed2ab383fd5d1a08db551ca15c38| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
pinctrl: at91-pio4: check return value of devm_kasprintf()
devm_kasprintf() returns a pointer to dynamically allocated memory. Pointer could be NULL in case allocation fails. Check pointer validity. Identified with coccinelle (kmerr.cocci script).
Depends-on: 1c4e5c470a56 ("pinctrl: at91: use devm_kasprintf() to avoid potential leaks") Depends-on: 5a8f9cf269e8 ("pinctrl: at91-pio4: use proper format specifier for unsigned int")
From the CVE record · Linux
The at91-pio4 pinctrl driver did not check whether devm_kasprintf() returned NULL after an allocation failure. The input does not describe an attacker capability or specify network access, authentication, or user-interaction conditions.
Engineers running Linux kernels that include the at91-pio4 pinctrl driver should check their kernel; affected versions are not specified.