# CVE-2026-74727: ovpn: skip rehash for peers already removed from by\_id

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.65% (percentile 46, 2026-11-26)
- **Published:** 2026-08-22T15:33:17.773Z
- **Modified:** 2026-10-14T13:10:00.187Z

## Who should check

- Anyone running Linux \>= 1d36a36f6d5347360ef9681a05f6166683bafd1d, \< d20c181088984b6eaa8d7fe7cb5ab3510988df59; \>= 1d36a36f6d5347360ef9681a05f6166683bafd1d, \< 66745480298775f188b2f5ad266643e85a90f73b; \>= 1d36a36f6d5347360ef9681a05f6166683bafd1d, \< 33ec10567fe14456063daf549fdf1a4f53448e4c
- Anyone running Linux 6.16

## Description

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

ovpn: skip rehash for peers already removed from by\_id

ovpn\_nl\_peer\_set\_doit() resolves the target peer via
ovpn\_peer\_get\_by\_id() before taking ovpn-\>lock. In the window between
the lookup (which only takes a refcount) and the subsequent
spin\_lock\_bh(&ovpn-\>lock), a concurrent OVPN\_CMD\_PEER\_DEL, keepalive
expiry, or socket teardown can take ovpn-\>lock first, run
ovpn\_peer\_remove() to unhash the peer from all four tables (by\_id,
by\_vpn\_addr4/6, by\_transp\_addr) and release the lock. set\_doit then
acquires ovpn-\>lock and calls ovpn\_peer\_hash\_vpn\_ip(), which
re-inserts the now-removed peer back into the rehashing tables.

The same race affects the float path: ovpn\_peer\_endpoints\_update()
holds only a refcount and acquires ovpn-\>lock very late (after async
AEAD decrypt and a netlink notification), then rehashes the peer
in the by\_transp\_addr table.

The resurrected peer becomes reachable again from the RX lookup
(ovpn\_peer\_get\_by\_transp\_addr) and the TX VPN-IP lookup, even though
userspace believes it is gone. Once the data-path refcount drops the
peer is freed via call\_rcu while the hash entries embedded in it
remain linked, opening a UAF window.

Bail out of the rehash when hash\_entry\_id is unhashed, mirroring
the sentinel already used by ovpn\_peer\_remove() to detect the
already-removed state. The check is safe under ovpn-\>lock, which
serializes every mutation of hash\_entry\_id, and is a no-op for the
add path because ovpn\_peer\_add\_mp() inserts hash\_entry\_id before
calling ovpn\_peer\_hash\_vpn\_ip().

## Affected and fixed versions

- Linux: \>= 1d36a36f6d5347360ef9681a05f6166683bafd1d, \< d20c181088984b6eaa8d7fe7cb5ab3510988df59; \>= 1d36a36f6d5347360ef9681a05f6166683bafd1d, \< 66745480298775f188b2f5ad266643e85a90f73b; \>= 1d36a36f6d5347360ef9681a05f6166683bafd1d, \< 33ec10567fe14456063daf549fdf1a4f53448e4c (cvelist)
- Linux: 6.16 (cvelist)

## Mitigation

- Upgrade Linux to 33ec10567fe14456063daf549fdf1a4f53448e4c or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-74727. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-74727.md
Affected: Linux >= 1d36a36f6d5347360ef9681a05f6166683bafd1d, < d20c181088984b6eaa8d7fe7cb5ab3510988df59; >= 1d36a36f6d5347360ef9681a05f6166683bafd1d, < 66745480298775f188b2f5ad266643e85a90f73b; >= 1d36a36f6d5347360ef9681a05f6166683bafd1d, < 33ec10567fe14456063daf549fdf1a4f53448e4c; Linux 6.16
Fixed in: Linux 66745480298775f188b2f5ad266643e85a90f73b, Linux 33ec10567fe14456063daf549fdf1a4f53448e4c

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-74727 being exploited?

There is no confirmed exploitation: CVE-2026-74727 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.65% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-74727?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-74727?

Linux \>= 1d36a36f6d5347360ef9681a05f6166683bafd1d, \< d20c181088984b6eaa8d7fe7cb5ab3510988df59; \>= 1d36a36f6d5347360ef9681a05f6166683bafd1d, \< 66745480298775f188b2f5ad266643e85a90f73b; \>= 1d36a36f6d5347360ef9681a05f6166683bafd1d, \< 33ec10567fe14456063daf549fdf1a4f53448e4c; Linux 6.16.

### Is there a fix for CVE-2026-74727?

Yes. Fixed in Linux 66745480298775f188b2f5ad266643e85a90f73b, Linux 33ec10567fe14456063daf549fdf1a4f53448e4c. Upgrade Linux to 33ec10567fe14456063daf549fdf1a4f53448e4c or later.

### How do I check if I'm affected by CVE-2026-74727?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/d20c181088984b6eaa8d7fe7cb5ab3510988df59>
- other: <https://git.kernel.org/stable/c/66745480298775f188b2f5ad266643e85a90f73b>
- other: <https://git.kernel.org/stable/c/33ec10567fe14456063daf549fdf1a4f53448e4c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-74727>

HTML: <https://flawdb.com/CVE-2026-74727> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-74727>
