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

Published Apr 1, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

pinctrl: nuvoton: npcm8xx: Add NULL check in npcm8xxgpiofw

devmkasprintf() calls can return null pointers on failure. But the return values were not checked in npcm8xxgpiofw(). Add NULL check in npcm8xxgpiofw(), to handle kernel NULL pointer dereference error.

Affected Software

9 affected components
Linux Linux kernel>=6.7<6.12.20
Linux Linux kernel>=6.13<6.13.8
Linux Linux kernel=6.14-rc1
Linux Linux kernel=6.14-rc2
Linux Linux kernel=6.14-rc3
Linux Linux kernel=6.14-rc4
Linux Linux kernel=6.14-rc5
Linux Linux kernel=6.14-rc6
Linux Kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Add NULL checks for the return values of devm_kasprintf() in npcm8xx_gpio_fw() before dereferencing them.

    pinctrl: nuvoton: npcm8xx NULL checks for devm_kasprintf() return values in npcm8xx_gpio_fw() = checked before dereference

Event History

Apr 1, 2025
CVE Published
via MITRE·03:47 PM
Data Sourced
via MITRE·03:47 PM
Description
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-21982?

CVE-2025-21982 has a medium severity rating due to potential null pointer dereference risks.

2

What are the potential impacts of CVE-2025-21982?

The vulnerability could lead to a denial of service if the NULL pointer dereference occurs.

3

How do I fix CVE-2025-21982?

To fix CVE-2025-21982, update to the patched version of the Linux kernel that includes the NULL check.

4

Which versions of the Linux kernel are affected by CVE-2025-21982?

CVE-2025-21982 affects various versions of the Linux kernel before the patch was applied.

5

Are there any workarounds for CVE-2025-21982?

There are no recommended workarounds for CVE-2025-21982; applying the kernel update is necessary.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203