🔍 CVE-2025-38140

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

🇰🇷 한글 설명

Linux 커널의 dm(Device Mapper) 구성 요소에서 존 쓰기 플러그(zone write plug)를 사용하는 장치의 스와핑 테이블 제한 관련 취약점이 발견되었습니다. 기존 존 설정이 변경될 때 테이블 정보가 일치하지 않아 bdev_zone_is_seq() 함수가 잘못된 메모리를 읽는 오류가 발생할 수 있습니다. 이로 인해 시스템 안정성이 저해되거나 예기치 않은 오류가 발생할 수 있습니다.

💡 쉬운 설명

리눅스 시스템의 저장 장치 관리 기능에서 설정 값이 서로 맞지 않아 컴퓨터가 잘못된 메모리 영역을 읽으려 시도하는 문제입니다. 이로 인해 시스템에 오류가 발생하거나 불안정해질 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: dm: limit swapping tables for devices with zone write plugs dm_revalidate_zones() only allowed new or previously unzoned devices to call blk_revalidate_disk_zones(). If the device was already zoned, disk->nr_zones would always equal md->nr_zones, so dm_revalidate_zones() returned without doing any work. This would make the zoned settings for the device not match the new table. If the device had zone write plug resources, it could run into errors like bdev_zone_is_seq() reading invalid memory because disk->conv_zones_bitmap was the wrong size. If the device doesn't have any zone write plug resources, calling blk_revalidate_disk_zones() will always correctly update device. If blk_revalidate_disk_zones() fails, it can still overwrite or clear the current disk->nr_zones value. In this case, DM must restore the previous value of disk->nr_zones, so that the zoned settings will continue to match the previous value that it fell back to. If the device already has zone write plug resources, blk_revalidate_disk_zones() will not correctly update them, if it is called for arbitrary zoned device changes. Since there is not much need for this ability, the easiest solution is to disallow any table reloads that change the zoned settings, for devices that already have zone plug resources. Specifically, if a device already has zone plug resources allocated, it can only switch to another zoned table that also emulates zone append. Also, it cannot change the device size or the zone size. A device can switch to an error target.

📍 영향받는 시스템

Linux Kernel (dm-target 관련 기능 사용 시)

⚔️ 공격 벡터

로컬 권한을 가진 사용자가 장치 매퍼(Device Mapper)의 존 설정을 변경하는 테이블 재로드 시도

🛡️ 대응 방법

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

🔧 검증 코드

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

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