🔍 CVE-2026-46135

9.8
CVSS Score
CRITICAL
2026-05-28
2026-10-19 20:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 nvmet-tcp 구성 요소에서 ICReq 처리와 큐 해제 작업 간의 경쟁 상태(Race Condition) 취약점이 발견되었습니다. 공격자가 연결 요청 후 즉시 연결을 종료하면, 상태 업데이트 과정에서 큐 참조 횟수가 잘못 관리되어 이미 해제된 메모리에 대해 중복 해제(Double Free)가 발생할 수 있습니다.

💡 쉬운 설명

컴퓨터가 통신 연결을 끊는 과정에서 데이터 처리가 꼬여 발생하는 문제입니다. 이로 인해 시스템이 이미 삭제한 데이터를 다시 삭제하려고 시도하면서 시스템이 충돌하거나 보안 문제가 생길 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: nvmet-tcp: fix race between ICReq handling and queue teardown nvmet_tcp_handle_icreq() updates queue->state after sending an Initialization Connection Response (ICResp), but it does so without serializing against target-side queue teardown. If an NVMe/TCP host sends an Initialization Connection Request (ICReq) and immediately closes the connection, target-side teardown may start in softirq context before io_work drains the already buffered ICReq. In that case, nvmet_tcp_schedule_release_queue() sets queue->state to NVMET_TCP_Q_DISCONNECTING and drops the queue reference under state_lock. If io_work later processes that ICReq, nvmet_tcp_handle_icreq() can still overwrite the state back to NVMET_TCP_Q_LIVE. That defeats the DISCONNECTING-state guard in nvmet_tcp_schedule_release_queue() and allows a later socket state change to re-enter teardown and issue a second kref_put() on an already released queue. The ICResp send failure path has the same problem. If teardown has already moved the queue to DISCONNECTING, a send error can still overwrite the state with NVMET_TCP_Q_FAILED, again reopening the window for a second teardown path to drop the queue reference. Fix this by serializing both post-send state transitions with state_lock and bailing out if teardown has already started. Use -ESHUTDOWN as an internal sentinel for that bail-out path rather than propagating it as a transport error like -ECONNRESET. Keep nvmet_tcp_socket_error() setting rcv_state to NVMET_TCP_RECV_ERR before honoring that sentinel so receive-side parsing stays quiesced until the existing release path completes.

📍 영향받는 시스템

Linux kernel (nvmet-tcp 모듈을 사용하는 시스템)

⚔️ 공격 벡터

NVMe/TCP 호스트가 연결 요청(ICReq)을 보낸 직후 즉시 연결을 종료하여 경쟁 상태 유도

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 상태 전환 시 state_lock을 사용하도록 수정

🔧 검증 코드

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

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

💻 영향받는 소프트웨어

Linux Kernel