🇰🇷 한글 설명
Linux 커널의 nvme-tcp 구성 요소에서 R2T(Ready to Transfer) 요청 시 데이터 방향을 확인하지 않아 발생하는 호스트 메모리 정보 유출 취약점입니다. 공격자가 READ 명령에 대해 R2T를 보내면, 호스트는 읽기 대상 버퍼에 담긴 커널의 민감한 데이터를 컨트롤러로 전송하게 됩니다.
💡 쉬운 설명
컴퓨터가 데이터를 읽으려고 할 때, 나쁜 장치가 중간에서 가로채기 위해 특수한 요청을 보내면 컴퓨터 메모리에 있던 중요한 정보가 유출될 수 있는 문제입니다. 이로 인해 시스템 내부의 민감한 데이터가 공격자에게 노출될 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
nvme-tcp: fix host memory disclosure on R2T for a read command
nvme_tcp_handle_r2t() does not check the direction of the request the
R2T refers to. A malicious controller can send an R2T for a READ and
the host will answer it: nvme_tcp_setup_h2c_data_pdu() builds the
H2CData header and nvme_tcp_try_send_data() sends the request's data
buffer. That buffer is the READ destination, so its contents go to the
controller.
The command then completes normally and nothing is logged.
Against a test controller that answers every READ with an R2T, a 4096
byte buffered read returned all 4096 bytes, split over two R2Ts. The
pages contained stale kernel data, including an array of struct page
pointers.
Reject an R2T for a request that is not a write.
📍 영향받는 시스템
Linux kernel (nvme-tcp driver 사용 환경)
⚔️ 공격 벡터
악의적인 NVMe-over-TCP 컨트롤러가 READ 명령에 대해 부적절한 R2T를 전송하여 호스트 메모리 데이터를 탈취
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 R2T 요청 시 쓰기 명령 여부를 확인하도록 수정
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인