Gentoo: GLSA-202309-13: GMP: Buffer Overflow Vulnerability
Summary
There is an integer overflow leading to a buffer overflow when
processing untrusted input via GMP's mpz_inp_raw function.
Resolution
All GMP users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-libs/gmp-6.2.1-r2"
References
[ 1 ] CVE-2021-43618
https://nvd.nist.gov/vuln/detail/CVE-2021-43618
Availability
This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:
https://security.gentoo.org/glsa/202309-13
Concerns
Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users' machines is of utmost
importance to us. Any security concerns should be addressed to
security@gentoo.org or alternatively, you may file a bug at
https://bugs.gentoo.org.
Background
The GNU Multiple Precision Arithmetic Library is a library forarbitrary-
precision arithmetic on different types of numbers.
Affected Packages
Package Vulnerable Unaffected
------------ ------------ ------------
dev-libs/gmp < 6.2.1-r2 >= 6.2.1-r2
Impact
Untrusted input can cause a denial of service via segmentation fault.
Workaround
Users can ensure no untrusted input is passed into GMP's mpz_inp_raw
function.