🇰🇷 한글 설명
리눅스 커널의 block 계층에서 bio_integrity_copy_user() 함수가 bip_vcnt 값을 잘못 덮어쓰는 취약점이 발견되었습니다. 이로 인해 WRITE 작업 시 gap-merge 체크 과정에서 bip_vec[] 배열의 범위를 벗어나 메모리를 읽는 오버런이 발생하거나, READ 작업 시 잘못된 메모리 영역에 접근할 수 있습니다.
💡 쉬운 설명
리눅스 운영체제의 핵심 부분에서 데이터를 복사할 때 메모리 경계를 제대로 확인하지 못하는 오류가 있습니다. 이 오류를 이용하면 시스템의 중요한 데이터를 잘못 읽거나 메모리 오류를 일으킬 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
block: don't overwrite bip_vcnt in bio_integrity_copy_user()
bio_integrity_add_page() already sets bip_vcnt to 1 for the bounce
segment. Overwriting it with nr_vecs breaks bip_vcnt <= bip_max_vcnt
on WRITE (bip_max_vcnt is 1), so the gap-merge checks in block/blk.h
read past the bip_vec[] flex array. On READ the read is in bounds
but lands on a saved user bvec instead of the bounce.
The line was added for split propagation, but bio_integrity_clone()
doesn't copy bip_vcnt and BIP_CLONE_FLAGS excludes BIP_COPY_USER.
📍 영향받는 시스템
Linux Kernel (bio_integrity_copy_user 관련 블록 계층 사용 시스템)
⚔️ 공격 벡터
특수하게 조작된 BIO(Block I/O) 요청을 통해 메모리 경계를 벗어난 읽기/쓰기 유도
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인