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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 9 | gmp | 1:6.2.0-13.el9 | RLSA-2023:6661 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 2 (CBL-Mariner) | gmp | 6.2.1-2 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | gmp | 6.2.1-r4 | — |
Advisories 27
- WID-SEC-2023-2853 Red Hat Enterprise Linux: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 8, 2026
- ALSA-2023:6661 Low: gmp security and enhancement update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2024:3214 Moderate: gmp security update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2024:3214 Red Hat Security Advisory: gmp security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2024:1412 Red Hat Security Advisory: gmp update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2024:1102 Red Hat Security Advisory: gmp security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2023:6661 Red Hat Security Advisory: gmp security and enhancement update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- SSA-398330 SSA-398330: Vulnerabilities in the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP >= V3.1.0 and < V3.1.5 Siemens ProductCERT · Oct 13, 2026
- WID-SEC-2023-2031 Xerox FreeFlow Print Server: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 11, 2026
- USN-5672-2 gmp vulnerability Ubuntu Security Notices (USN) · Jun 29, 2026
- USN-5672-1 GMP vulnerability Ubuntu Security Notices (USN) · Jun 25, 2026
- RLSA-2023:6661 Low: gmp security and enhancement update Rocky Linux Security Advisories · Jun 25, 2026
- WID-SEC-2024-1226 Red Hat OpenShift: Mehrere Schwachstellen BSI CERT-Bund (WID) · May 11, 2026
- DLA-2837-1 gmp - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:11636-1 gmp-devel-32bit-6.2.1-4.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:3946-1 Security update for gmp SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:3878-1 Security update for gmp SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:3946-1 Security update for gmp SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2024-1086 IBM QRadar SIEM: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 19, 2025
- ICSA-23-348-10 Siemens SIMATIC S7-1500 CISA ICS & IT advisories · Aug 12, 2025
- VDE-2022-010 PHOENIX CONTACT: Multiple Linux component vulnerabilities fixed in latest AXC F x152 LTS release CERT@VDE · May 22, 2025
- openSUSE-SU-2021:1569-1 Security update for gmp SUSE / openSUSE Security Updates · May 7, 2025
- WID-SEC-2024-1307 Red Hat OpenShift Service Mesh Containers: Mehrere Schwachstellen BSI CERT-Bund (WID) · Feb 5, 2025
- ELSA-2024-3214 Moderate: gmp security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · May 23, 2024
- ALAS2-2023-2369 Low: gmp security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Dec 4, 2023
- ELSA-2023-6661 Low: gmp security and enhancement update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Nov 11, 2023
- ALAS2023-2023-033 Low: gmp security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Feb 22, 2023
References
- https://gmplib.org/list-archives/gmp-bugs/2021-September/005077.html
- https://bugs.debian.org/994405
- https://gmplib.org/repo/gmp-6.2/rev/561a9c25298e
- [debian-lts-announce] 20211202 [SECURITY] [DLA 2837-1] gmp security update mailing-list
- [oss-security] 20221013 Re: sagemath denial of service with abort() in gmp: overflow in mpz type mailing-list
- 20221016 Re: over 2000 packages depend on abort()ing libgmp mailing-list
- https://security.netapp.com/advisory/ntap-20221111-0001/
- GLSA-202309-13 vendor-advisory