🔍 CVE-2026-90138

0.0
CVSS Score
UNKNOWN
2026-09-17
2026-10-21 13:20
✅ 완료

🇰🇷 한글 설명

Linux 커널의 vsock 구성 요소에서 vsock_accept() 함수가 리스너의 sk_err 상태를 불필요하게 확인하여 발생하는 취약점입니다. 이전의 실패한 연결 시도로 인해 남은 오류 상태(EPROTO)가 새로운 연결을 거부하게 만들며, 이 과정에서 일부 전송 계층(virtio, hyperv)에서 리소스 누수가 발생할 수 있습니다.

💡 쉬운 설명

통신을 기다리는 통로에 예전에 발생했던 오류 기록이 남아 있어, 새로운 정상적인 연결 요청을 오류로 오해하고 거절하는 문제입니다. 이 과정에서 사용되지 않는 메모리 자원이 제대로 정리되지 않고 쌓이는 문제가 발생합니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: vsock: don't check the listener's sk_err in vsock_accept() Syzbot reported an issue which can be reproduced with these steps: r0 = socket(AF_VSOCK, SOCK_STREAM, 0) bind(r0, {VMADDR_CID_ANY, PORT}) connect(r0, {VMADDR_CID_LOCAL, PORT}) -> -1, EPROTO (self-connect) listen(r0, backlog) -> 0 r1 = socket(AF_VSOCK, SOCK_STREAM, 0) connect(r1, {VMADDR_CID_LOCAL, PORT}) -> 0 accept(r0) -> -1, EPROTO (stale sk_err) Basically, it creates a socket (r0) and triggers a self-connect after binding it. This self-connect fails with EPROTO because it loops back to r0 while the socket is still in the TCP_SYN_SENT state, causing it to be incorrectly dispatched to the connecting-client path. The unexpected packet type encountered there sets sk_err to EPROTO. After that, it invokes a listen() call on the same socket. This listen() call succeeds because the kernel's listening path never inspects or clears sk_err. Then, a new socket (r1) is created as a normal client and connects to r0. However, vsock_accept() rejects this incoming connection because the listener's sk_err still holds the EPROTO error from the earlier failed self-connect. This rejection causes the child socket created for r1's connection to never be freed on virtio or hyperv transports; only the VMCI transport implements pending_work to revisit and clean up a rejected socket. For a non-blocking connect(), vsock_connect() may return -EINPROGRESS immediately, and vsock_connect_timeout() can later set sk->sk_err asynchronously. Since no vsock transport ever sets sk_err on a socket while it is in TCP_LISTEN state, checking it in vsock_accept() serves no purpose and only carries forward errors left behind by earlier, unrelated connection attempts on the same socket. Remove the checks so accept() no longer rejects valid incoming connections because of a stale error, which also avoids the resource leak described above.

📍 영향받는 시스템

Linux kernel (vsock module 사용 환경)

⚔️ 공격 벡터

로컬 시스템에서 특정 순서의 소켓 작업(self-connect 유도 후 listen)을 통해 오류 상태를 유발하여 서비스 거부 또는 리소스 누수 유도

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 vsock_accept() 내의 sk_err 체크 로직을 제거해야 합니다.

🔧 검증 코드

출력된 커널 버전을 확인하여 해당 취약점이 해결된 최신 패치 버전인지 확인합니다.

Shell / Script
uname -r

💻 영향받는 소프트웨어

Linux Kernel