In PHP versions 8.1.x below 8.1.8, when fileinfo functions, such as finfo_buffer, due to incorrect patch applied to the third party code from libmagic, incorrect function may be used to free allocated memory, which may lead to heap corruption.
The product calls free() on a pointer to memory that was not allocated using associated heap allocation functions such as malloc(), calloc(), or realloc().
The product writes data past the end, or before the beginning, of the intended buffer.
Link | Tags |
---|---|
https://bugs.php.net/bug.php?id=81723 | patch exploit third party advisory issue tracking |
https://security.netapp.com/advisory/ntap-20220826-0008/ | third party advisory |
https://security.gentoo.org/glsa/202209-20 | third party advisory vendor advisory |