Skip to contentSkip to conversation

CVE-2026-98604: ovpn: replace bind when learning local endpoint

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

ovpn: replace bind when learning local endpoint

struct ovpn_bind is published through peer->bind with RCU, but local endpoint learning updates bind->local in place under peer->lock. UDP TX reads the field without that lock. In particular, a concurrent IPv6 update can therefore result in a torn address read.

Use ovpn_peer_reset_sockaddr to publish a replacement bind when learning a new local endpoint, just as a remote endpoint change does. Preserve the current remote address and reset the dst cache only after the new bind has been published successfully.

Track remote endpoint changes separately so that float notification and transport-address rehashing remain limited to actual peer floats.

The Linux kernel CVE team has assigned CVE-2026-98604 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.16 with commit f0281c1d3732d1ec084fa1e06d1767d33e1a570e and fixed in 6.18.55 with commit 21dbc9f4d0bdd3b22f91beabc7840064bf11594f
	Issue introduced in 6.16 with commit f0281c1d3732d1ec084fa1e06d1767d33e1a570e and fixed in 7.2.9 with commit e283009151d3d131447c2edda500199c5fda5f72
	Issue introduced in 6.16 with commit f0281c1d3732d1ec084fa1e06d1767d33e1a570e and fixed in 7.3-rc5 with commit aea934a221ec6a867221e5b765f65f1857befd53

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-98604

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/net/ovpn/peer.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/21dbc9f4d0bdd3b22f91beabc7840064bf11594f
	https://git.kernel.org/stable/c/e283009151d3d131447c2edda500199c5fda5f72
	https://git.kernel.org/stable/c/aea934a221ec6a867221e5b765f65f1857befd53