GMP: Buffer Overflow Vulnerability — GLSA 202309-13

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

Affected packages

dev-libs/gmp on all architectures
Affected versions < 6.2.1-r2
Unaffected versions >= 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

Release date
September 29, 2023

Latest revision
September 29, 2023: 1

Severity
normal

Exploitable
remote

Bugzilla entries