EnvMap GitHub

CVE-2026-143057

gpio: shared: fix a race in shared desc release path

Not scored yetEPSS 0.27%Received

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.

In the words of the organisation that published it (Linux).

Affected

  • Linux: from a060b8c511abb0997381b397e52149a5e3e5259a before 00ffca4b5fdd99f72b5811dc5f9; from a060b8c511abb0997381b397e52149a5e3e5259a before 53043b9e83cc7f4e30e70161b67; 6.19

as the publisher (Linux) lists them.

Likelihood of exploitation

FIRST's EPSS gives a 0.27% chance of exploitation in the next 30 days, higher than 21% of all CVEs (as of 4 December 2026).

References

Record

Published10:17 UTC, 3 December 2026
Last changed10:17 UTC, 3 December 2026
NVD statusReceived
Published byLinux

CVE-2026-143057 on NVD · on CVE.org · Security Briefing

Follow it

Add the feed to a feed reader and new items arrive there as they are published, with no account here and no email.

Add to Feedly Add to Inoreader

Any other reader: paste https://envmap.tech/security/feed.xml

Where this comes from

Nothing here is written by an AI, summarised or rewritten: a headline is its newsroom's own and opens its story. A description is in the words of the organisation that published the CVE; a score says whose it is, NVD's or the publisher's; a CVE nobody has scored yet says so. A CVE that is rejected comes off every list. When a source does not answer, the page keeps the last answer it gave and says since when.

How to read it

EnvMap is a free, open-source DevOps control plane that you run yourself; its Security page brings your scanners' findings into one place. See what it does.