kcve.ai취약점 정보 · 내 자산 확인

CVE-2021-22901 curl 7.75.0 through 7.76.1 suffers from a use-after-free vulnerability resulting in already freed m…

설명

curl 7.75.0 through 7.76.1 suffers from a use-after-free vulnerability resulting in already freed memory being used when a TLS 1.3 session ticket arrives over a connection. A malicious server can use this in rare unfortunate circumstances to potentially reach remote code execution in the client. When libcurl at run-time sets up support for TLS 1.3 session tickets on a connection using OpenSSL, it stores pointers to the transfer in-memory object for later retrieval when a session ticket arrives. If the connection is used by multiple transfers (like with a reused HTTP/1.1 connection or multiplexed HTTP/2 connection) that first transfer object might be freed before the new session is established on that connection and then the function will access a memory buffer that might be freed. When using that memory, libcurl might even call a function pointer in the object, making it possible for a remote code execution if the server could somehow manage to get crafted memory content into the correct place in memory.

컬 7.75.0부터 7.76.1까지 해제 후 사용(use-after-free) 취약점이 발생하여 TLS 1.3 세션 티켓이 연결에 도착했을 때 이미 사용 중인 메모리가 해제되었습니다. 악의적인 서버는 이를 드문 불행한 상황에서도 클라이언트에서 원격 코드 실행에 잠재적으로 도달할 수 있습니다. 런타임에 libcurl이 OpenSSL을 사용하여 연결에서 TLS 1.3 세션 티켓에 대한 지원을 설정할 때, 세션 티켓이 도착할 때 나중에 검색하기 위해 전송 인메모리 객체에 대한 포인터를 저장합니다. 만약 연결이 다중 전송에 의해 사용된다면(재사용된 HTTP/1.1 연결 또는 다중화된 HTTP/2 연결과 같이), 그 새로운 세션이 그 연결에서 설정되기 전에 첫 번째 전송 객체가 해제될 수 있고, 그 다음 함수는 해제될 수 있는 메모리 버퍼에 접근할 것이다. 이 메모리를 사용할 때, libcurl은 객체의 함수 포인터를 호출할 수도 있으며, 서버가 어떻게든 메모리의 올바른 위치에 만들어진 메모리 콘텐츠를 가져올 수 있다면 원격 코드 실행이 가능하게 된다.

영향 받는 제품 제품 1개

  • https://github.com/curl/curl

    영향 받는 버전

    • 7.75.0 이상 7.76.1 이하

    해결 버전

    해결된 버전 정보가 없습니다.

참고 자료 10건

‹ 목록

점검 지원 범위 문의

도입 문의