An exploitable integer overflow vulnerability exists in the flattenIncrementally function in the xcf2png and xcf2pnm binaries of xcftools, version 1.0.7. An integer overflow can occur while walking through tiles that could be exploited to corrupt memory and execute arbitrary code. In order to trigger this vulnerability, a victim would need to open a specially crafted XCF file.
The product performs a calculation to determine how much memory to allocate, but an integer overflow can occur that causes less memory to be allocated than expected, leading to a buffer overflow.
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://lists.debian.org/debian-lts-announce/2021/02/msg00014.html | third party advisory mailing list |
https://lists.debian.org/debian-lts-announce/2021/03/msg00008.html | third party advisory mailing list |
https://talosintelligence.com/vulnerability_reports/TALOS-2019-0878 | third party advisory exploit |
https://www.talosintelligence.com/vulnerability_reports/TALOS-2019-0878 | third party advisory exploit |