🇰🇷 한글 설명
Linux 커널의 erofs 파일시스템에서 HIGHMEM 플랫폼에 LZMA 압축 해제를 사용할 때 잘못된 페이지를 kunmap하는 문제가 해결되었습니다. 이로 인해 커널 NULL 포인터 역참조가 발생하여 시스템이 중단될 수 있었습니다. HIGHMEM을 사용하지 않는 플랫폼에는 영향이 없습니다.
💡 쉬운 설명
리눅스 커널이 압축된 데이터를 풀 때 메모리 페이지를 잘못 해제하는 버그가 있었습니다. 이 때문에 특정 32비트 환경에서 시스템이 비정상 종료될 수 있었고, 이제 수정되었습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
erofs: fix wrong kunmap when using LZMA on HIGHMEM platforms
As the call trace shown, the root cause is kunmap incorrect pages:
BUG: kernel NULL pointer dereference, address: 00000000
CPU: 1 PID: 40 Comm: kworker/u5:0 Not tainted 6.2.0-rc5 #4
Workqueue: erofs_worker z_erofs_decompressqueue_work
EIP: z_erofs_lzma_decompress+0x34b/0x8ac
z_erofs_decompress+0x12/0x14
z_erofs_decompress_queue+0x7e7/0xb1c
z_erofs_decompressqueue_work+0x32/0x60
process_one_work+0x24b/0x4d8
? process_one_work+0x1a4/0x4d8
worker_thread+0x14c/0x3fc
kthread+0xe6/0x10c
? rescuer_thread+0x358/0x358
? kthread_complete_and_exit+0x18/0x18
ret_from_fork+0x1c/0x28
---[ end trace 0000000000000000 ]---
The bug is trivial and should be fixed now. It has no impact on
!HIGHMEM platforms.
📍 영향받는 시스템
erofs 파일시스템과 LZMA 압축을 사용하고 HIGHMEM을 활성화한 32비트 Linux 커널 환경
⚔️ 공격 벡터
로컬 권한이 있는 사용자가 특수하게 구성된 erofs 이미지를 마운트·접근하여 커널 패닉(서비스 거부)을 유발할 수 있음
🛡️ 대응 방법
패키지 공급사가 제공하는 수정된 Linux 커널 업데이트를 적용하고 재부팅합니다.
🔧 검증 코드
커널 버전이 수정 패치가 포함된 배포판 업데이트 버전인지 확인하고, CONFIG_EROFS_FS 또는 CONFIG_HIGHMEM이 y/m으로 표시되면 영향 대상이므로 업데이트가 필요합니다.
uname -r && grep -E 'CONFIG_EROFS_FS|CONFIG_HIGHMEM' /boot/config-$(uname -r) 2>/dev/null