In the Linux kernel, the following vulnerability has been resolved: smb/client: fix stale page cache in insert/collapse range smb3_insert_
위협 신호 · CVSS · EPSS · KEV
이론적 심각도 점수
예측 데이터 없음
실측 악용 기록 없음
계획된 패치 주기 내 조치(60일 이내)
CVSS 벡터 · 메트릭
CVSS 벡터 정보 없음
상세 설명
In the Linux kernel, the following vulnerability has been resolved:
smb/client: fix stale page cache in insert/collapse range
smb3_insert_range() and smb3_collapse_range() use
truncate_pagecache_range() to invalidate the affected page cache.
However, if off or old_eof is not page-aligned, the boundary pages are
only partially zeroed and remain uptodate. As a result, the client may
return stale data after a successful insert/collapse range operation.
For example, with 4K pages:
1page 0 page 1 page 2 20------4K 4K------8K 8K------12K 3 ^ ^ 4off=2K old_eof=10KPage 1 is removed from the page cache, while the boundary pages are
only partially zeroed. After COPYCHUNK moves the data on the server,
these cached pages may still return stale data.
This can be reproduced on a CIFS mount:
1bash -c ' 2 FILE=/mnt/scratch/repro 3 4 # Use a 6 KiB file so EOF is not page-aligned. 5 dd if=/dev/urandom of=/tmp/src bs=1K count=6 status=none 6 7 # Expected: a 4 KiB hole followed by the original data. 8 rm -f /tmp/expected 9 truncate -s 4K /tmp/expected10 cat /tmp/src >> /tmp/expected11 12 cp /tmp/src "$FILE"13 14 # Prime the page cache before moving data on the server.15 cat "$FILE" > /dev/null16 17 fallocate --insert-range -o 0 -l 4K "$FILE"18 19 if cmp -s /tmp/expected "$FILE"; then20 echo "readback: OK"21 else22 echo "readback: STALE DATA"23 fi24'Fix this by writing back dirty data and discarding the page cache from
the start of the page containing off to EOF before moving data on the
server.
AI 심층 분석
공격 시나리오 · 재현 가능한 PoC 페이로드 · 즉시 적용 가능한 차단 패치를 한 번에 받아 보세요. 보안 운영팀이 그대로 점검·티켓팅에 쓸 수 있는 형태로 정리해 드립니다.