CVE-2026-43181
gpio: sysfs: fix chip removal with GPIOs exported over sysfs
Description
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 gpiod_unexport() and remove all exported GPIOs with the sysfs_lock taken before unregistering the parent device itself. This is done to prevent any new exports happening before we unregister the device completely.
INFO
Published Date :
May 6, 2026, 12:16 p.m.
Last Modified :
Nov. 11, 2026, 8:10 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Update the Linux kernel to the latest version.
- Apply the patch for the GPIO sysfs bug fix.
- Rework GPIO controller teardown logic.
- Ensure all exported GPIOs are removed before device unregistration.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-43181.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-43181 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-43181
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-43181 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-43181 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Nov. 11, 2026
Action Type Old Value New Value Added Translation Title: Linux Kernel, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: gpio: sysfs: corregir la eliminación del chip con GPIOs exportados a través de sysfs Actualmente, 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. Reestructurar 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. -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '1cd53df733c21ae0d344a2dec941a3e2a06fefd9', 'lessThan': '54f463494eb5bf193ef7d904a493474c451734df', 'versionType': 'git'}, {'status': 'affected', 'version': '1cd53df733c21ae0d344a2dec941a3e2a06fefd9', 'lessThan': 'a645cc25904b0baf508b77a0402ce151212b9800', 'versionType': 'git'}, {'status': 'affected', 'version': '1cd53df733c21ae0d344a2dec941a3e2a06fefd9', 'lessThan': '6766f59012301f1bf3f46c6e7149caca45d92309', 'versionType': 'git'}], 'programFiles': ['drivers/gpio/gpiolib-sysfs.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.17'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.17', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.18.16', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '6.19.6', 'versionType': 'semver', 'lessThanOrEqual': '6.19.*'}, {'status': 'unaffected', 'version': '7.0', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/gpio/gpiolib-sysfs.c'], 'defaultStatus': 'affected'}] -
Initial Analysis by [email protected]
May. 11, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE NVD-CWE-noinfo Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.19 up to (excluding) 6.19.6 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.17 up to (excluding) 6.18.16 Added Reference Type kernel.org: https://git.kernel.org/stable/c/54f463494eb5bf193ef7d904a493474c451734df Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/6766f59012301f1bf3f46c6e7149caca45d92309 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/a645cc25904b0baf508b77a0402ce151212b9800 Types: Patch -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 06, 2026
Action Type Old Value New Value Added Description 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 gpiod_unexport() and remove all exported GPIOs with the sysfs_lock taken before unregistering the parent device itself. This is done to prevent any new exports happening before we unregister the device completely. Added Reference https://git.kernel.org/stable/c/54f463494eb5bf193ef7d904a493474c451734df Added Reference https://git.kernel.org/stable/c/6766f59012301f1bf3f46c6e7149caca45d92309 Added Reference https://git.kernel.org/stable/c/a645cc25904b0baf508b77a0402ce151212b9800