pinctrl: nuvoton: npcm8xx: Add NULL check in npcm8xx_gpio_fw
Linux
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 |
|
|
6.12.206.13.86.14In the Linux kernel, the following vulnerability has been resolved:
pinctrl: nuvoton: npcm8xx: Add NULL check in npcm8xx_gpio_fw
devm_kasprintf() calls can return null pointers on failure. But the return values were not checked in npcm8xx_gpio_fw(). Add NULL check in npcm8xx_gpio_fw(), to handle kernel NULL pointer dereference error.
From the CVE record · Linux
The Linux kernel’s npcm8xx_gpio_fw() function did not check whether devm_kasprintf() returned NULL. If that call fails, the kernel can dereference a NULL pointer. The input does not establish whether an attacker can trigger the failure or whether access or user interaction is required.
Engineers running Linux kernels with the Nuvoton NPCM8xx pinctrl component should check their installations; affected versions are not specified.