CVE-2026-143057
Last modified
CVE-2026-143057 is a vulnerability of currently unknown severity. In the Linux kernel, the following vulnerability has been resolved: gpio: shared: fix a race in shared desc release path gpiod_shared_put() races with concurrent calls to devm_gpiod_shared_get() like so: CPU 0 (unbind / probe failure) CPU 1 (concurrent proxy probe) ============================== ============================== gpiod_shared_put() kref_put(&entry->ref, ...) refcount_dec_and_test() // -> 0 devm_gpiod_shared_get() mutex_lock(&entry->lock); if (entry->shared_desc) { kref_get(&entry->ref); // on 0! shared_desc = entry->shared_desc; } mutex_unlock(&entry->lock); gpio_shared_release() mutex_lock(&entry->lock); kfree(shared_desc); entry->shared_desc = NULL; mutex_unlock(&entry->lock); // uses freed shared_desc Because gpiod_shared_put() decrements entry->ref without holding entry->lock and gpio_shared_release() only acquires entry->lock after the reference count has already reached zero, a concurrent call to devm_gpiod_shared_get() can acquire entry->lock in the intermediate window and observe a non-NULL entry->shared_desc. This can result in a use-after-free and a double-free when the second consumer releases its reference. Use kref_put_mutex() to ensure the entry lock is taken without a window in which a concurrent user can see a non-NULL entry->shared_desc while it's being released..
Description
In the Linux kernel, the following vulnerability has been resolved: gpio: shared: fix a race in shared desc release path gpiod_shared_put() races with concurrent calls to devm_gpiod_shared_get() like so: CPU 0 (unbind / probe failure) CPU 1 (concurrent proxy probe) ============================== ============================== gpiod_shared_put() kref_put(&entry->ref, ...) refcount_dec_and_test() // -> 0 devm_gpiod_shared_get() mutex_lock(&entry->lock); if (entry->shared_desc) { kref_get(&entry->ref); // on 0! shared_desc = entry->shared_desc; } mutex_unlock(&entry->lock); gpio_shared_release() mutex_lock(&entry->lock); kfree(shared_desc); entry->shared_desc = NULL; mutex_unlock(&entry->lock); // uses freed shared_desc Because gpiod_shared_put() decrements entry->ref without holding entry->lock and gpio_shared_release() only acquires entry->lock after the reference count has already reached zero, a concurrent call to devm_gpiod_shared_get() can acquire entry->lock in the intermediate window and observe a non-NULL entry->shared_desc. This can result in a use-after-free and a double-free when the second consumer releases its reference. Use kref_put_mutex() to ensure the entry lock is taken without a window in which a concurrent user can see a non-NULL entry->shared_desc while it's being released.
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= a060b8c511abb0997381b397e52149a5e3e5259a, < 00ffca4b5fdd99f72b5811dc5f954f3f49aaae31; >= a060b8c511abb0997381b397e52149a5e3e5259a, < 53043b9e83cc7f4e30e70161b67ae93c4c9fdb87 |
| Linux | Linux | 6.19 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-143057?
How severe is CVE-2026-143057?
How do I fix CVE-2026-143057?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-143051In the Linux kernel, the following vulnerability has been re…
- CVE-2026-143052In the Linux kernel, the following vulnerability has been re…
- CVE-2026-143053In the Linux kernel, the following vulnerability has been re…
- CVE-2026-143054In the Linux kernel, the following vulnerability has been re…
- CVE-2026-143055In the Linux kernel, the following vulnerability has been re…
- CVE-2026-143056In the Linux kernel, the following vulnerability has been re…
- CVE-2026-143058In the Linux kernel, the following vulnerability has been re…
- CVE-2026-143059In the Linux kernel, the following vulnerability has been re…
- CVE-2026-14306The Tutor LMS WordPress plugin before 3.9.14 does not proper…4.3
- CVE-2026-143060In the Linux kernel, the following vulnerability has been re…8.1
- CVE-2026-143061In the Linux kernel, the following vulnerability has been re…
- CVE-2026-143062In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2026-143057?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
