A use-after-free in the _zip_dirent_read function of zip_dirent.c in libzip 1.2.0 allows attackers to have an unspecified impact by attempting to unzip a malformed ZIP archive. NOTE: the discoverer states "This use-after-free is triggered prior to the double free reported in CVE-2017-12858."
The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.
Link | Tags |
---|---|
https://libzip.org/libzip-discuss/ | release notes vendor advisory |
https://github.com/nih-at/libzip/issues/5 | third party advisory |
https://github.com/nih-at/libzip/commit/2217022b7d1142738656d891e00b3d2d9179b796 | third party advisory patch |