PT-2026-163351

CVE-2026-139310

·

تاريخ النشر

2026-11-30

·

تاريخ التحديث

2026-11-30

الوصف من

الدرجة
N/A
غير متوفر

لا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.

In the Linux kernel, the following vulnerability has been resolved:
bpf: Hold the socket in the sk storage map iterator
The iterator over a sk storage map passes the owner of an element to its program as ctx->sk, without a reference. All that it holds is the RCU read lock, which keeps the element and the storage, not the socket.
An element is unlinked by bpf sk storage free(), which sk destruct() calls right before it frees the socket. That is no better for a socket with SOCK RCU FREE: the grace period comes in front of sk destruct(), so a reader which starts behind call rcu() still finds the element. The program and the helpers it hands ctx->sk to, such as bpf sk storage get() or bpf sk storage delete(), use a socket which is being freed on another CPU. It takes nothing but reading the iterator while sockets with an element in the map are closed, by whomever.
Take a reference for the time of the program, and skip the element if there is none to be had. To look at the owner at all, do what bpf selem unlink nofail() does for bpf local storage map free(): as long as the element is linked under the lock of the storage, bpf local storage destroy() has not got past it, unless it has given up on the lock, and then it waits for owner refcnt.
The last reference may now be dropped by the iterator. The end of a socket may want process context: rfcomm sock destruct() takes a mutex. So only drop the reference under RCU, and free a socket whose last one it was when the RCU read lock has been released, which is at the end of a bucket and of every read() at the latest.
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾