[ GLSA 202309-13 ] GMP: Buffer Overflow Vulnerability

[email protected] Fri, 29 Sep 2023 13:03:03 -0000
Newsgroups gmane.linux.gentoo.announce
Message-ID <169599258397.7.3291677576782224497@eaa400207d9c>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 202309-13
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                           https://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

 Severity: Normal
    Title: GMP: Buffer Overflow Vulnerability
     Date: September 29, 2023
     Bugs: #823804
       ID: 202309-13

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Synopsis
========

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

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

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
==========

[ 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
[email protected] or alternatively, you may file a bug at
https://bugs.gentoo.org.

License
=======

Copyright 2023 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.

https://creativecommons.org/licenses/by-sa/2.5
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEpqTA6ABLMxh/aChGFMQkOaVy+9kFAmUWywcACgkQFMQkOaVy
+9kfwRAArSfc9H1dmtsyoC5K2BKyzIWSojPvF6rpGvDbaCx1QyO2Kkve9sVxnaQl
08fgDFCqoFcK8dRBZU76JuE74WCzxcXJBhxDbfTs9MEupWE6pu7CUc03auroaIeV
CfuDEFBcwozHuN718hVm3opOart8YSCIvWgqEJ+06JOBFy0lVn5WCeLLG3pVTYBw
ZJMlpJxSrN9CdCrfgrrKXHegweNLDZTCloA9D3gK5YhbK74F/ro3LguErxXBdBQo
iCNp9yH6AqTgArPWLWHpHJPRJy3FWgDrifr9U0JrP2GW3GA/0t95WOyTVzjkN4Iq
T+jnOURr/XPR9/UumJGX/c0rCT13lDk13kKR980I204d0AgHvsmn8Q5/agVzxWb5
X7KaPJ68NKU7ZF0rvHFv3/d9F0XnTNbm4F1+aC74+shVwtIIjh8kFumyM3i3Fw8D
aTLf8/rRydSevP7a/foTVmewFEoIoH9Tr6AS1m2jALF64CrRPasSE1xnUvrGX2qu
h2IHfbJrfXqO7i5E+lCO9MT6hKK3Mlrk0MVxwIzIugluvv3aOyoaPB8oAvWjJn0O
Ey69wurLqH+NMFgIezw7UG4ElInqfBzOLM5XVRkOTkfADYioO0RZSwPH3Cr3vnpt
zkU7XKrc45kHqRT6rXuSMtXGh/Sn8qNJ7d5XidQG61ZdxMIl06M=
=4/Pb
-----END PGP SIGNATURE-----