🔍 CVE-2025-71225

5.3
CVSS Score
MEDIUM
2026-02-18
2026-10-21 13:18
✅ 완료

🇰🇷 한글 설명

리눅스 커널의 md 레이드 드라이버에서 sysfs를 통해 raid_disks를 업데이트할 때, I/O 오류 발생 시 배열 동기화가 불완전하게 이루어지는 취약점입니다. 이로 인해 이전 설정으로 할당된 r1bio 메모리가 업데이트된 후 해제되면서 메모리 경계 외 접근(Out-of-bounds) 및 메모리 풀 오염이 발생할 수 있습니다.

💡 쉬운 설명

리눅스에서 저장 장치를 묶어 사용하는 기능(RAID)을 설정할 때, 오류가 발생하면 메모리 관리 체계가 꼬일 수 있는 문제입니다. 이로 인해 시스템이 예상치 못한 동작을 하거나 메모리 오류가 발생할 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: md: suspend array while updating raid_disks via sysfs In raid1_reshape(), freeze_array() is called before modifying the r1bio memory pool (conf->r1bio_pool) and conf->raid_disks, and unfreeze_array() is called after the update is completed. However, freeze_array() only waits until nr_sync_pending and (nr_pending - nr_queued) of all buckets reaches zero. When an I/O error occurs, nr_queued is increased and the corresponding r1bio is queued to either retry_list or bio_end_io_list. As a result, freeze_array() may unblock before these r1bios are released. This can lead to a situation where conf->raid_disks and the mempool have already been updated while queued r1bios, allocated with the old raid_disks value, are later released. Consequently, free_r1bio() may access memory out of bounds in put_all_bios() and release r1bios of the wrong size to the new mempool, potentially causing issues with the mempool as well. Since only normal I/O might increase nr_queued while an I/O error occurs, suspending the array avoids this issue. Note: Updating raid_disks via ioctl SET_ARRAY_INFO already suspends the array. Therefore, we suspend the array when updating raid_disks via sysfs to avoid this issue too.

📍 영향받는 시스템

Linux kernel (md driver using sysfs to update raid_disks)

⚔️ 공격 벡터

로컬 공격자가 sysfs를 통해 raid_disks 설정을 변경하고 I/O 오류를 유도하여 메모리 오염 유발

🛡️ 대응 방법

리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 sysfs를 통한 raid_disks 업데이트 시 배열 중단(suspend) 기능이 적용되도록 조치

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 해결된 최신 패치 버전인지 확인

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel