PT-2026-161536

تاريخ النشر

2026-11-19

·

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

2026-11-19

الوصف من

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

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

In the Linux kernel, the following vulnerability has been resolved:
ceph: fail readdir when the MDS reply carries no dirfrag
A ceph mount oopses in ceph readdir() when the MDS answers a READDIR request with a reply whose extra blob is empty. parse reply info() skips reply blobs whose length is zero, so parse reply info readdir() never runs, r reply info.dir dir stays NULL, and the reply still parses as successful. ceph mdsc do request() returns 0 and ceph readdir() then reads rinfo->dir dir->frag with no NULL check:
/* extra */
ceph decode 32 safe(&p, end, len, bad);
if (len > 0) {
	...
	err = parse reply info extra(&p, p + len, req, features, s);
	...
}
The oops on v7.3.0-rc4-00537-ga3ff15db6820, one getdents64(2) on the mount root after an ms mode=legacy mount, trimmed:
BUG: KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN NOPTI CPU: 1 UID: 0 PID: 266 Comm: ls Tainted: G N 7.3.0-rc4-00537-ga3ff15db6820 #1 PREEMPT(lazy) RIP: 0010:ceph readdir+0xbff/0x3ea0 Call Trace: ? pfx ceph readdir+0x10/0x10 wrap directory iterator+0xa2/0xe0 iterate dir+0x1da/0x5d0 x64 sys getdents64+0x13b/0x2a0 do syscall 64+0xdd/0x4a0 entry SYSCALL 64 after hwframe+0x77/0x7f
The unconditional frag read came in with 81c6aea5275ea ("ceph: handle frag mismatch between readdir request and reply"), so the bug is old.
Treat a reply with no dirfrag as a protocol violation: warn once, drop the request and return -EIO, the same way ceph readdir() already handles the two malformed-reply cases later in the function.
Tested on v7.3.0-rc4-00537-ga3ff15db6820 (KASAN). Unpatched, the getdents64(2) above takes the machine down (oops=panic) on the first READDIR reply. With the patch it warns once and getdents64(2) returns -EIO, no oops, no hang. A conformant reply for an empty directory — dirfrag present, zero entries, FRAG END|FRAG COMPLETE — still lists "." and ".." and returns EOF on both kernels, so normal readdir behavior is unchanged. The oops is still present in v7.3-rc5 (72d3fcf802c45).
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
AZL-115097
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾