🇰🇷 한글 설명
Linux 커널의 zram 구성 요소에서 zram_destroy_comps() 함수 호출 시 기본 압축 알고리즘이 NULL로 설정되는 취약점이 발견되었습니다. 이로 인해 특정 상황에서 NULL 포인터 역참조가 발생하여 시스템 오류가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터의 메모리를 압축해서 사용하는 기능(zram)을 종료할 때, 설정값이 제대로 지워지지 않아 시스템이 갑자기 멈추거나 오류가 날 수 있는 문제입니다. 다행히 공격자가 이를 악용하기는 매우 어렵고 시스템 안정성을 위한 수정 사항입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
zram: set default primary compressor in zram_destroy_comps()
Patch series "zram: fix zram issues reported by sashiko".
Sashiko drove by and reported [1] a couple of zram issues:
a possible BUG_ON() in zlib code due to missing winbits range
validation and one possible NULL-ptr dereference in zcomp.
Both are low risk yet still worth fixing.
This patch (of 2):
zram_destroy_comps() resets all compressors and leaves them set to NULL,
including the primary one, which is invalid device state, as now
comp_algorithm_show()->strcmp() can be called on a NULL compressor. Set
default primary compressor in zram_destroy_comps().
📍 영향받는 시스템
zram 기능을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
로컬 시스템에서 zram 장치를 생성하고 파괴하는 특수한 동작을 수행하여 발생 (낮은 위험도)
🛡️ 대응 방법
zram 관련 패치가 적용된 최신 Linux 커널로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.