{"id":"CVE-2025-21982","summary":"pinctrl: nuvoton: npcm8xx: Add NULL check in npcm8xx_gpio_fw","details":"In the Linux kernel, the following vulnerability has been resolved:\n\npinctrl: nuvoton: npcm8xx: Add NULL check in npcm8xx_gpio_fw\n\ndevm_kasprintf() calls can return null pointers on failure.\nBut the return values were not checked in npcm8xx_gpio_fw().\nAdd NULL check in npcm8xx_gpio_fw(), to handle kernel NULL\npointer dereference error.","modified":"2026-04-02T12:45:18.080666Z","published":"2025-04-01T15:47:10.274Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21982.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/6a08a86e5aff8e65368ccd463348fdda26100821"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a585f6ea42ec259a9a57e3e2580fa527c92187d0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/acf40ab42799e4ae1397ee6f5c5941092d66f999"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21982.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21982"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"acf4884a571709cad99f98aabe08b7cacd62dc80"},{"fixed":"a585f6ea42ec259a9a57e3e2580fa527c92187d0"},{"fixed":"6a08a86e5aff8e65368ccd463348fdda26100821"},{"fixed":"acf40ab42799e4ae1397ee6f5c5941092d66f999"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21982.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}