CVE-2025-21982 Details
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.
A vulnerability in the Linux kernel's handling of GPIO functions for the Nuvoton NPCM8XX pin control driver has been addressed. The issue arose because the function 'npcm8xx_gpio_fwdevm_kasprintf()' could return NULL pointers on failure, but this potential failure was not checked in 'npcm8xx_gpio_fw()'. This oversight could lead to a NULL pointer dereference error in the kernel. The vulnerability has been resolved by adding the necessary NULL checks in 'npcm8xx_gpio_fw()'.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 1, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/6a08a86e5aff8e65368ccd463348fdda26100821 | kernel.org | Patch |
| https://git.kernel.org/stable/c/a585f6ea42ec259a9a57e3e2580fa527c92187d0 | kernel.org | Patch |
| https://git.kernel.org/stable/c/acf40ab42799e4ae1397ee6f5c5941092d66f999 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | [email protected] |
| CWE-476 | NULL Pointer Dereference | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.7, < 6.12.20 >= 6.13, < 6.13.8 6.14 rc1 6.14 rc2 6.14 rc3 6.14 rc4 6.14 rc5 6.14 rc6 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 1, 2025 | CVE Modified | CISA-ADP |
| Apr 10, 2025 | Initial Analysis | [email protected] |
| Apr 1, 2025 | New CVE Received | kernel.org |