Vulnerabilities · 2025 · Linux
CVE-2025-21783
Linux Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: gpiolib: Fix crash on error in gpiochip_get_ngpios() The gpiochip_get_ngpios() uses chip_*() macros to print messages. However these macros rely on gpiodev to be initialised and set, which is not the case when called via bgpio_init(). In such a case the printing messages will crash on NULL pointer dereference. Replace chip_*() macros by the respective dev_*() ones to avoid such crash.
Affected products
Linux Kernel. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Linux Kernel runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- git.kernel.org/stable/c/189fb76215e479c10731baabb50f1a352d2078f5 · Patch
- git.kernel.org/stable/c/4d9b2b62e1136d10f661ec4c0c268140b6f74f4f · Patch
- git.kernel.org/stable/c/7b4aebeecbbd5b5fe73e35fad3f62ed21aa7ef44 · Patch
- git.kernel.org/stable/c/a7052afa9eae2239e25943baa8817a6a56e8aa68 · Patch
- nvd.nist.gov/vuln/detail/CVE-2025-21783
- cve.org/CVERecord?id=CVE-2025-21783
More vulnerabilities in Linux products
CVE-2026-46300CVE-2025-40364CVE-2025-40325CVE-2025-40300CVE-2025-40114CVE-2025-40014CVE-2025-39989CVE-2025-39967All 12,086
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.