PT-2026-163479
CVE-2026-139438
·
تاريخ النشر
2026-11-30
·
تاريخ التحديث
2026-11-30
الوصف من
الدرجة
N/A
غير متوفرلا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.
In the Linux kernel, the following vulnerability has been resolved:
block: use iomap dirty folio for block devices
With CONFIG BUFFER HEAD=n, block devices are written back through iomap,
but def blk aops uses filemap dirty folio, which only sets PG dirty. It
does not set the per-block dirty bits in the folio's iomap folio state,
so iomap writeback folio() finds no dirty range, submits no I/O and
clears PG dirty, resulting in data loss.
Other iomap users set .dirty folio to iomap dirty folio, which marks the
folio's blocks dirty before calling filemap dirty folio().
This is only observable with block size < folio size. With a single
block there is no iomap folio state to get out of sync and
iomap writeback folio() marks the whole folio dirty itself. For a
page-aligned device, this may require using the BLKBSZSET ioctl to set
the block size, which requires CAP SYS ADMIN. A device whose size is not
page aligned already gets a sub-page block size from
set init blocksize(), so no ioctl and no privilege is needed.
To reproduce, on a device with a sub-page block size, write a known
pattern with O DIRECT, mmap the same range, store to it, msync() and
fsync(), then read it back with O DIRECT. A reproducer is available at
[1].
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾