CVE-2026-143057: gpio: shared: fix a race in shared desc release path
gpio: shared: fix a race in shared desc release path
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Compensating control
In the Linux kernel GPIO shared descriptor release path, use kref_put_mutex() so the entry lock is taken without an intermediate window.
Event History
Frequently Asked Questions
What conditions are required to trigger this issue?
The race requires a shared GPIO descriptor to be released during device unbind or probe failure while another consumer concurrently calls devm_gpiod_shared_get(), such as during a concurrent proxy probe. The second consumer must observe the shared descriptor before the release path clears it.
What is the likely impact if the race occurs?
A concurrent consumer can use a shared GPIO descriptor after it has been freed. When that consumer later releases its reference, the condition can also result in a double-free.