SDL (Simple DirectMedia Layer) through 2.0.12 has an Integer Overflow (and resultant SDL_memcpy heap corruption) in SDL_BlitCopy in video/SDL_blit_copy.c via a crafted .BMP file.
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
Link | Tags |
---|---|
https://bugzilla.libsdl.org/show_bug.cgi?id=5200 | issue tracking vendor advisory |
https://hg.libsdl.org/SDL/rev/3f9b4e92c1d9 | patch vendor advisory |
https://lists.debian.org/debian-lts-announce/2021/01/msg00024.html | third party advisory mailing list |
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5FS32YCEJLQ2FYUWSWYI2ZMQWQEAWJNR/ | mailing list third party advisory vendor advisory |
https://security.gentoo.org/glsa/202107-55 | third party advisory vendor advisory |
https://www.starwindsoftware.com/security/sw-20210325-0001/ | third party advisory |
https://lists.debian.org/debian-lts-announce/2023/02/msg00008.html | third party advisory mailing list |