{"api_version":"1","generated_at":"2026-12-04T03:20:29+00:00","cve":"CVE-2026-143054","urls":{"html":"https://cve.report/CVE-2026-143054","api":"https://cve.report/api/cve/CVE-2026-143054.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-143054","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-143054"},"summary":{"title":"gpio: virtuser: remove the debugfs files before freeing the line data","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: virtuser: remove the debugfs files before freeing the line data\n\ngpio_virtuser_probe() registers the devm action that removes the debugfs\ndirectory before it allocates the per-line and per-array data that the\ndebugfs files point to. devres releases resources in reverse order, so\non unbind the line data is freed, the consumer_lock mutex is destroyed\nand the GPIO descriptors are put first, and the debugfs files are only\nremoved afterwards.\n\nA read or write of any of the per-line debugfs files (value, direction,\nconsumer, interrupts, ...) that runs in that window dereferences the\nfreed data. debugfs_remove_recursive() waits for in-flight file\noperations, but by then the data has already been freed.\n\nRunning eight threads that read the per-line debugfs files while\nanother task writes 1 and 0 to the configfs \"live\" attribute triggers\nthis within a second on a KASAN kernel, with gpio-sim as the provider:\n\n  BUG: KASAN: slab-use-after-free in gpio_virtuser_value_get+0x19/0x60\n  Read of size 8 at addr ffff888005109e38 by task vu_race/3479\n  Call Trace:\n   gpio_virtuser_value_get+0x19/0x60\n   simple_attr_read+0x109/0x290\n   debugfs_attr_read+0x5e/0x80\n   full_proxy_read+0xae/0xe0\n   vfs_read+0x1bc/0x7a0\n  Allocated by task 1:\n   devm_kmalloc+0x89/0x1d0\n   gpio_virtuser_probe+0x56f/0x910\n  Freed by task 1:\n   kfree+0x196/0x430\n   release_nodes+0x77/0xa0\n   devres_release_all+0xf3/0x150\n   device_unbind_cleanup+0x18/0x130\n   ...\n   platform_device_unregister+0x3c/0x50\n   gpio_virtuser_device_deactivate+0x3c/0xc0\n\nThe same run also reports use-after-free on the freed consumer_lock\nfrom the consumer attribute.\n\nRegister the debugfs removal action after the line data has been set\nup, so that it runs first on unbind, and remove the directory by hand\non the probe error paths before that point.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 10:17:34","updated_at":"2026-12-03 10:17:34"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/3aad9f26babf4579ecb3d44b21305669e40fddf8","name":"https://git.kernel.org/stable/c/3aad9f26babf4579ecb3d44b21305669e40fddf8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/37afe25c6e20b71d429feda8ae3ed0b57e4211c8","name":"https://git.kernel.org/stable/c/37afe25c6e20b71d429feda8ae3ed0b57e4211c8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c2d0710318b8cd57d0ef6088d0ee4bbc1e827fd3","name":"https://git.kernel.org/stable/c/c2d0710318b8cd57d0ef6088d0ee4bbc1e827fd3","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c204a4c377bd43f68b6a3c1d25b455a1e89ed48e","name":"https://git.kernel.org/stable/c/c204a4c377bd43f68b6a3c1d25b455a1e89ed48e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-143054","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143054","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 91581c4b3f29e2e22aeb1a62e842d529ca638b2d 3aad9f26babf4579ecb3d44b21305669e40fddf8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 91581c4b3f29e2e22aeb1a62e842d529ca638b2d 37afe25c6e20b71d429feda8ae3ed0b57e4211c8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 91581c4b3f29e2e22aeb1a62e842d529ca638b2d c204a4c377bd43f68b6a3c1d25b455a1e89ed48e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 91581c4b3f29e2e22aeb1a62e842d529ca638b2d c2d0710318b8cd57d0ef6088d0ee4bbc1e827fd3 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.11","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.11 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.120 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.66 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.7 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc3 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"143054","cve":"CVE-2026-143054","epss":"0.002090000","percentile":"0.116650000","score_date":"2026-12-03","updated_at":"2026-12-04 00:14:18"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/gpio/gpio-virtuser.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"3aad9f26babf4579ecb3d44b21305669e40fddf8","status":"affected","version":"91581c4b3f29e2e22aeb1a62e842d529ca638b2d","versionType":"git"},{"lessThan":"37afe25c6e20b71d429feda8ae3ed0b57e4211c8","status":"affected","version":"91581c4b3f29e2e22aeb1a62e842d529ca638b2d","versionType":"git"},{"lessThan":"c204a4c377bd43f68b6a3c1d25b455a1e89ed48e","status":"affected","version":"91581c4b3f29e2e22aeb1a62e842d529ca638b2d","versionType":"git"},{"lessThan":"c2d0710318b8cd57d0ef6088d0ee4bbc1e827fd3","status":"affected","version":"91581c4b3f29e2e22aeb1a62e842d529ca638b2d","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/gpio/gpio-virtuser.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.11"},{"lessThan":"6.11","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.120","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.66","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.7","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc3","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.120","versionStartIncluding":"6.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.66","versionStartIncluding":"6.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.7","versionStartIncluding":"6.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc3","versionStartIncluding":"6.11","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: virtuser: remove the debugfs files before freeing the line data\n\ngpio_virtuser_probe() registers the devm action that removes the debugfs\ndirectory before it allocates the per-line and per-array data that the\ndebugfs files point to. devres releases resources in reverse order, so\non unbind the line data is freed, the consumer_lock mutex is destroyed\nand the GPIO descriptors are put first, and the debugfs files are only\nremoved afterwards.\n\nA read or write of any of the per-line debugfs files (value, direction,\nconsumer, interrupts, ...) that runs in that window dereferences the\nfreed data. debugfs_remove_recursive() waits for in-flight file\noperations, but by then the data has already been freed.\n\nRunning eight threads that read the per-line debugfs files while\nanother task writes 1 and 0 to the configfs \"live\" attribute triggers\nthis within a second on a KASAN kernel, with gpio-sim as the provider:\n\n  BUG: KASAN: slab-use-after-free in gpio_virtuser_value_get+0x19/0x60\n  Read of size 8 at addr ffff888005109e38 by task vu_race/3479\n  Call Trace:\n   gpio_virtuser_value_get+0x19/0x60\n   simple_attr_read+0x109/0x290\n   debugfs_attr_read+0x5e/0x80\n   full_proxy_read+0xae/0xe0\n   vfs_read+0x1bc/0x7a0\n  Allocated by task 1:\n   devm_kmalloc+0x89/0x1d0\n   gpio_virtuser_probe+0x56f/0x910\n  Freed by task 1:\n   kfree+0x196/0x430\n   release_nodes+0x77/0xa0\n   devres_release_all+0xf3/0x150\n   device_unbind_cleanup+0x18/0x130\n   ...\n   platform_device_unregister+0x3c/0x50\n   gpio_virtuser_device_deactivate+0x3c/0xc0\n\nThe same run also reports use-after-free on the freed consumer_lock\nfrom the consumer attribute.\n\nRegister the debugfs removal action after the line data has been set\nup, so that it runs first on unbind, and remove the directory by hand\non the probe error paths before that point."}],"providerMetadata":{"dateUpdated":"2026-12-03T09:18:31.475Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/3aad9f26babf4579ecb3d44b21305669e40fddf8"},{"url":"https://git.kernel.org/stable/c/37afe25c6e20b71d429feda8ae3ed0b57e4211c8"},{"url":"https://git.kernel.org/stable/c/c204a4c377bd43f68b6a3c1d25b455a1e89ed48e"},{"url":"https://git.kernel.org/stable/c/c2d0710318b8cd57d0ef6088d0ee4bbc1e827fd3"}],"title":"gpio: virtuser: remove the debugfs files before freeing the line data","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-143054","datePublished":"2026-12-03T09:18:31.475Z","dateReserved":"2026-12-03T03:10:28.345Z","dateUpdated":"2026-12-03T09:18:31.475Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 10:17:34","lastModifiedDate":"2026-12-03 10:17:34","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"143054","Ordinal":"1","Title":"gpio: virtuser: remove the debugfs files before freeing the line","CVE":"CVE-2026-143054","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"143054","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: virtuser: remove the debugfs files before freeing the line data\n\ngpio_virtuser_probe() registers the devm action that removes the debugfs\ndirectory before it allocates the per-line and per-array data that the\ndebugfs files point to. devres releases resources in reverse order, so\non unbind the line data is freed, the consumer_lock mutex is destroyed\nand the GPIO descriptors are put first, and the debugfs files are only\nremoved afterwards.\n\nA read or write of any of the per-line debugfs files (value, direction,\nconsumer, interrupts, ...) that runs in that window dereferences the\nfreed data. debugfs_remove_recursive() waits for in-flight file\noperations, but by then the data has already been freed.\n\nRunning eight threads that read the per-line debugfs files while\nanother task writes 1 and 0 to the configfs \"live\" attribute triggers\nthis within a second on a KASAN kernel, with gpio-sim as the provider:\n\n  BUG: KASAN: slab-use-after-free in gpio_virtuser_value_get+0x19/0x60\n  Read of size 8 at addr ffff888005109e38 by task vu_race/3479\n  Call Trace:\n   gpio_virtuser_value_get+0x19/0x60\n   simple_attr_read+0x109/0x290\n   debugfs_attr_read+0x5e/0x80\n   full_proxy_read+0xae/0xe0\n   vfs_read+0x1bc/0x7a0\n  Allocated by task 1:\n   devm_kmalloc+0x89/0x1d0\n   gpio_virtuser_probe+0x56f/0x910\n  Freed by task 1:\n   kfree+0x196/0x430\n   release_nodes+0x77/0xa0\n   devres_release_all+0xf3/0x150\n   device_unbind_cleanup+0x18/0x130\n   ...\n   platform_device_unregister+0x3c/0x50\n   gpio_virtuser_device_deactivate+0x3c/0xc0\n\nThe same run also reports use-after-free on the freed consumer_lock\nfrom the consumer attribute.\n\nRegister the debugfs removal action after the line data has been set\nup, so that it runs first on unbind, and remove the directory by hand\non the probe error paths before that point.","Type":"Description","Title":"gpio: virtuser: remove the debugfs files before freeing the line"}]}}}