🇰🇷 한글 설명
리눅스 커널의 블록 계층에서 blkdev_read_iter() 함수가 blkdev_direct_IO()의 반환값을 적절히 검사하지 않아 발생하는 취약점입니다. -EIOCBQUEUED 오류 발생 시 iov_iter_revert()를 호출할 때 음수 값을 부호 없는 정수로 처리하게 되어, MAX_RW_COUNT를 초과하는 값이 전달됨으로써 WARN_ON() 경고가 발생할 수 있습니다.
💡 쉬운 설명
리눅스 운영체제의 데이터를 읽는 과정에서 특정 오류가 발생했을 때, 시스템이 숫자를 잘못 계산하여 경고를 발생시키는 문제입니다. 이로 인해 시스템의 안정성이 떨어지거나 예기치 않은 동작이 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
block: don't revert iter for -EIOCBQUEUED
blkdev_read_iter() has a few odd checks, like gating the position and
count adjustment on whether or not the result is bigger-than-or-equal to
zero (where bigger than makes more sense), and not checking the return
value of blkdev_direct_IO() before doing an iov_iter_revert(). The
latter can lead to attempting to revert with a negative value, which
when passed to iov_iter_revert() as an unsigned value will lead to
throwing a WARN_ON() because unroll is bigger than MAX_RW_COUNT.
Be sane and don't revert for -EIOCBQUEUED, like what is done in other
spots.
📍 영향받는 시스템
Linux Kernel (blkdev_read_iter 관련 모듈이 포함된 버전)
⚔️ 공격 벡터
로컬 공격자가 특수하게 조작된 I/O 요청을 통해 커널의 오류 처리 로직을 유도하여 발생
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 최신 패치 버전인지 확인하십시오.