PT-2024-7894 · Linux+6 · Linux Kernel+6

Lillian Berry

·

Published

2024-03-19

·

Updated

2026-02-21

·

CVE-2024-26951

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel versions prior to 6.8.0-rc2-debug+
Description The issue is related to a use-after-free error in the wg get device dump() function when handling peers in the WireGuard netlink interface. If all peers are removed via wg peer remove all(), the peer is added to a temporary list, and if a netlink dump is resumed, it will attempt to dump freed peers, leading to a slab-use-after-free error. This can be reproduced with a specific script that sets up a WireGuard configuration and then removes and reconfigures peers. The error results in a BUG: KASAN: slab-use-after-free in lock acquire+0x182a/0x1b20. The fix involves checking peer->is dead instead of an empty list to prevent this issue.
Recommendations To resolve this issue, update the Linux kernel to a version that includes the fix for this vulnerability. Specifically, versions 6.8.0-rc2-debug and later should include the necessary patches. If updating is not immediately possible, consider temporarily disabling the WireGuard interface or restricting access to it to minimize the risk of exploitation.

Exploit

Fix

Use After Free

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2025_12746
ALSA-2025_12752
ALSA-2025_12753
ALSA-2025_16880
AZL-40497
BDU:2024-09398
CVE-2024-26951
DLA-3842-1
DSA-5681-1
INFSA-2024_9315
OPENSUSE-SU-2024_1644-1
OPENSUSE-SU-2024_1659-1
OPENSUSE-SU-2024_1663-1
RHSA-2024:9315
RHSA-2024_9315
SUSE-SU-2024:1644-1
SUSE-SU-2024:1659-1
SUSE-SU-2024:1663-1
SUSE-SU-2024:2135-1
SUSE-SU-2024:2203-1
SUSE-SU-2024:2973-1
SUSE-SU-2025:20008-1
SUSE-SU-2025:20028-1
SUSE-SU-2025:20166-1
SUSE-SU-2025:20249-1
USN-6816-1
USN-6817-1
USN-6817-2
USN-6817-3
USN-6878-1
USN-6898-1
USN-6898-2
USN-6898-3
USN-6898-4
USN-6917-1
USN-6919-1
USN-6927-1
USN-7019-1

Affected Products

Astra Linux
Linuxmint
Linux Kernel
Red Hat
Red Os
Suse
Ubuntu