{"id":"CVE-2026-43181","published":"2026-05-06T11:27:53Z","modified":"2026-05-11T22:19:24Z","title":"gpio: sysfs: fix chip removal with GPIOs exported over sysfs","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0016,"percentile":0.02743,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/54f463494eb5bf193ef7d904a493474c451734df","tags":[]},{"url":"https://git.kernel.org/stable/c/a645cc25904b0baf508b77a0402ce151212b9800","tags":[]},{"url":"https://git.kernel.org/stable/c/6766f59012301f1bf3f46c6e7149caca45d92309","tags":[]}],"priority":{"score":0.5,"factors":[{"name":"EPSS percentile","points":0.55}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 1cd53df733c21ae0d344a2dec941a3e2a06fefd9, < 54f463494eb5bf193ef7d904a493474c451734df",">= 1cd53df733c21ae0d344a2dec941a3e2a06fefd9, < a645cc25904b0baf508b77a0402ce151212b9800",">= 1cd53df733c21ae0d344a2dec941a3e2a06fefd9, < 6766f59012301f1bf3f46c6e7149caca45d92309"]},{"vendor":"Linux","product":"Linux","versions":["6.17"]}],"euvd":{"id":"EUVD-2026-27743","exploited":false,"provenance":"source"}}