CVE-2017-1000257 An IMAP FETCH response line indicates the size of the returned data, in number of bytes. When that…
설명
An IMAP FETCH response line indicates the size of the returned data, in number of bytes. When that response says the data is zero bytes, libcurl would pass on that (non-existing) data with a pointer and the size (zero) to the deliver-data function. libcurl's deliver-data function treats zero as a magic number and invokes strlen() on the data to figure out the length. The strlen() is called on a heap based buffer that might not be zero terminated so libcurl might read beyond the end of it into whatever memory lies after (or just crash) and then deliver that to the application as if it was actually downloaded.
IMAP FETCH 응답 라인은 반환된 데이터의 크기를 바이트 수로 나타냅니다. 이 응답에서 데이터가 0바이트라고 하면, libcurl은 포인터와 크기(0)를 가진 (존재하지 않는) 데이터를 deliver-data 함수에 전달합니다. libcurl의 deliver-data 함수는 0을 매직 숫자로 취급하고, 길이를 알아내기 위해 데이터에 strlen()을 호출합니다. strlen() 은 0이 아닐 수도 있는 힙 기반 버퍼에서 호출되므로 libcurl은 그 끝 부분을 넘어서서 어떤 메모리가 놓이든 (또는 충돌이 발생하더라도) 읽어들이고 실제로 다운로드 된 것처럼 응용 프로그램에 전달합니다.
영향 받는 제품 제품 2개
-
NVD 기준
debian
debian linux
영향 받는 버전
- 8.0
- 9.0
해결 버전
해결된 버전 정보가 없습니다.
-
NVD 기준
haxx
libcurl
영향 받는 버전
- 7.20.0 이상 7.56.0 이하
해결 버전
해결된 버전 정보가 없습니다.
참고 자료 8건
- access.redhat.com https://access.redhat.com/errata/RHSA-2017:3263 (새 창)
- access.redhat.com https://access.redhat.com/errata/RHSA-2018:2486 (새 창)
- access.redhat.com https://access.redhat.com/errata/RHSA-2018:3558 (새 창)
- curl.haxx.se https://curl.haxx.se/docs/adv_20171023.html (새 창)
- security.gentoo.org https://security.gentoo.org/glsa/201712-04 (새 창)
- debian.org http://www.debian.org/security/2017/dsa-4007 (새 창)
- securityfocus.com http://www.securityfocus.com/bid/101519 (새 창)
- securitytracker.com http://www.securitytracker.com/id/1039644 (새 창)