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

ovpn: finish crypto callback cleanup before peer release

Crypto completion callbacks hold both key-slot and peer references. The
peer reference pins the netdev, and dropping the last peer reference can
let netdev unregistration and module removal make progress.

Do not release that peer reference before the callback has finished its
own cleanup. If ovpn_crypto_key_slot_put runs after ovpn_peer_put, it can
schedule an RCU callback backed by module text after ovpn_cleanup
rcu_barrier has already run. The TX error path also freed the remaining
skb after ovpn_peer_put, leaving callback cleanup outside the peer/netdev
lifetime window.

Release the key slot and free any remaining skb first, then drop the peer
reference as the last callback action.
Published: 2026-08-26
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw occurs in the Linux kernel's OVPN crypto routine. Crypto completion callbacks hold both a key‑slot reference and a peer reference. When the kernel releases the peer reference before those callbacks finish, the network device can be unregistered and the kernel module removed while a deferred RCU callback still holds references to module text. This ordering violation can execute a use‑after‑free, which is commonly known as CWE‑416. The race also frees the remaining socket buffer too early, further widening the window for memory corruption and ultimately causing a kernel crash. The result is a denial of service that would propagate to all userspace on the affected host.

Affected Systems

Any system running a Linux kernel that includes the OVPN module prior to the fix applies to this vulnerability. Because the impacted code is part of the default kernel source, any distribution whose kernel has not yet been updated to the corrected version is affected; the explicit affected‑version list is not provided in the current data.

Risk and Exploitability

The vulnerability is a classic use‑after‑free that requires code execution within the kernel or the ability to trigger the OVPN crypto callback. The available data does not supply a CVSS or EPSS score, and the vulnerability is not listed in CISA's KEV catalog. The most likely attack vector is local privilege escalation or exploitation by a kernel module that can initiate the vulnerable callback path. Successful exploitation would result in a kernel panic, effectively taking the host offline. The lack of publicly known exploitation at present and the absence of sentinel data suggests that current risk is moderate but it should be treated as severe if the kernel is unpatched.

Generated by OpenCVE AI on August 26, 2026 at 17:39 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest version of the Linux kernel that incorporates the OVPN crypto callback fix.
  • If an update is not immediately possible, unload or disable the OVPN kernel module to prevent the race condition from occurring.
  • Monitor kernel logs for any RCU warnings, memory corruption messages, or failures that may indicate an attempt to trigger the vulnerability while the module is disabled.

Generated by OpenCVE AI on August 26, 2026 at 17:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 26 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Wed, 26 Aug 2026 14:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ovpn: finish crypto callback cleanup before peer release Crypto completion callbacks hold both key-slot and peer references. The peer reference pins the netdev, and dropping the last peer reference can let netdev unregistration and module removal make progress. Do not release that peer reference before the callback has finished its own cleanup. If ovpn_crypto_key_slot_put runs after ovpn_peer_put, it can schedule an RCU callback backed by module text after ovpn_cleanup rcu_barrier has already run. The TX error path also freed the remaining skb after ovpn_peer_put, leaving callback cleanup outside the peer/netdev lifetime window. Release the key slot and free any remaining skb first, then drop the peer reference as the last callback action.
Title ovpn: finish crypto callback cleanup before peer release
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-26T14:37:01.383Z

Reserved: 2026-08-26T14:34:25.763Z

Link: CVE-2026-80519

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-26T15:17:05.420

Modified: 2026-08-26T15:17:05.420

Link: CVE-2026-80519

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-26T17:45:03Z

Weaknesses