pinctrl: single: fix potential NULL dereference in pcs_get_function()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 571aec4df5b72a80f80d1e524da8fbd7ff525c98 · < 4ed45fe99ec9e3c9478bd634624cd05a57d002f7| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
pinctrl: single: fix potential NULL dereference in pcs_get_function()
pinmux_generic_get_function() can return NULL and the pointer 'function' was dereferenced without checking against NULL. Add checking of pointer 'function' in pcs_get_function().
Found by code review.
From the CVE record · Linux
The Linux kernel's pcs_get_function() can dereference a NULL pointer when pinmux_generic_get_function() returns NULL. The issue was found by code review; the input does not establish how an attacker could trigger it or whether authentication, local access, or user interaction is required.
Engineers running the Linux kernel should check their versions; affected versions were not specified.