Lucene search

K
gentooGentoo FoundationGLSA-202309-13
HistorySep 29, 2023 - 12:00 a.m.

GMP: Buffer Overflow Vulnerability

2023-09-2900:00:00
Gentoo Foundation
security.gentoo.org
13
gmp buffer overflow
untrusted input
denial of service
upgrade required

5 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:N/I:N/A:P

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

0.006 Low

EPSS

Percentile

77.8%

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"
OSVersionArchitecturePackageVersionFilename
Gentooanyalldev-libs/gmp< 6.2.1-r2UNKNOWN

5 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:N/I:N/A:P

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

0.006 Low

EPSS

Percentile

77.8%