🔍 CVE-2026-53064

5.5
CVSS Score
MEDIUM
2026-06-24
2026-11-06 17:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 dm-cache 구성 요소에서 passthrough 모드 사용 시 발생하는 NULL 포인터 역참조 취약점입니다. 캐시 엔트리를 무효화하는 과정에서 동시 쓰기 작업으로 인해 잠금(lock)에 실패할 경우, 유효하지 않은 메모리 주소에 접근하여 시스템 충돌을 유발할 수 있습니다.

💡 쉬운 설명

컴퓨터의 저장 장치를 관리하는 프로그램에서 두 가지 작업이 동시에 일어날 때 데이터 주소를 잘못 찾아가서 시스템이 멈추거나 오류가 발생하는 문제입니다. 특정 설정(passthrough 모드)에서 데이터를 쓰고 지우는 과정이 겹칠 때 발생합니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: dm cache: fix null-deref with concurrent writes in passthrough mode In passthrough mode, when dm-cache starts to invalidate a cache entry and bio prison cell lock fails due to concurrent write to the same cached block, mg->cell remains NULL. The error path in invalidate_complete() attempts to unlock and free the cell unconditionally, causing a NULL pointer dereference: KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 UID: 0 PID: 134 Comm: fio Not tainted 6.19.0-rc7 #3 PREEMPT RIP: 0010:dm_cell_unlock_v2+0x3f/0x210 <snip> Call Trace: invalidate_complete+0xef/0x430 map_bio+0x130f/0x1a10 cache_map+0x320/0x6b0 __map_bio+0x458/0x510 dm_submit_bio+0x40e/0x16d0 __submit_bio+0x419/0x870 <snip> Reproduce steps: 1. Create a cache device dmsetup create cmeta --table "0 8192 linear /dev/sdc 0" dmsetup create cdata --table "0 131072 linear /dev/sdc 8192" dmsetup create corig --table "0 262144 linear /dev/sdc 262144" dd if=/dev/zero of=/dev/mapper/cmeta bs=4k count=1 oflag=direct dmsetup create cache --table "0 262144 cache /dev/mapper/cmeta \ /dev/mapper/cdata /dev/mapper/corig 128 2 metadata2 writethrough smq 0" 2. Promote the first data block into cache fio --filename=/dev/mapper/cache --name=populate --rw=write --bs=4k \ --direct=1 --size=64k 3. Reload the cache into passthrough mode dmsetup suspend cache dmsetup reload cache --table "0 262144 cache /dev/mapper/cmeta \ /dev/mapper/cdata /dev/mapper/corig 128 2 metadata2 passthrough smq 0" dmsetup resume cache 4. Write to the first cached block concurrently fio --filename=/dev/mapper/cache --name test --rw=randwrite --bs=4k \ --randrepeat=0 --direct=1 --numjobs=2 --size 64k Fix by checking if mg->cell is valid before attempting to unlock it.

📍 영향받는 시스템

Linux kernel (dm-cache 사용 및 passthrough 모드 활성화 환경)

⚔️ 공격 벡터

로컬 사용자가 특정 조건(dm-cache passthrough 모드)에서 동시 쓰기 작업을 수행하여 커널 패닉 유도

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 mg->cell 유효성 검사 로직을 적용해야 함

🔧 검증 코드

출력된 커널 버전이 취약점이 해결된 패치 버전(예: 6.19.0-rc7 이후 수정 버전)인지 확인

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

💻 영향받는 소프트웨어

Linux Kernel