CVE-2026-43181

Source
https://cve.org/CVERecord?id=CVE-2026-43181
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-43181.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-43181
Downstream
Published
2026-05-06T11:27:53.626Z
Modified
2026-07-08T08:09:35.250683666Z
Summary
gpio: sysfs: fix chip removal with GPIOs exported over sysfs
Details

In the Linux kernel, the following vulnerability has been resolved:

gpio: sysfs: fix chip removal with GPIOs exported over sysfs

Currently if we export a GPIO over sysfs and unbind the parent GPIO controller, the exported attribute will remain under /sys/class/gpio because once we remove the parent device, we can no longer associate the descriptor with it in gpiod_unexport() and never drop the final reference.

Rework the teardown code: provide an unlocked variant of gpiodunexport() and remove all exported GPIOs with the sysfslock taken before unregistering the parent device itself. This is done to prevent any new exports happening before we unregister the device completely.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/43xxx/CVE-2026-43181.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1cd53df733c21ae0d344a2dec941a3e2a06fefd9
Fixed
54f463494eb5bf193ef7d904a493474c451734df
Fixed
a645cc25904b0baf508b77a0402ce151212b9800
Fixed
6766f59012301f1bf3f46c6e7149caca45d92309

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-43181.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.17.0
Fixed
6.18.16
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
6.19.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-43181.json"