PT-2026-166912
CVE-2026-143057
·
تاريخ النشر
2026-12-03
·
تاريخ التحديث
2026-12-03
الوصف من
الدرجة
N/A
غير متوفرلا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.
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.
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾