GNU Multiple Precision Arithmetic Library (GMP) through 6.2.1 has an mpz/inp_raw.c integer overflow and resultant buffer overflow via crafted input, leading to a segmentation fault on 32-bit platforms.
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://gmplib.org/list-archives/gmp-bugs/2021-September/005077.html | third party advisory exploit |
https://bugs.debian.org/994405 | third party advisory mailing list |
https://gmplib.org/repo/gmp-6.2/rev/561a9c25298e | third party advisory patch |
https://lists.debian.org/debian-lts-announce/2021/12/msg00001.html | third party advisory mailing list |
http://www.openwall.com/lists/oss-security/2022/10/13/3 | third party advisory mailing list |
http://seclists.org/fulldisclosure/2022/Oct/8 | third party advisory mailing list |
https://security.netapp.com/advisory/ntap-20221111-0001/ | third party advisory |
https://security.gentoo.org/glsa/202309-13 | vendor advisory |