In the Linux kernel, the following vulnerability has been resolved: ntfs: fix off-by-one page overflow in ntfs_decompress() The per-token range check in ntfs_decompress() uses if (cb >= cb_sb_end || dp_addr > dp_sb_end) break; so dp_addr == dp_sb_end falls through to the symbol copy `*dp_addr++ = *cb++`, writing one byte past the destination page. Так как NTFS_SB_SIZE PAGE_SIZE предназначение - это одна страница, поэтому байт попадает на соседнюю страницу, а *dest_ofs остается на одну за концом подблока (более поздний *dest_ofs ~PAGE_MASK - тогда дает 1, а не 0, поэтому страница никогда не завершается, а более поздние подблоки продолжают писать дальше за ним). Поврежденный сжатый атрибут $DATA, таким образом, производит ограниченный запуск записи out-of-bounds при чтении файла.
Разрыв, как только dp_addr достигнет dp_sb_end; полный подблок все еще завершается, поскольку его окончательная копия продвигает dp_addr до точно dp_sb_end.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: ntfs: fix off-by-one page overflow in ntfs_decompress() The per-token range check in ntfs_decompress() uses if (cb >= cb_sb_end || dp_addr > dp_sb_end) break; so dp_addr == dp_sb_end falls through to the symbol copy `*dp_addr++ = *cb++`, writing one byte past the destination page. Since NTFS_SB_SIZE == PAGE_SIZE the destination is a single page, so the byte lands in the adjacent page, and *dest_ofs is left one past the sub-block end (the later `*dest_ofs &= ~PAGE_MASK` then yields 1, not 0, so the page is never finalized and later sub-blocks keep writing further past it). A corrupted compressed $DATA attribute thus produces a bounded run of out-of-bounds writes when the file is read. Break as soon as dp_addr reaches dp_sb_end; a full sub-block still completes, as its final copy advances dp_addr to exactly dp_sb_end.
Характеристики атаки
Последствия
Строка CVSS v3.1