🔍 CVE-2026-90008

7.8
CVSS Score
HIGH
2026-09-16
2026-10-19 09:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 megaraid_sas 드라이버에서 NVMe 요청 크기가 PRP 체인 프레임의 경계를 확인하지 않아 발생하는 버퍼 오버플로 취약점입니다. 대용량 MDTS를 지원하는 드라이브 사용 시, DMA 풀 버퍼의 범위를 초과하여 인접한 메모리 영역을 오염시키거나 커널 페이지 폴트를 유발할 수 있습니다.

💡 쉬운 설명

데이터를 저장하는 장치와 통신할 때, 데이터를 기록할 메모리 공간의 크기를 제대로 확인하지 않아 옆에 있는 다른 데이터를 덮어쓰거나 시스템을 멈추게 할 수 있는 문제입니다. 이는 시스템의 안정성을 해치거나 데이터 오류를 일으킬 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: scsi: megaraid_sas: Limit NVMe request size to the PRP chain frame megasas_make_prp_nvme() builds a command's PRP list in cmd->sg_frame, a DMA pool buffer of instance->max_chain_frame_sz bytes, spending one entry per NVMe page of the transfer plus one per page of the buffer for the chain pointer. The loop runs until the transfer is described and never checks the buffer bound. max_hw_sectors comes straight from the MDTS the firmware reports for the drive. On drives with a large MDTS the only thing keeping the list inside the buffer was the block layer default of 1280 KiB, which needs 320 entries, which fit into a 4 KiB frame as that holds 512. But since commit 9b8b84879d4a ("block: Increase BLK_DEF_MAX_SECTORS_CAP") that default is 4 MiB, and such a transfer needs 1025 entries, so the list runs a full page past the end of the frame: sd 1:0:1:0: [sdb] tag#630 page boundary ptr_sgl: 0x00000000ba62d13f BUG: unable to handle page fault for address: ff663bcb81e7c000 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page RIP: 0010:megasas_build_and_issue_cmd_fusion+0xeaa/0x1870 [megaraid_sas] If the page after the frame happens to be mapped, the overrun does not fault but silently corrupts the neighbouring pool entry, which is another in-flight command's PRP list. Cap max_hw_sectors at what the chain frame can describe, less one page for transfers that do not start on a page boundary and so need one entry more. This is the megaraid_sas counterpart of commit 04631f55afc5 ("scsi: mpt3sas: Limit NVMe request size to 2 MiB"), but derives the limit from max_chain_frame_sz rather than hardcoding it.

📍 영향받는 시스템

Linux kernel (megaraid_sas 드라이버를 사용하는 시스템)

⚔️ 공격 벡터

대용량 MDTS(Maximum Data Transfer Size)를 지원하는 NVMe 드라이브를 통해 비정상적으로 큰 데이터 전송 요청을 보냄

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 megaraid_sas의 PRP 리스트 생성 로직을 수정해야 합니다.

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인합니다.

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