🔍 CVE-2022-50550

5.5
CVSS Score
MEDIUM
2025-10-07
2026-11-05 21:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 blk-iolatency에서, gendisk 초기화 후 add_disk()가 실패하면(예: loop 장치의 잘못된 마이너 번호 지정) iolatency가 초기화된 상태로 정리되지 않아 메모리 누수가 발생합니다. 수정은 blkcg_exit_disk()에서 rq_qos_exit()를 추가 호출하여 정리하는 것입니다.

💡 쉬운 설명

디스크 장치를 등록하다 실패했을 때 일부 메모리가 반환되지 않고 남아 시간이 지나면 시스템 메모리가 점점 줄어듭니다. 이 문제는 커널 업데이트로 해결됩니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: blk-iolatency: Fix memory leak on add_disk() failures When a gendisk is successfully initialized but add_disk() fails such as when a loop device has invalid number of minor device numbers specified, blkcg_init_disk() is called during init and then blkcg_exit_disk() during error handling. Unfortunately, iolatency gets initialized in the former but doesn't get cleaned up in the latter. This is because, in non-error cases, the cleanup is performed by del_gendisk() calling rq_qos_exit(), the assumption being that rq_qos policies, iolatency being one of them, can only be activated once the disk is fully registered and visible. That assumption is true for wbt and iocost, but not so for iolatency as it gets initialized before add_disk() is called. It is desirable to lazy-init rq_qos policies because they are optional features and add to hot path overhead once initialized - each IO has to walk all the registered rq_qos policies. So, we want to switch iolatency to lazy init too. However, that's a bigger change. As a fix for the immediate problem, let's just add an extra call to rq_qos_exit() in blkcg_exit_disk(). This is safe because duplicate calls to rq_qos_exit() become noop's.

📍 영향받는 시스템

수정 전의 Linux 커널 (blk-iolatency를 사용하는 블록 계층 구성의 시스템)

⚔️ 공격 벡터

로컬 사용자가 잘못된 설정으로 장치 등록을 반복 실패시켜 커널 메모리를 누적 소모하게 만들 수 있으며, 주로 서비스 거부(DoS) 위험입니다.

🛡️ 대응 방법

배포판이 제공하는 최신 Linux 커널 보안/안정화 업데이트를 설치하고 재부팅합니다.

🔧 검증 코드

출력된 커널 버전을 배포판 보안 공지에서 CVE-2022-50550 수정이 포함된 버전과 비교하여, 수정 버전 이상이면 패치된 것이고 이전 버전이면 업데이트가 필요합니다.

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