CVE-2025-21982 pinctrl: nuvoton: npcm8xx: Add NULL check in npcm8xx_gpio_fw
A missing NULL check in the Nuvoton NPCM8xx GPIO driver can cause a kernel crash, leading to denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-21982?
CVE-2025-21982 is a medium-severity vulnerability in Linux kernel, published on 1 Apr 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-476
Which versions are affected by CVE-2025-21982?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-21982?
Apply the vendor's patch.
Is CVE-2025-21982 being exploited?
There is no known exploitation of CVE-2025-21982 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2025-21982, DEBIAN-CVE-2025-21982, GHSA-6f6m-g7v2-775j, ROOT-OS-UBUNTU-2404-CVE-2025-21982, UBUNTU-CVE-2025-21982.