CVE-2026-80519

ovpn: finish crypto callback cleanup before peer release

Published Aug 26, 2026 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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 results in a kernel crash. The race also frees the remaining socket buffer too early, widening the window for memory corruption and ultimately causing a kernel panic. 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 is affected. 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 vulnerable; the explicit affected‑version list is not provided in the current data.

Risk and Exploitability

The CVSS score of 9.8 indicates critical severity. The EPSS score is less than 1%, implying that while exploitation is not widespread, it remains a viable attack vector for determined adversaries. Based on the description, it is inferred that the vulnerability could be exploited via code that triggers the OVPN crypto callback, potentially allowing an attacker to cause a use‑after‑free and crash the kernel. Successful exploitation results in a kernel panic, effectively causing a denial of service. The vulnerability is not listed in CISA’s KEV catalog, but given the severity, it should be considered high risk for systems that have not applied the fix.

Remediation

No solution or workaround provided in the CVE record.

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 28, 2026 at 19:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-416
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
Weaknesses
  • CWE-825

    Expired Pointer Dereference

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 27, 2026, 5:01 AM
Reserved
Aug 26, 2026, 2:34 PM
Status
Received
Published
Aug 26, 2026, 3:17 PM
Modified
Aug 27, 2026, 6:17 AM
Severity
Moderate
Public date
Aug 26, 2026, 12:00 AM