🔍 CVE-2025-38063

5.5
CVSS Score
MEDIUM
2025-06-18
2026-11-05 21:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 Device Mapper 계층에서 REQ_PREFLUSH 플래그를 가진 바이오 요청 시 flush 작업이 I/O throttle(wbt)에 의해 불필요하게 지연되는 문제입니다. 특히 XFS 메타데이터 쓰기 성능을 심각하게 저하시킵니다. REQ_IDLE 플래그를 flush_bio에 추가하여 throttling을 우회함으로써 해결됩니다.

💡 쉬운 설명

Linux 시스템의 저장소 계층에서 일부 중요한 데이터 쓰기 작업이 불필요하게 느려지는 문제입니다. 파일시스템 메타데이터 동기화가 지연되어 전체 I/O 성능이 저하될 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: dm: fix unconditional IO throttle caused by REQ_PREFLUSH When a bio with REQ_PREFLUSH is submitted to dm, __send_empty_flush() generates a flush_bio with REQ_OP_WRITE | REQ_PREFLUSH | REQ_SYNC, which causes the flush_bio to be throttled by wbt_wait(). An example from v5.4, similar problem also exists in upstream: crash> bt 2091206 PID: 2091206 TASK: ffff2050df92a300 CPU: 109 COMMAND: "kworker/u260:0" #0 [ffff800084a2f7f0] __switch_to at ffff80004008aeb8 #1 [ffff800084a2f820] __schedule at ffff800040bfa0c4 #2 [ffff800084a2f880] schedule at ffff800040bfa4b4 #3 [ffff800084a2f8a0] io_schedule at ffff800040bfa9c4 #4 [ffff800084a2f8c0] rq_qos_wait at ffff8000405925bc #5 [ffff800084a2f940] wbt_wait at ffff8000405bb3a0 #6 [ffff800084a2f9a0] __rq_qos_throttle at ffff800040592254 #7 [ffff800084a2f9c0] blk_mq_make_request at ffff80004057cf38 #8 [ffff800084a2fa60] generic_make_request at ffff800040570138 #9 [ffff800084a2fae0] submit_bio at ffff8000405703b4 #10 [ffff800084a2fb50] xlog_write_iclog at ffff800001280834 [xfs] #11 [ffff800084a2fbb0] xlog_sync at ffff800001280c3c [xfs] #12 [ffff800084a2fbf0] xlog_state_release_iclog at ffff800001280df4 [xfs] #13 [ffff800084a2fc10] xlog_write at ffff80000128203c [xfs] #14 [ffff800084a2fcd0] xlog_cil_push at ffff8000012846dc [xfs] #15 [ffff800084a2fda0] xlog_cil_push_work at ffff800001284a2c [xfs] #16 [ffff800084a2fdb0] process_one_work at ffff800040111d08 #17 [ffff800084a2fe00] worker_thread at ffff8000401121cc #18 [ffff800084a2fe70] kthread at ffff800040118de4 After commit 2def2845cc33 ("xfs: don't allow log IO to be throttled"), the metadata submitted by xlog_write_iclog() should not be throttled. But due to the existence of the dm layer, throttling flush_bio indirectly causes the metadata bio to be throttled. Fix this by conditionally adding REQ_IDLE to flush_bio.bi_opf, which makes wbt_should_throttle() return false to avoid wbt_wait().

📍 영향받는 시스템

Linux kernel 5.4+ (Device Mapper 및 writeback throttle 활성화된 시스템)

⚔️ 공격 벡터

로컬 공격자가 악의적 I/O 패턴으로 메타데이터 쓰기를 지연시켜 서비스 거부 또는 성능 저하 유발

🛡️ 대응 방법

kernel 패치 적용 또는 최신 커널 버전으로 업그레이드 (commit 이후 버전)

🔧 검증 코드

Device Mapper 모듈 로드 상태와 커널 버전 확인, 5.4~5.9 또는 6.0~6.1 범위면 취약 가능성 높음

Shell / Script
grep -i 'preflush\|dm-' /proc/modules && 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