CVE-2025-21982
JSON

5.5medium

pinctrl: nuvoton: npcm8xx: Add NULL check in npcm8xx_gpio_fw

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.20% (higher than 9% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 6.7 before 6.12.20, from 6.13 before 6.13.8, 6.14NVD

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: pinctrl: nuvoton: npcm8xx: Se ha añadido una comprobación de valores nulos en las llamadas a npcm8xx_gpio_fw devm_kasprintf(), que pueden devolver punteros nulos en caso de error. Sin embargo, los valores de retorno no se comprobaron en npcm8xx_gpio_fw(). Se ha añadido una comprobación de valores nulos en npcm8xx_gpio_fw() para gestionar el error de desreferencia de punteros nulos del kernel.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-21982 changed 2026-05-11CVE Terms of Use
NVDCVE-2025-21982 changed 2026-06-17Public domain