🇰🇷 한글 설명
Linux 커널의 nvmet-auth 구성 요소에서 전송 길이(tl) 검증 없이 해시 길이(hl) 및 DH 값 길이(dhvlen)를 사용하여 배열에 접근하는 취약점이 발견되었습니다. 공격자가 조작된 DHCHAP_REPLY 메시지를 보내면 힙 영역에서 경계 외 읽기(Out-of-Bounds Read)가 발생하여 시스템 정보가 유출될 수 있습니다.
💡 쉬운 설명
컴퓨터가 데이터를 읽을 때 실제 데이터 크기보다 더 많은 범위를 읽으려고 시도하여 발생하는 보안 결함입니다. 해커가 특수하게 만든 메시지를 보내면 컴퓨터 내부의 민감한 정보를 몰래 훔쳐볼 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
nvmet-auth: validate reply message payload bounds against transfer length
nvmet_auth_reply() accesses the variable-length rval[] array using
attacker-controlled hl (hash length) and dhvlen (DH value length) fields
without verifying they fit within the allocated buffer of tl bytes.
A malicious NVMe-oF initiator can craft a DHCHAP_REPLY message with a
small transfer length but large hl/dhvlen values, causing out-of-bounds
heap reads when the target processes the DH public key (rval + 2*hl) or
performs the host response memcmp.
With DH authentication configured, the OOB pointer is passed directly to
sg_init_one() and read by crypto_kpp_compute_shared_secret(), reaching
up to 526 bytes past the buffer. This is exploitable pre-authentication.
Add bounds validation ensuring sizeof(*data) + 2*hl + dhvlen <= tl before
any access to the variable-length fields.
Discovered by Atuin - Automated Vulnerability Discovery Engine.
📍 영향받는 시스템
DH 인증이 구성된 NVMe-oF를 사용하는 Linux 커널 시스템
⚔️ 공격 벡터
악의적인 NVMe-oF 이니시에이터가 조작된 DHCHAP_REPLY 메시지를 전송하여 공격
🛡️ 대응 방법
데이터 접근 전 전송 길이(tl)와 필드 길이(hl, dhvlen) 간의 경계 검증 로직이 포함된 최신 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 패치된 최신 보안 업데이트 버전인지 확인
📊 CVSS Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
💻 영향받는 소프트웨어
IBM Security Verify Access