CVE-2026-143054: gpio: virtuser: remove the debugfs files before freeing the line data
gpio: virtuser: remove the debugfs files before freeing the line data
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Compensating control
In gpio_virtuser_probe(), register the debugfs-removal devm action after setting up the line data so it runs first on unbind; on probe error paths before that point, remove the debugfs directory manually before freeing the line data.
Event History
Frequently Asked Questions
Who is exposed to this race condition?
Systems using the gpio-virtuser driver and accessing its per-line debugfs files are exposed during device teardown. The demonstrated trigger uses gpio-sim as the provider, concurrent reads of per-line debugfs files, and writes to the configfs "live" attribute.
What concurrent activity is required to trigger the issue?
A read or write of a per-line debugfs file such as value, direction, consumer, or interrupts must occur while the virtuser instance is being unbound or torn down. In the reported reproduction, multiple threads read these files while another task toggles the configfs "live" attribute.
What can be done if the fix cannot be applied immediately?
Prevent concurrent access to gpio-virtuser per-line debugfs files while changing the configfs "live" attribute or otherwise unbinding the instance. Ensure debugfs readers and writers have stopped before teardown begins.
How might the issue appear during testing?
KASAN can report a slab use-after-free in gpio_virtuser_value_get during a debugfs read. The report can occur quickly when multiple debugfs readers run concurrently with configfs live-state changes.