CVE Database›Document archive›CVE-2026-31579

CVE-2026-31579

kernel: wireguard: device: use exit_rtnl callback instead of manual rtnl_lock in pre_exit

Loading…

Severity

Moderate

Red Hat Product Security

5.5

CVSS 3.1

Review impact separately from score.

Published · April 24, 2026

Updated · June 28, 2026

Description

A flaw was found in the Linux kernel's WireGuard component. A local user could trigger a hung task by causing contention for the rtnl_lock() within the wg_netns_pre_exit() callback. This issue can lead to a Denial of Service (DoS), where the system becomes unresponsive as cleanup operations block indefinitely.

Statement

This Moderate flaw in the Linux kernel's WireGuard component allows a local attacker to trigger a Denial of Service. A local user can cause a hung task by creating contention for the rtnl_lock() during network namespace teardown. This vulnerability affects Red Hat Enterprise Linux 9 and 10.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

To mitigate this issue, if the WireGuard VPN is not actively used, the wireguard kernel module can be prevented from loading. This can be achieved by creating a blacklist rule in /etc/modprobe.d/.

Example: echo "blacklist wireguard" | sudo tee /etc/modprobe.d/blacklist-wireguard.conf sudo dracut -f

A system reboot is required for the changes to take effect. This action will disable all WireGuard VPN functionality on the system.

CVSS / CWE

CVSS 3.1 · 5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CWE-833 · Deadlock