cve.bz

CVE-2021-28041 Double Free

7.1 highEPSS 3.5%Fix available

High (7.1). EPSS 3.5% estimated probability of exploitation activity in the next 30 days.

On this page
ssh-agent in OpenSSH before 8.5 has a double free that may be relevant in a few less-common scenarios, such as unconstrained agent-socket access on a legacy operating system, or the forwarding of an agent to an attacker-controlled host.

Severity

CVSS 3.1

7.1 high
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
EPSS
3.5% (unchanged from 3.5% a week ago; 3.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 89th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-415 Double Free
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-28041 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-28041?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-28041?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-28041 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-28041

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-28041](https://cve.bz/cve/badge/CVE-2021-28041.svg)](https://cve.bz/cve/CVE-2021-28041)

HTML:

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

Affected

Versions

From the NVD's CPE matches.

ProductAffected
openbsd:opensshfrom 8.2 before 8.5
fedoraproject:fedora33
fedoraproject:fedora34
oracle:communications_offline_mediation_controller12.0.0.3.0
oracle:zfs_storage_appliance8.8

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14openssh1:8.4p1-5DEBIAN-CVE-2021-28041
Ubuntu20.04:LTSopenssh1:8.2p1-4ubuntu0.2UBUNTU-CVE-2021-28041 USN-4762-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Server Applications 15 SP3openssh8.4p1-3.9.1SUSE-SU-2021:4153-1
SUSELinux Enterprise Module for Desktop Applications 15 SP3openssh-askpass-gnome8.4p1-3.9.1SUSE-SU-2021:4153-1
openSUSELeap 15.3openssh, openssh-askpass-gnome8.4p1-3.9.1openSUSE-SU-2021:4153-1
openSUSETumbleweedopenssh9.6p1-3.1openSUSE-SU-2024:13842-1
Alpinev3.12openssh8.3_p1-r2ALPINE-CVE-2021-28041
Alpinev3.13openssh8.4_p1-r1ALPINE-CVE-2021-28041
Alpinev3.14, v3.15, v3.16 and 8 moreopenssh8.5_p1-r0ALPINE-CVE-2021-28041

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

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue doesn't affected any versions of OpenSSH packaged and shipped with Red Hat Enterprise Linux 6, 7 and 8. The issue was introduced in OpenSSH 8.2 while the most recent OpenSSH version available for Red Hat Enterprise Linux 8 is based on OpenSSH 8.0.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6opensshNot affected
Red Hat Enterprise Linux 7opensshNot affected
Red Hat Enterprise Linux 8opensshNot affected
Red Hat Enterprise Linux 9opensshNot affected

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-28041.

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.

References

Check your stackJSON