Menu

Star on GitHub · 3.2k

CVE-2024-26951

7.8 · HIGH

In the Linux kernel, the following vulnerability has been resolved: wireguard: netlink: check for dangling peer via is_dead instead of empty list If all peers are removed via wg_peer_remove_all()…

Published May 1, 2024CWE-416EPSS 0.23%

Overview

CVE-2024-26951 is a high-severity vulnerability. It was published on May 1, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

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

wireguard: netlink: check for dangling peer via is_dead instead of empty list

If all peers are removed via wg_peer_remove_all(), rather than setting

peer_list to empty, the peer is added to a temporary list with a head on

the stack of wg_peer_remove_all(). If a netlink dump is resumed and the

cursored peer is one that has been removed via wg_peer_remove_all(), it

will iterate from that peer and then attempt to dump freed peers.

Fix this by instead checking peer->is_dead, which was explictly created

for this purpose. Also move up the device_update_lock lockdep assertion,

since reading is_dead relies on that.

It can be reproduced by a small script like:

echo "Setting config..."

ip link add dev wg0 type wireguard

wg setconf wg0 /big-config

(

while true; do

echo "Showing config..."

wg showconf wg0 > /dev/null

done

) &

sleep 4

w

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2024-26951?

CVE-2024-26951 is a high-severity vulnerability. It was published on May 1, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2024-26951?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-26951?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-26951?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-26951 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2024

View all