cve.bz

CVE-2021-3826 Out-of-bounds Write

6.5 mediumEPSS 1.5%Fix available

Medium (6.5). EPSS 1.5% estimated probability of exploitation activity in the next 30 days.

On this page
Heap/stack buffer overflow in the dlang_lname function in d-demangle.c in libiberty allows attackers to potentially cause a denial of service (segmentation fault and crash) via a crafted mangled symbol.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS
1.5% (unchanged from 1.5% a week ago; 1.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 75th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-3826 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3826?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3826?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-3826 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-3826

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-3826](https://cve.bz/cve/badge/CVE-2021-3826.svg)](https://cve.bz/cve/CVE-2021-3826)

HTML:

<a href="https://cve.bz/cve/CVE-2021-3826"><img src="https://cve.bz/cve/badge/CVE-2021-3826.svg" alt="CVE-2021-3826"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gnu:gcc11.2
fedoraproject:fedora35
fedoraproject:fedora36
fedoraproject:fedora37

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14binutils2.37.50.20220121-1DEBIAN-CVE-2021-3826
Debian12, 13, 14libiberty20220713-1DEBIAN-CVE-2021-3826
Ubuntu22.04:LTSgcc-11, libibertyno fix listedUBUNTU-CVE-2021-3826
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 1 moregcc-11no fix listedUBUNTU-CVE-2021-3826
UbuntuPro:16.04:LTS, Pro:18.04:LTSgdbno fix listedUBUNTU-CVE-2021-3826
Red Hatenterprise_linux:9::appstreamgdb, gdb-doc, gdb-minimal and 4 more0:10.2-11.el9RHSA-2023:6372
Red Hatrhel_software_collections:3::el7devtoolset-12-binutils, devtoolset-12-binutils-devel, devtoolset-12-binutils-debuginfo0:2.36.1-6.el7RHSA-2023:3269
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 18 morebinutils2.39-150100.7.40.1SUSE-SU-2022:4146-1
SUSELinux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL, Linux Enterprise Server 12 SP4-LTSS and 5 morebinutils2.39-9.50.1SUSE-SU-2022:4277-1
SUSELinux Enterprise Software Development Kit 12 SP5binutils, cross-ppc-binutils, cross-spu-binutils2.39-9.50.1SUSE-SU-2022:4277-1
openSUSELeap 15.3, Leap 15.4binutils, cross-rx-binutils, cross-arm-binutils and 19 more2.39-150100.7.40.1SUSE-SU-2022:4146-1
openSUSETumbleweedbinutils2.39-2.1openSUSE-SU-2024:12631-1
AlmaLinux9gdb, gdb-doc, gdb-minimal and 2 more10.2-11.el9ALSA-2023:6372

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

Red Hat's statement

Libiberty is a component used during compilation. This vulnerability requires a corrupted input file to have already been introduced into your application’s source code. This flaw could then induce a segmentation fault during compile time. However, it would be immediately apparent to the developer or operations team that something is wrong.

In a release pipeline which utilizes libiberty, a build failure would not prevent usage of existing stable builds, so while a flaw of this type could halt the roll out of new versions of your app, it cannot impact any apps which have already been built and deployed.

If this vulnerability were exploited, organizations which follow basic industry guidance for development and security (isolation of build environment, use of version control, and restriction of commit access) would be able to recover easily. Better prepared organizations would not even experience an outage as any problematic commits would be automatically reverted. For these reasons Red Hat Product Security has rated the impact as Low.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 9gdb-0:10.2-11.el9Fixed 2023-11-07RHSA-2023:6372
Red Hat Software Collections for Red Hat Enterprise Linux 7devtoolset-12-binutils-0:2.36.1-6.el7Fixed 2023-05-23RHSA-2023:3269
Red Hat Enterprise Linux 6binutilsOut of support scope
Red Hat Enterprise Linux 6compat-gcc-295Out of support scope
Red Hat Enterprise Linux 6compat-gcc-296Out of support scope
Red Hat Enterprise Linux 6compat-gcc-32Out of support scope
Red Hat Enterprise Linux 6compat-gcc-34Out of support scope
Red Hat Enterprise Linux 6gccOut of support scope
Red Hat Enterprise Linux 7binutilsOut of support scope
Red Hat Enterprise Linux 7compat-gcc-32Out of support scope
Red Hat Enterprise Linux 7compat-gcc-34Out of support scope
Red Hat Enterprise Linux 7compat-gcc-44Out of support scope
Red Hat Enterprise Linux 7gccOut of support scope
Red Hat Enterprise Linux 7gdbOut of support scope
Red Hat Enterprise Linux 8binutilsFix deferred
Red Hat Enterprise Linux 8gccNot affected
Red Hat Enterprise Linux 8gcc-toolset-10-binutilsNot affected
Red Hat Enterprise Linux 8gcc-toolset-10-gccNot affected
Red Hat Enterprise Linux 8gcc-toolset-10-gdbNot affected
Red Hat Enterprise Linux 8gcc-toolset-11-binutilsNot affected
11 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-3826.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-119 (12).

References

Check your stackJSON