Skip to content
OpenAdvisories
Medium · 5.9 CVE-2025-0838 EUVD-2025-4520GHSA-m9gf-vf48-rg58

Heap Buffer overflow in Abseil

Published Feb 21, 2025 · Updated Apr 5, 2025 · Assigned by Google

Description

There exists a heap buffer overflow vulnerable in Abseil-cpp. The sized constructors, reserve(), and rehash() methods of absl::{flat,node}hash{set,map} did not impose an upper bound on their size argument. As a result, it was possible for a caller to pass a very large size that would cause an integer overflow when computing the size of the container's backing store, and a subsequent out-of-bounds memory write. Subsequent accesses to the container might also access out-of-bounds memory. We recommend upgrading past commit 5a0e2cb5e3958dd90bb8569a2766622cb74d90c1

Affected products

VendorProductAffectedFixed
abseil abseil-cpp — —

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 abseil 20240722.0-3 —
Debian 13 abseil 20240722.0-3 —
Debian 12 abseil 20220623.1-1+deb12u1 —
Debian 11 abseil 0~20200923.3-2+deb11u1 DLA-4116-1
ReleasePackageFixed inAdvisory
Ubuntu 25.10 abseil 20240722.0-3ubuntu1 —
Ubuntu 24.04 LTS abseil 20220623.1-3.1ubuntu3.2 USN-7505-1
Ubuntu 22.04 LTS abseil 0~20210324.2-2ubuntu0.2 USN-7505-1
ReleasePackageFixed inAdvisory
SLES 15 SP7 abseil-cpp 20240116.3-150600.19.6.1 SUSE-SU-2026:0338-1
SLES 12 SP5 abseil-cpp 20240116.3-8.6.1 SUSE-SU-2026:0412-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLE Micro 6.1 abseil-cpp 20230802.3-slfo.1.1_1.1 SUSE-SU-2026:20361-1
SLE Micro 6.0 abseil-cpp 20230802.3-1.1 SUSE-SU-2026:20268-1
SLE Micro 5.5 abseil-cpp 20240116.3-150500.13.10.1 SUSE-SU-2026:0381-1
SLE Micro 5.4 abseil-cpp 20240116.3-150500.13.10.1 SUSE-SU-2026:0381-1
SLE Micro 5.3 abseil-cpp 20230802.3-150400.10.7.1 SUSE-SU-2026:0576-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed abseil-cpp 20250814.0-2.1 openSUSE-SU-2025:15473-1
openSUSE Leap 15.6 abseil-cpp 20240116.3-150600.19.6.1 SUSE-SU-2026:0338-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 abseil-cpp +1 20220623.1-4.amzn2023.0.2 ALAS2023-2025-1042

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 abseil-cpp 20240116.0-3 —
Azure Linux 3 mysql 8.0.45-2 —
Azure Linux 2 (CBL-Mariner) abseil-cpp 20220623.0-2 —
Azure Linux 2 (CBL-Mariner) mysql No fix yet —

Advisories 10

References