portage-ng / portage / dev-libs / gmp / 6.3.0-r2
portage-ng glsa
1 advisory reference dev-libs/gmp · none place version 6.3.0-r2 in a vulnerable range
▸ GLSA 202309-13 GMP: Buffer Overflow Vulnerability this version unaffected normal remote 2023-09-29

A buffer overflow vulnerability has been found in GMP which could result in denial of service.

Announced
2023-09-29
Revised
2023-09-29
Access
remote
Bugs
#823804
Advisory
https://security.gentoo.org/glsa/202309-13

Affected packages

PackageArchVulnerableUnaffected
dev-libs/gmp*< 6.2.1-r2>= 6.2.1-r2

Background

The GNU Multiple Precision Arithmetic Library is a library forarbitrary-precision arithmetic on different types of numbers.

Description

There is an integer overflow leading to a buffer overflow when processing untrusted input via GMP's mpz_inp_raw function.

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.

Resolution

All GMP users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-libs/gmp-6.2.1-r2"

References