CVE-2026-143054

Not scored yetLast modified Dec 3, 2026

Description

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

gpio: virtuser: remove the debugfs files before freeing the line data

gpio_virtuser_probe() registers the devm action that removes the debugfs directory before it allocates the per-line and per-array data that the debugfs files point to. devres releases resources in reverse order, so on unbind the line data is freed, the consumer_lock mutex is destroyed and the GPIO descriptors are put first, and the debugfs files are only removed afterwards.

A read or write of any of the per-line debugfs files (value, direction, consumer, interrupts, ...) that runs in that window dereferences the freed data. debugfs_remove_recursive() waits for in-flight file operations, but by then the data has already been freed.

Running eight threads that read the per-line debugfs files while another task writes 1 and 0 to the configfs "live" attribute triggers this within a second on a KASAN kernel, with gpio-sim as the provider:

BUG: KASAN: slab-use-after-free in gpio_virtuser_value_get+0x19/0x60 Read of size 8 at addr ffff888005109e38 by task vu_race/3479 Call Trace: gpio_virtuser_value_get+0x19/0x60 simple_attr_read+0x109/0x290 debugfs_attr_read+0x5e/0x80 full_proxy_read+0xae/0xe0 vfs_read+0x1bc/0x7a0 Allocated by task 1: devm_kmalloc+0x89/0x1d0 gpio_virtuser_probe+0x56f/0x910 Freed by task 1: kfree+0x196/0x430 release_nodes+0x77/0xa0 devres_release_all+0xf3/0x150 device_unbind_cleanup+0x18/0x130 ... platform_device_unregister+0x3c/0x50 gpio_virtuser_device_deactivate+0x3c/0xc0

The same run also reports use-after-free on the freed consumer_lock from the consumer attribute.

Register the debugfs removal action after the line data has been set up, so that it runs first on unbind, and remove the directory by hand on the probe error paths before that point.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-143055In the Linux kernel, the following vulnerability has been resolved: gpio: virtuser: fix interrupt leak and UAF When configuring interrupt CVE-2026-143056In the Linux kernel, the following vulnerability has been resolved: gpio: sodaville: fix use-after-free bug when registering the irqchip ICVE-2026-143057In the Linux kernel, the following vulnerability has been resolved: gpio: shared: fix a race in shared desc release path gpiod_shared_put(CVE-2026-143058In the Linux kernel, the following vulnerability has been resolved: gpio: brcmstb: fix UAF after IRQ domain setup failure When devm_requesCVE-2026-143059In the Linux kernel, the following vulnerability has been resolved: gpio: aspeed: Clear only the acked line's G4 interrupt status The G4 iCVE-2026-143064.3The Tutor LMS WordPress plugin before 3.9.14 does not properly verify enrollment when restricting access to protected course content, allowiCVE-2026-143060In the Linux kernel, the following vulnerability has been resolved: ksmbd: evaluate the DACL in order for explicit access requests For reqCVE-2026-143061In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: bound pending OCB station allocations Delaying the OCBCVE-2026-143062In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: bound pending IBSS station allocations Delaying the IBCVE-2026-143063In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: fix use-after-free on TTLM disconnect If ieee80211_proCVE-2026-143064In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: reject invalid EHT guard intervals in airtime estimatesCVE-2026-143065In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: recheck the OCB station limit before insertion Frames
CVE-2026-143054: Unscored | Vulnix