🔍 CVE-2025-39792

7.8
CVSS Score
HIGH
2025-09-12
2026-10-19 21:10
✅ 완료

🇰🇷 한글 설명

Linux 커널의 dm(Device Mapper)에서 존드(Zoned) 장치 제한을 초과하는 쓰기 BIO를 처리할 때 발생하는 취약점입니다. 기존에는 DM 타겟 드라이버가 BIO를 직접 분할하여 데드락(Deadlock)이나 잘못된 섹터 값 반환을 초래할 수 있었으나, 이번 패치를 통해 블록 계층의 헬퍼 함수를 사용하여 안전하게 분할하도록 수정되었습니다.

💡 쉬운 설명

데이터를 저장하는 장치의 특수한 규칙을 지키지 못해 컴퓨터 시스템이 멈추거나 데이터가 잘못 저장될 수 있는 문제입니다. 커널 업데이트를 통해 데이터를 저장하기 전에 미리 안전한 크기로 나누어 저장하도록 개선되었습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: dm: Always split write BIOs to zoned device limits Any zoned DM target that requires zone append emulation will use the block layer zone write plugging. In such case, DM target drivers must not split BIOs using dm_accept_partial_bio() as doing so can potentially lead to deadlocks with queue freeze operations. Regular write operations used to emulate zone append operations also cannot be split by the target driver as that would result in an invalid writen sector value return using the BIO sector. In order for zoned DM target drivers to avoid such incorrect BIO splitting, we must ensure that large BIOs are split before being passed to the map() function of the target, thus guaranteeing that the limits for the mapped device are not exceeded. dm-crypt and dm-flakey are the only target drivers supporting zoned devices and using dm_accept_partial_bio(). In the case of dm-crypt, this function is used to split BIOs to the internal max_write_size limit (which will be suppressed in a different patch). However, since crypt_alloc_buffer() uses a bioset allowing only up to BIO_MAX_VECS (256) vectors in a BIO. The dm-crypt device max_segments limit, which is not set and so default to BLK_MAX_SEGMENTS (128), must thus be respected and write BIOs split accordingly. In the case of dm-flakey, since zone append emulation is not required, the block layer zone write plugging is not used and no splitting of BIOs required. Modify the function dm_zone_bio_needs_split() to use the block layer helper function bio_needs_zone_write_plugging() to force a call to bio_split_to_limits() in dm_split_and_process_bio(). This allows DM target drivers to avoid using dm_accept_partial_bio() for write operations on zoned DM devices.

📍 영향받는 시스템

Linux Kernel (dm-crypt 및 dm-flakey 타겟을 사용하는 존드 장치 환경)

⚔️ 공격 벡터

로컬 권한을 가진 공격자가 존드 장치를 사용하는 DM 타겟에 특수하게 구성된 대용량 쓰기 요청을 보내 시스템 데드락 유도

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트

🔧 검증 코드

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

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel