{"id":"CVE-2025-21783","published":"2025-02-27T02:18:24Z","modified":"2026-05-11T21:06:20Z","title":"gpiolib: Fix crash on error in gpiochip_get_ngpios()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpiolib: Fix crash on error in gpiochip_get_ngpios()\n\nThe gpiochip_get_ngpios() uses chip_*() macros to print messages.\nHowever these macros rely on gpiodev to be initialised and set,\nwhich is not the case when called via bgpio_init(). In such a case\nthe printing messages will crash on NULL pointer dereference.\nReplace chip_*() macros by the respective dev_*() ones to avoid\nsuch crash.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00221,"percentile":0.12895,"provenance":"source"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"references":[{"url":"https://git.kernel.org/stable/c/4d9b2b62e1136d10f661ec4c0c268140b6f74f4f","tags":[]},{"url":"https://git.kernel.org/stable/c/a7052afa9eae2239e25943baa8817a6a56e8aa68","tags":[]},{"url":"https://git.kernel.org/stable/c/189fb76215e479c10731baabb50f1a352d2078f5","tags":[]},{"url":"https://git.kernel.org/stable/c/7b4aebeecbbd5b5fe73e35fad3f62ed21aa7ef44","tags":[]}],"priority":{"score":6.4,"factors":[{"name":"EPSS percentile","points":2.58},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 55b2395e4e92adc492c6b30ac109eb78250dcd9d, < 4d9b2b62e1136d10f661ec4c0c268140b6f74f4f",">= 55b2395e4e92adc492c6b30ac109eb78250dcd9d, < a7052afa9eae2239e25943baa8817a6a56e8aa68",">= 55b2395e4e92adc492c6b30ac109eb78250dcd9d, < 189fb76215e479c10731baabb50f1a352d2078f5",">= 55b2395e4e92adc492c6b30ac109eb78250dcd9d, < 7b4aebeecbbd5b5fe73e35fad3f62ed21aa7ef44"]},{"vendor":"Linux","product":"Linux","versions":["6.6"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-01T19:30:22.231449Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-5146","exploited":false,"provenance":"source"}}