🔍 CVE-2022-50756

7.8
CVSS Score
HIGH
2025-12-24
2026-10-15 22:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 nvme-pci 드라이버에서 mempool 할당 크기 계산 오류로 인해 메모리 오염이 발생할 수 있는 취약점입니다. PRP 리스트 개수를 계산할 때 단위를 바이트로 변환하지 않아, 최악의 경우 필요한 리스트보다 적은 메모리가 할당되어 메모리 범위를 벗어나는 쓰기 작업이 발생할 수 있습니다.

💡 쉬운 설명

컴퓨터의 저장 장치를 관리하는 프로그램이 메모리 크기를 잘못 계산하여, 정해진 공간보다 더 많은 데이터를 쓰려고 시도하는 문제입니다. 이로 인해 시스템의 중요한 데이터가 망가질 수 있는 위험이 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: nvme-pci: fix mempool alloc size Convert the max size to bytes to match the units of the divisor that calculates the worst-case number of PRP entries. The result is used to determine how many PRP Lists are required. The code was previously rounding this to 1 list, but we can require 2 in the worst case. In that scenario, the driver would corrupt memory beyond the size provided by the mempool. While unlikely to occur (you'd need a 4MB in exactly 127 phys segments on a queue that doesn't support SGLs), this memory corruption has been observed by kfence.

📍 영향받는 시스템

nvme-pci 드라이버를 사용하는 Linux 커널 버전 (SGL을 지원하지 않는 특정 설정 환경)

⚔️ 공격 벡터

특정 조건(4MB 크기, 127개 물리 세그먼트 등)을 충족하는 NVMe 입출력 요청을 통한 메모리 오염

🛡️ 대응 방법

nvme-pci의 mempool 할당 로직이 수정된 최신 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