Skip to content
OpenAdvisories
Unscored CVE-2021-43618 EUVD-2021-30531GHSA-mfg4-w44m-wr4g

GNU Multiple Precision Arithmetic Library (GMP) through 6.2.1 has an mpz/inp_raw.c integer overflow and resultant buffer overflow via craft…

Published Nov 15, 2021 · Updated Oct 14, 2026 · Assigned by mitre

Description

GNU Multiple Precision Arithmetic Library (GMP) through 6.2.1 has an mpz/inp_raw.c integer overflow and resultant buffer overflow via crafted input, leading to a segmentation fault on 32-bit platforms.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 gmp 2:6.2.1+dfsg-3 —
Debian 13 gmp 2:6.2.1+dfsg-3 —
Debian 12 gmp 2:6.2.1+dfsg-3 —
Debian 9 gmp 2:6.1.2+dfsg-1+deb9u1 DLA-2837-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS gmp 2:6.2.0+dfsg-4ubuntu0.1 USN-5672-1
Ubuntu 18.04 LTS gmp 2:6.1.2+dfsg-2ubuntu0.1 USN-5672-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS gmp 2:6.1.0+dfsg-2ubuntu0.1~esm1 USN-5672-1
Ubuntu Pro 14.04 LTS gmp 2:5.1.3+dfsg-1ubuntu1+esm1 USN-5672-2
ReleasePackageFixed inAdvisory
RHEL 9 gmp +2 1:6.2.0-13.el9 RHSA-2023:6661
RHEL 8 gmp +2 1:6.1.2-11.el8 RHSA-2024:3214
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 8.8 EUS gmp +2 1:6.1.2-11.el8_8.1 RHSA-2024:1412
RHEL 8.6 EUS gmp +2 1:6.1.2-11.el8_6.1 RHSA-2024:1102

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 gmp +2 1:6.2.0-13.el9 ALSA-2023:6661
AlmaLinux 8 gmp +2 1:6.1.2-11.el8 ALSA-2024:3214

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 gmp 1:6.2.0-13.el9 RLSA-2023:6661
ReleasePackageFixed inAdvisory
SLES 15 SP3 gmp 6.1.2-4.9.1 SUSE-SU-2021:3946-1
SLES 15 SP2 gmp 6.1.2-4.9.1 SUSE-SU-2021:3946-1
SLES 12 SP5 gmp 5.1.3-4.3.1 SUSE-SU-2021:3878-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP5 gmp 5.1.3-4.3.1 SUSE-SU-2021:3878-1
SLE Micro 5.1 gmp 6.1.2-4.9.1 SUSE-SU-2021:3946-1
SLE Micro 5.0 gmp 6.1.2-4.9.1 SUSE-SU-2021:3946-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed gmp 6.2.1-4.1 openSUSE-SU-2024:11636-1
openSUSE Leap 15.3 gmp 6.1.2-4.9.1 openSUSE-SU-2021:3946-1
openSUSE Leap 15.2 gmp 6.1.2-lp152.6.6.1 openSUSE-SU-2021:1569-1
ReleasePackageFixed inAdvisory
Alpine v3.24 gmp 6.2.1-r1 —
Alpine v3.23 gmp 6.2.1-r1 —
Alpine v3.22 gmp 6.2.1-r1 —
Alpine v3.21 gmp 6.2.1-r1 —
Alpine v3.20 gmp 6.2.1-r1 —
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 gmp 6.2.1-r1 —
Alpine v3.18 gmp 6.2.1-r1 —
Alpine v3.17 gmp 6.2.1-r1 —
Alpine v3.16 gmp 6.2.1-r1 —
Alpine v3.15 gmp 6.2.1-r1 —
Alpine v3.14 gmp 6.2.1-r1 —
Alpine v3.13 gmp 6.2.1-r1 —
Alpine v3.12 gmp 6.2.1-r1 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 gmp +3 1:6.2.1-2.amzn2023.0.2 ALAS2023-2023-033
Amazon Linux 2 gmp +2 1:6.0.0-15.amzn2.0.3 ALAS2-2023-2369

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) gmp 6.2.1-2 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 gmp +2 1:6.2.0-13.el9 ELSA-2023-6661
Oracle Linux 8 gmp +2 1:6.1.2-11.el8 ELSA-2024-3214

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling gmp 6.2.1-r4 —

Advisories 27

References