CVE-2026-40215 Use after free in OpenVPN

Medium 6.1 Published Updated

Remote attackers can crash the OpenVPN server or leak heap memory via a race condition during TLS session promotion.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-40215?

CVE-2026-40215 is a medium-severity use after free vulnerability in OpenVPN, published on 8 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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.

Weakness: CWE-416, CWE-125

Which versions are affected by CVE-2026-40215?

It affects 1 product.

Products include Openvpn Openvpn.

How do I fix CVE-2026-40215?

Upgrade to a fixed version.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2026-40215 being exploited?

There is no known exploitation of CVE-2026-40215 in the wild and no public exploit code.

Sources

Also known as ALPINE-CVE-2026-40215, DEBIAN-CVE-2026-40215, GHSA-3mmv-h5fc-pvwj, OESA-2026-2625, UBUNTU-CVE-2026-40215.

Is CVE-2026-40215 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free