What’s Vulnerable › Vulnerabilities
CVE-2025-21982: pinctrl: nuvoton: npcm8xx: Add NULL check in npcm8xx_gpio_fw
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-04-01 · updated 2026-06-17
- Weakness: CWE-476
Description
In 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.
Affected products
- Linux kernel: from 6.7 before 6.12.20; from 6.13 before 6.13.8; 6.14-rc1, 6.14-rc2, 6.14-rc3, 6.14-rc4, 6.14-rc5, 6.14-rc6 — fixed in 6.12.20, 6.13.8
How to fix
Upgrade to a fixed version: Linux kernel 6.12.20, 6.13.8. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/6a08a86e5aff8e65368ccd463348fdda26100821
- https://git.kernel.org/stable/c/a585f6ea42ec259a9a57e3e2580fa527c92187d0
- https://git.kernel.org/stable/c/acf40ab42799e4ae1397ee6f5c5941092d66f999
Get alerted when CVE-2025-21982 or the next vulnerability affects your stack