Xpdf prior to version 4.04 contains an integer overflow in the JBIG2 decoder (JBIG2Stream::readTextRegionSeg() in JBIG2Stream.cc). Processing a specially crafted PDF file or JBIG2 image could lead to a crash or the execution of arbitrary code. This is similar to the vulnerability described by CVE-2021-30860 (Apple CoreGraphics).
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 |
---|---|
http://www.xpdfreader.com/security-fixes.html | vendor advisory |
https://dl.xpdfreader.com/xpdf-4.04.tar.gz | vendor advisory |
https://www.cve.org/CVERecord?id=CVE-2021-30860 | third party advisory |
https://googleprojectzero.blogspot.com/2021/12/a-deep-dive-into-nso-zero-click.html | third party advisory |
https://github.com/jeffssh/CVE-2021-30860 | third party advisory |
http://www.openwall.com/lists/oss-security/2022/09/02/11 | third party advisory mailing list |
https://github.com/zmanion/Vulnerabilities/blob/main/CVE-2022-38171.md | third party advisory patch |