A heap use-after-free flaw was found in curl versions from 7.59.0 through 7.61.1 in the code related to closing an easy handle. When closing and cleaning up an easy handle in the Curl_close()
function, the library code first frees a struct (without nulling the pointer) and might then subsequently erroneously write to a struct field within that already freed struct.
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.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Curl | Haxx | 7.59.0 (including) | 7.62.0 (excluding) |
JBoss Core Services Apache HTTP Server 2.4.29 SP2 | RedHat | * | |
Curl | Ubuntu | cosmic | * |
Curl | Ubuntu | devel | * |
Curl | Ubuntu | upstream | * |