cve.bz

CVE-2026-40215 openvpn openvpn: Out-of-bounds Read

6.1 mediumEPSS 0.4%

Medium (6.1) in openvpn openvpn. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
A race condition in OpenVPN 2.6.0 through 2.6.19 and 2.7_alpha1 through 2.7.1 allows remote attackers to potentially cause a server crash or leak heap memory via a use-after-free triggered during TLS session promotion.

Severity

CVSS 4.0

6.1 medium
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:N/VA:H/SC:L/SI:N/SA:L

CVSS 3.1

7.4 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 32nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-06-16. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-125 Out-of-bounds Read
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-40215 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40215?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40215?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-2026-40215 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.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
OpenVPNfrom 2.6.0 through 2.6.19
OpenVPNfrom 2.7_alpha1 through 2.7.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11openvpn2.5.1-3+deb11u3DLA-4653-1
Debian12openvpn2.6.14-0+deb12u1DEBIAN-CVE-2026-40215 DSA-6289-1
Debian13openvpn2.6.14-1+deb13u2DEBIAN-CVE-2026-40215 DSA-6289-1
Debian14openvpn2.7.2-1DEBIAN-CVE-2026-40215
Ubuntu20.04:LTS, Pro:14.04:LTS, Pro:16.04:LTS and 1 moreopenvpnno fix listedUBUNTU-CVE-2026-40215
Ubuntu22.04:LTSopenvpn2.5.11-0ubuntu0.22.04.3UBUNTU-CVE-2026-40215
Ubuntu24.04:LTSopenvpn2.6.19-0ubuntu0.24.04.2UBUNTU-CVE-2026-40215
Ubuntu25.10openvpn2.6.19-0ubuntu0.25.10.2UBUNTU-CVE-2026-40215
Ubuntu26.04:LTSopenvpn2.7.0-1ubuntu1.1UBUNTU-CVE-2026-40215
SUSELinux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6openvpn, openvpn-dco2.6.10-150600.3.26.1SUSE-SU-2026:3596-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0openvpn2.6.10-160000.5.1SUSE-SU-2026:24220-1
openSUSELeap 16.0openvpn2.6.10-160000.5.1openSUSE-SU-2026:22072-1
Alpinev3.20, v3.21, v3.22 and 2 moreopenvpn2.6.20-r0ALPINE-CVE-2026-40215

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 Moderate impact flaw in OpenVPN is a race condition that can be remotely triggered during TLS session promotion. Successful exploitation could lead to a server crash, resulting in a denial of service, or potentially leak heap memory. The vulnerability's reliance on specific timing for the race condition to occur contributes to its Moderate severity.

Red Hat's mitigation

To reduce the attack surface, restrict network access to the OpenVPN server to only trusted clients and networks. This can be achieved by configuring firewall rules to limit inbound connections to the OpenVPN port (default 1194/UDP or 443/TCP) from known, authorized sources. This operational control limits the ability of unauthorized remote attackers to attempt exploitation.

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-2026-40215.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON