CVE-2026-68341 ovpn: fix use after free in unlock_ovpn()

High 8.8 Published Updated

A use-after-free vulnerability in the Linux kernel's ovpn module allows attackers to potentially execute code or escalate privileges.

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-68341?

CVE-2026-68341 is a high-severity use after free vulnerability in Linux, published on 10 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

ovpn: fix use after free in unlock_ovpn()

unlock_ovpn() iterates over the release_list using llist_for_each_entry() and drops the peer reference inside the loop body via ovpn_peer_put().

If this drops the last reference, the peer is eventually freed. However, llist_for_each_entry() reads peer->release_entry.next in the loop advance expression, which runs after the body. By that time the peer may have already been freed, resulting in a use after free when advancing to the next list entry.

Fix this by using llist_for_each_entry_safe(), which caches the next pointer before executing the loop body.

Which versions are affected by CVE-2026-68341?

How do I fix CVE-2026-68341?

Apply the vendor's patch.

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-68341 being exploited?

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

Sources

Also known as BELL-CVE-2026-68341, DEBIAN-CVE-2026-68341, GHSA-998j-mxm9-vqxj, UBUNTU-CVE-2026-68341.

Is CVE-2026-68341 in your software?

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

Check your SBOMs for free