Ad

CVE-2026-99373

NONE EPSS 0.22%
Обновлено 19 ноября 2026
Nfs
Параметр Значение
Поставщик Nfs
Публичный эксплойт Нет

В ядре Linux была устранена следующая уязвимость: NFS/localio: обнаружить короткое чтение или запись до того, как итератор переместил nfs_local_call_read() и nfs_local_call_write() выдать смещенный DIO как до трех сегментов и должен остановиться на первом коротком, или следующий сегмент приземлится на неправильном смещении файла. Они проверяют это, сравнивая переданные байты с iov_iter_count() сегмента, читаемые после того, как read_iter() или write_iter() продвинули итератор, когда количество является остаточным, а не запросом: перед вызовом: count ожидаемый после вызова: count ожидаемый - статус. Короткий ввод-вывод, который охватывает от 50% до 99% сегмента, проскальзывает: цикл продолжается с ki_pos, авансированным на короткую сумму, следующий сегмент выдается с неправильным смещением, и количество байтов заголовка перегружается вызывающему абоненту.

Запись, которая проскальзывает, также никогда не задает NFS_CONTEXT_WRITE_SYNC, что делает записи, которые следуют за короткой синхронной. Возьмите счет сегмента, прежде чем выпустить его, и сравните с ним. Это тот же дефект, который фиксирует 250ec14932d5 («nfsd: fix partial-write detection in nfsd_direct_write»), исправленный в NFSD-версии этого цикла.

Показать оригинальное описание (EN)

In the Linux kernel, the following vulnerability has been resolved: NFS/localio: detect a short read or write before the iterator has moved nfs_local_call_read() and nfs_local_call_write() issue a misaligned DIO as up to three segments and must stop at the first short one, or the next segment lands at the wrong file offset. They test for that by comparing the bytes transferred against iov_iter_count() of the segment, read after read_iter() or write_iter() has advanced the iterator, when the count is the residual rather than the request: before the call: count == expected after the call: count == expected - status The test is therefore status < expected - status, and it fires only when less than half of the segment was transferred. A short I/O that covers between 50% and 99% of a segment slips through: the loop moves on with ki_pos advanced by the short amount, the next segment is issued at the wrong offset, and the header's byte count is over-reported to the caller. A write that slips through also never sets NFS_CONTEXT_WRITE_SYNC, which is what makes the writes that follow a short one synchronous. Take the segment's count before issuing it and compare against that. This is the same defect that commit 250ec14932d5 ("nfsd: fix partial-write detection in nfsd_direct_write") fixed in NFSD's version of this loop.