CVE-2024-26951

CVE Details

Release Date:2024-05-01

Description


In the Linux kernel, the following vulnerability has been resolved:\nwireguard: netlink: check for dangling peer via is_dead instead of empty list\nIf all peers are removed via wg_peer_remove_all(), rather than setting\npeer_list to empty, the peer is added to a temporary list with a head on\nthe stack of wg_peer_remove_all(). If a netlink dump is resumed and the\ncursored peer is one that has been removed via wg_peer_remove_all(), it\nwill iterate from that peer and then attempt to dump freed peers.\nFix this by instead checking peer->is_dead, which was explictly created\nfor this purpose. Also move up the device_update_lock lockdep assertion,\nsince reading is_dead relies on that.\nIt can be reproduced by a small script like:\necho 'Setting config...'\nip link add dev wg0 type wireguard\nwg setconf wg0 /big-config\n(\nwhile true; do\necho 'Showing config...'\nwg showconf wg0 > /dev/null\ndone\n) &\nsleep 4\nwg setconf wg0 <(printf '[Peer]\nPublicKey=\n')\nResulting in:\nBUG: KASAN: slab-use-after-free in __lock_acquire+0x182a/0x1b20\nRead of size 8 at addr ffff88811956ec70 by task wg/59\nCPU: 2 PID: 59 Comm: wg Not tainted 6.8.0-rc2-debug+ #5\nCall Trace:\n\ndump_stack_lvl+0x47/0x70\nprint_address_description.constprop.0+0x2c/0x380\nprint_report+0xab/0x250\nkasan_report+0xba/0xf0\n__lock_acquire+0x182a/0x1b20\nlock_acquire+0x191/0x4b0\ndown_read+0x80/0x440\nget_peer+0x140/0xcb0\nwg_get_device_dump+0x471/0x1130

See more information about CVE-2024-26951 from MITRE CVE dictionary and NIST NVD


CVSS Scoring


NOTE: The following CVSS v3.1 metrics and score provided are preliminary and subject to review.

Base Score: 5.5 CVSS Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Attack Vector: Local network Attack Complexity: Low
Privileges Required: Low User Interaction: None
Scope: Unchanged Confidentiality Impact: None
Integrity Impact: None Availability Impact: High

Errata information


PlatformErrataRelease Date
Oracle Linux version 7 (kernel-uek)ELSA-2024-128132024-11-12
Oracle Linux version 8 (kernel-uek)ELSA-2024-128132024-11-12
Oracle Linux version 9 (kernel)ELSA-2024-93152024-11-14


This page is generated automatically and has not been checked for errors or omissions. For clarification or corrections:

software.hardware.complete