{"id":"CVE-2026-43181","aliases":["CVE-2026-43181"],"related":[],"kind":"vulnerability","state":"published","title":"gpio: sysfs: fix chip removal with GPIOs exported over sysfs","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: sysfs: fix chip removal with GPIOs exported over sysfs\n\nCurrently if we export a GPIO over sysfs and unbind the parent GPIO\ncontroller, the exported attribute will remain under /sys/class/gpio\nbecause once we remove the parent device, we can no longer associate the\ndescriptor with it in gpiod_unexport() and never drop the final\nreference.\n\nRework the teardown code: provide an unlocked variant of\ngpiod_unexport() and remove all exported GPIOs with the sysfs_lock taken\nbefore unregistering the parent device itself. This is done to prevent\nany new exports happening before we unregister the device completely.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: sysfs: fix chip removal with GPIOs exported over sysfs\n\nCurrently if we export a GPIO over sysfs and unbind the parent GPIO\ncontroller, the exported attribute will remain under /sys/class/gpio\nbecause once we remove the parent device, we can no longer associate the\ndescriptor with it in gpiod_unexport() and never drop the final\nreference.\n\nRework the teardown code: provide an unlocked variant of\ngpiod_unexport() and remove all exported GPIOs with the sysfs_lock taken\nbefore unregistering the parent device itself. This is done to prevent\nany new exports happening before we unregister the device completely.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ngpio: sysfs: corregir la eliminación del chip con GPIOs exportados a través de sysfs\n\nActualmente, si exportamos un GPIO a través de sysfs y desvinculamos el controlador GPIO padre, el atributo exportado permanecerá bajo /sys/class/gpio porque una vez que eliminamos el dispositivo padre, ya no podemos asociar el descriptor con él en gpiod_unexport() y nunca se elimina la referencia final.\n\nReestructurar el código de desmontaje: proporcionar una variante desbloqueada de gpiod_unexport() y eliminar todos los GPIOs exportados con el sysfs_lock tomado antes de desregistrar el propio dispositivo padre. Esto se hace para evitar que ocurran nuevas exportaciones antes de que desregistremos el dispositivo por completo.","source":"nvd"}],"published":"2026-05-06T11:27:53.626Z","modified":"2026-11-11T20:10:00.273Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1cd53df733c21ae0d344a2dec941a3e2a06fefd9","fixed":"54f463494eb5bf193ef7d904a493474c451734df","status":"affected"},{"type":"git","introduced":"1cd53df733c21ae0d344a2dec941a3e2a06fefd9","fixed":"a645cc25904b0baf508b77a0402ce151212b9800","status":"affected"},{"type":"git","introduced":"1cd53df733c21ae0d344a2dec941a3e2a06fefd9","fixed":"6766f59012301f1bf3f46c6e7149caca45d92309","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.17","status":"unaffected"},{"type":"semver","introduced":"6.18.16","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.6","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.17","fixed":"6.18.16"},{"status":"affected","introduced":"6.19","fixed":"6.19.6"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/54f463494eb5bf193ef7d904a493474c451734df","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a645cc25904b0baf508b77a0402ce151212b9800","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6766f59012301f1bf3f46c6e7149caca45d92309","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43181","url":"https://www.cve.org/CVERecord?id=CVE-2026-43181","licence":"CVE Terms of Use","modified":"2026-05-11T22:19:24.836Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43181","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43181","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"}],"updatedAt":"2026-11-25T22:59:20.716Z","epss":{"score":0.00126,"percentile":0.02466,"date":"2026-12-01T12:00:22.000Z"}}