PT-2024-33708 · Linux+7 · Linux Kernel+7

Lonial

·

Published

2024-09-13

·

Updated

2026-05-26

·

CVE-2024-49861

CVSS v3.1

7.1

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Name of the Vulnerable Software and Affected Versions: Linux kernel versions prior to 6.6.58
Description: A vulnerability has been found in the Linux kernel where specific helpers with ARG PTR TO {LONG,INT} as arguments can write into read-only BPF maps from the BPF program side. This occurs because the meta->raw mode is never set in check func arg() when the argument is as mentioned, and check helper mem access() assumes BPF READ for the subsequent call to check map access type(), allowing the write operation to succeed. The issue arises from the helpers not being annotated as ARG PTR TO {LONG,INT} | MEM UNINIT when results are written into them. To fix this, the ARG PTR TO {LONG,INT} special cases are removed, and MEM ALIGNED is added to ensure alignment.
Recommendations: For Linux kernel versions prior to 6.6.58, update to version 6.6.58 or later to resolve the issue. As a temporary workaround, consider restricting access to read-only BPF maps to minimize the risk of exploitation. Avoid using helpers with ARG PTR TO {LONG,INT} as arguments in BPF programs until the issue is resolved.

Exploit

Fix

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

Weakness Enumeration

Related Identifiers

ALSA-2025_16880
ALT-PU-2024-14046
AZL-50802
AZL-50858
BDU:2025-07000
CVE-2024-49861
DLA-4076-1
MGASA-2024-0344
MGASA-2024-0345
OESA-2024-2522
OESA-2024-2533
OESA-2024-2534
OESA-2024-2536
OPENSUSE-SU-2024:14500-1
OPENSUSE-SU-2024_3984-1
OPENSUSE-SU-2024_3986-1
OPENSUSE-SU-2024_4315-1
OPENSUSE-SU-2024_4376-1
OPENSUSE-SU-2025:14705-1
RHSA-2025:6966
SUSE-SU-2024:3984-1
SUSE-SU-2024:3986-1
SUSE-SU-2024:4315-1
SUSE-SU-2024:4318-1
SUSE-SU-2024:4364-1
SUSE-SU-2024:4376-1
SUSE-SU-2024:4387-1
SUSE-SU-2025:02846-1
SUSE-SU-2025:02923-1
SUSE-SU-2025:02969-1
SUSE-SU-2025:02996-1
SUSE-SU-2025:02997-1
SUSE-SU-2025:03011-1
SUSE-SU-2025:20163-1
SUSE-SU-2025:20164-1
SUSE-SU-2025:20246-1
SUSE-SU-2025:20247-1
SUSE-SU-2025_02846-1
SUSE-SU-2025_02969-1
SUSE-SU-2025_02996-1
SUSE-SU-2025_02997-1
SUSE-SU-2025_03011-1
USN-7276-1
USN-7277-1
USN-7301-1
USN-7303-1
USN-7303-2
USN-7303-3
USN-7304-1
USN-7310-1
USN-7311-1
USN-7384-1
USN-7384-2
USN-7385-1
USN-7386-1
USN-7403-1
USN-7468-1

Affected Products

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