An use-after-free vulnerability was discovered in gocr through 0.53-20200802 in context_correction() in pgm2asc.c.
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://bugzilla.redhat.com/show_bug.cgi?id=1962854 | issue tracking third party advisory |
https://sourceforge.net/p/jocr/bugs/40/ | third party advisory exploit |
https://sourceforge.net/p/jocr/bugs/41/ | third party advisory exploit |
https://security.gentoo.org/glsa/202401-28 | vendor advisory |