# CVE-2025-21982: pinctrl: nuvoton: npcm8xx: Add NULL check in npcm8xx_gpio_fw

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-04-01T15:47:10.274Z
- Modified: 2026-06-17T08:44:46.073Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from acf4884a571709cad99f98aabe08b7cacd62dc80 before a585f6ea42ec259a9a57e3e2580fa527c92187d0; from acf4884a571709cad99f98aabe08b7cacd62dc80 before 6a08a86e5aff8e65368ccd463348fdda26100821; from acf4884a571709cad99f98aabe08b7cacd62dc80 before acf40ab42799e4ae1397ee6f5c5941092d66f999; 6.7 (not affected: before 6.7; from 6.12.20 up to 6.12.*; from 6.13.8 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 6.7 before 6.12.20; from 6.13 before 6.13.8; 6.14

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/a585f6ea42ec259a9a57e3e2580fa527c92187d0> (patch)
- <https://git.kernel.org/stable/c/6a08a86e5aff8e65368ccd463348fdda26100821> (patch)
- <https://git.kernel.org/stable/c/acf40ab42799e4ae1397ee6f5c5941092d66f999> (patch)

## Sources

- CVE List: [CVE-2025-21982](https://www.cve.org/CVERecord?id=CVE-2025-21982), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-21982](https://nvd.nist.gov/vuln/detail/CVE-2025-21982), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-21982 · Whole record: https://cve.day/CVE-2025-21982.json · Rebuilt by cve.day 2026-11-25T22:58:55.922Z
