VDB

CVE-2025-21783

CVE-2025-21783 PUBLISHED CVSS 5.5 MEDIUM

gpiolib: Fix crash on error in gpiochip_get_ngpios()

Reported by linux · Published February 27, 2025

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux_kernellinux6.14, 6.13.4, 6.12.16, 6.6.79
LinuxLinuxa7052afa9eae2239e25943baa8817a6a56e8aa68, 7b4aebeecbbd5b5fe73e35fad3f62ed21aa7ef44, 4d9b2b62e1136d10f661ec4c0c268140b6f74f4f, 189fb76215e479c10731baabb50f1a352d2078f5

Risk scores

CVSS 3.1
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
LinuxLinux55b2395e4e92adc492c6b30ac109eb78250dcd9d, 55b2395e4e92adc492c6b30ac109eb78250dcd9d, 55b2395e4e92adc492c6b30ac109eb78250dcd9d
LinuxLinux6.6, 0, 6.6.79
linuxlinux_kernel6.6, 6.6, 6.6
LinuxLinux55b2395e4e92adc492c6b30ac109eb78250dcd9d, 55b2395e4e92adc492c6b30ac109eb78250dcd9d, 55b2395e4e92adc492c6b30ac109eb78250dcd9d

Timeline

  • Feb 26, 2025 CVE Published
  • Feb 27, 2025 EPSS Score (30 in total, the first dated here)
  • Mar 21, 2025 Coalition ESS Score (10 in total, the first dated here)
  • Dec 22, 2025 Security Advisory (372 in total, the first dated here)
  • Apr 29, 2026 Distribution Patch (327 in total, the first dated here)
  • Nov 11, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-21783
vulnetix vdb fixes CVE-2025-21783

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-21783/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›