PT-2026-161460

تاريخ النشر

2026-11-19

·

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

2026-11-19

الوصف من

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

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

In the Linux kernel, the following vulnerability has been resolved:
ocfs2/dlm: hold the lookup reference across convert AST enqueue
dlm convert lock handler() drops the reference it took when it found the lock on res->granted at its leave label, one statement before it calls dlm queue ast(). dlm free dead locks() takes res->spinlock and drops the list and base references, so a peer death landing in that gap leaves the handler's own put as the one that frees the lock, and dlm queue ast() then reads lock->lockres from freed memory.
The handler is registered next to dlm create lock handler(), so a convert message buffered on a dying peer's socket arrives on the same o2net receive work that o2net disconnect node() does not wait for. The two can interleave as follows, with the reference counts as they are before this fix:
Socket data-ready Node-down thread Receive worker

o2net data ready() select sc under callback read lock o2net disconnect node() queue shutdown begin flush; new color queue sc rx work in the new color release callback lock shutdown socket flush returns read buffered convert lock dlm convert lock handler() find lock on res->granted dlm lock get() refs = 3 lock res->spinlock dlmconvert master() call ast = 1 unlock res->spinlock DLM node-down cleanup lock res->spinlock dlm free dead locks() unlink lock put list ref refs = 2 put base ref refs = 1 unlock res->spinlock dlm lock put() refs = 0 free lock dlm queue ast() dlm queue ast() read lock->lockres (use-after-free)
dlmconvert master() only moves the lock between lists, so the count entering the gap is base, list and lookup. Drop the lookup reference after the AST is queued instead of before it and the race ends with the one dlm queue ast() took, which dlm flush asts() releases later with ast pending cleared and ast list unlinked. No extra get is needed, and the normal case ends with the same count as before.
dlmconvert master() has the same shape but is only reached from dlmlock() for a lock this node owns, which dlm free dead locks() never matches.
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
AZL-114869
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾