🇰🇷 한글 설명
리눅스 커널의 zram 구성 요소에서 zram_bvec_write_partial() 함수 호출 시 Use-After-Free 취약점이 발견되었습니다. 비동기 읽기 작업이 완료되기 전에 메모리 페이지가 해제되어, 이후 비동기 작업이 이미 해제된 메모리 영역에 데이터를 쓰려고 시도할 수 있습니다.
💡 쉬운 설명
컴퓨터가 데이터를 읽는 도중에 해당 데이터를 담을 메모리 공간을 미리 비워버려서 발생하는 문제입니다. 이로 인해 시스템이 불안정해지거나 보안 공격에 노출될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
zram: fix use-after-free in zram_bvec_write_partial()
zram_read_page() picks the sync or async backing device read path based on
whether the parent bio is NULL. zram_bvec_write_partial() passes its
parent bio down, so for ZRAM_WB slots the read is dispatched
asynchronously and zram_read_page() returns 0 while the bio is still in
flight. The caller then runs memcpy_from_bvec(), zram_write_page() and
__free_page() on the buffer, leaving the async read to write into a freed
page.
zram_bvec_read_partial() was switched to NULL in commit 4e3c87b9421d
("zram: fix synchronous reads") for the same reason; the write_partial
counterpart was missed.
📍 영향받는 시스템
zram 기능을 사용하는 Linux Kernel (특정 커밋 4e3c87b9421d 이전 버전)
⚔️ 공격 벡터
로컬 공격자가 zram 장치를 조작하여 메모리 관리 오류를 유도함으로써 권한 상승 또는 시스템 중단을 유발할 수 있음
🛡️ 대응 방법
zram 관련 패치가 적용된 최신 리눅스 커널 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.