PT-2024-10070 · Linux+9 · Linux Kernel+9

Byeonguk Jeong

·

Published

2024-10-29

·

Updated

2025-10-03

·

CVE-2024-50262

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.6.61
Description The issue is related to an out-of-bounds write in the trie get next key() function in the Linux kernel's bpf module. This occurs when the function allocates a node stack with size trie->max prefixlen but writes (trie->max prefixlen + 1) nodes to the stack when it has full paths from the root to leaves. For example, in a trie with max prefixlen set to 8 and nodes with keys 0x00/0, 0x00/1, 0x00/2, ... 0x00/8 inserted, subsequent calls to trie get next key() with a key having .prefixlen = 8 can cause 9 nodes to be written on the node stack with size 8. This can potentially impact the confidentiality, integrity, and availability of protected information.
Recommendations To resolve the issue, update the Linux kernel to version 6.6.61 or later. As a temporary workaround, consider restricting the use of the trie get next key() function until a patch is available. Avoid using the trie get next key() function with keys that have a .prefixlen equal to trie->max prefixlen to minimize the risk of exploitation.

Exploit

Fix

Memory Corruption

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

Weakness Enumeration

Related Identifiers

ALSA-2024:11486
ALSA-2024_11486
ALSA-2025_12746
ALSA-2025_12752
ALSA-2025_12753
ALSA-2025_16880
ALT-PU-2024-15739
ALT-PU-2024-16040
ALT-PU-2024-16172
ALT-PU-2024-17099
ALT-PU-2024-17211
ALT-PU-2024-17891
ALT-PU-2025-12647
AZL-53042
AZL-53099
BDU:2025-00228
CVE-2024-50262
DLA-4008-1
DLA-4075-1
DSA-5818-1
INFSA-2024_11486
MGASA-2024-0368
MGASA-2024-0369
OESA-2024-2491
OESA-2024-2492
OESA-2024-2493
OESA-2024-2494
OESA-2024-2520
OPENSUSE-SU-2024:14500-1
OPENSUSE-SU-2025:14705-1
OPENSUSE-SU-2025_0117-1
OPENSUSE-SU-2025_0153-1
OPENSUSE-SU-2025_0154-1
OPENSUSE-SU-2025_0201-1
OPENSUSE-SU-2025_0229-1
RHSA-2024:10942
RHSA-2024:11486
RHSA-2024_11486
SUSE-SU-2025:0117-1
SUSE-SU-2025:0153-1
SUSE-SU-2025:0154-1
SUSE-SU-2025:0201-1
SUSE-SU-2025:0201-2
SUSE-SU-2025:0229-1
SUSE-SU-2025:0236-1
SUSE-SU-2025:0289-1
SUSE-SU-2025:20165-1
SUSE-SU-2025:20166-1
SUSE-SU-2025:20248-1
SUSE-SU-2025:20249-1
SUSE-SU-2025_0201-1
SUSE-SU-2025_0201-2
SUSE-SU-2025_0236-1
USN-7276-1
USN-7277-1
USN-7288-1
USN-7288-2
USN-7289-1
USN-7289-2
USN-7289-3
USN-7289-4
USN-7291-1
USN-7293-1
USN-7294-1
USN-7294-2
USN-7294-3
USN-7294-4
USN-7295-1
USN-7305-1
USN-7308-1
USN-7310-1
USN-7331-1
USN-7388-1
USN-7389-1
USN-7390-1
USN-7393-1
USN-7401-1
USN-7413-1
USN-7449-1
USN-7449-2
USN-7450-1
USN-7451-1
USN-7452-1
USN-7453-1
USN-7458-1
USN-7468-1
USN-7523-1
USN-7524-1
USN-7539-1
USN-7540-1

Affected Products

Alt Linux
Almalinux
Astra Linux
Debian
Linuxmint
Linux Kernel
Red Hat
Red Os
Suse
Ubuntu