PT-2026-163299
CVE-2026-139258
·
تاريخ النشر
2026-11-30
·
تاريخ التحديث
2026-11-30
الوصف من
CVSS 3.1
7.8
عاليةالمقاييسAV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
In the Linux kernel, the following vulnerability has been resolved:
ntfs: widen the sub-block offsets in ntfs decompress()
ntfs decompress() tracks where the current sub-block starts and ends
inside the destination page with two u16s:
u16 do sb start;
u16 do sb end;
...
do sb start = *dest ofs;
do sb end = do sb start + NTFS SB SIZE;*dest ofs is an int page offset masked with ~PAGE MASK, and
NTFS SB SIZE is 0x1000, so do sb end needs PAGE SIZE + 0xfff of range.
That exceeds u16 once PAGE SIZE reaches 0x10000: the last sub-block of a
page starts at 0xf000 and do sb end wraps from 0x10000 to 0.
The zero-fill that pads a short sub-block then computes a negative
length:
if (dp addr < dp sb end) {
int nr bytes = do sb end - *dest ofs;
memset(dp addr, 0, nr bytes);A sub-block made only of symbol tokens reaches this without consulting
do sb end on the way, because that path just does
*dp addr++ = *cb++;
++*dest ofs;and is bounded by dp addr against dp sb end. With do sb start at 0xf000
and eight literal bytes emitted, nr bytes is -61448 and the memset()
runs for 18446744073709490168 bytes.
Getting there is cheap: fifteen sub-blocks of eleven bytes each advance
*dest ofs to 0xf000, since the same zero-fill pads each of them out to
0x1000 while do sb end is still exact, and the sixteenth one triggers
the wrap. A compression block is 0x10000 bytes with 4 KiB clusters and
the fixed compression unit of 4, so all sixteen fit with room to spare.
Phrase tokens are bounded against do sb end and so return -EOVERFLOW
instead, and the
if (*dest index == dest max index && do sb end > dest max ofs)check at the top of the sub-block stops firing for the same reason.
Use int for both, matching *dest ofs and dest max ofs. The narrow type
came in with the original import and survived the removal and revert of
the driver.
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾