PT-2024-37013 · Linux+4 · Linux Kernel+4

Juri Lelli

·

Published

2024-11-04

·

Updated

2026-04-20

·

CVE-2024-56702

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description A discrepancy exists between the reality that raw tracepoint arguments can be NULL and the verifier's knowledge that they are never NULL, causing explicit NULL checks to be deleted and accesses to such pointers potentially crashing the kernel. The issue arises because arguments to a raw tracepoint are tagged as trusted, implying the pointer will be non-NULL. However, in certain cases, a raw tracepoint argument may end up being NULL. To fix this, raw tracepoint arguments are marked as PTR MAYBE NULL, and special casing is applied to the dereference and pointer arithmetic to permit it. This change allows safe dereference and enables PROBE MEM marking when loads into trusted pointers with PTR MAYBE NULL are detected.
Recommendations To resolve the issue, update the Linux kernel to a version that includes the fix for marking raw tp arguments as PTR MAYBE NULL. As a temporary workaround, consider disabling the use of raw tracepoint arguments until a patch is available. Restrict access to the vulnerable bpf module to minimize the risk of exploitation. Avoid using the PTR TO BTF ID parameter in affected API endpoints until the issue is resolved. Apply the necessary configuration changes to ensure safe dereference of raw tracepoint arguments.

Exploit

Fix

NULL Pointer Dereference

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
ALT-PU-2025-12647
AZL-56294
BDU:2025-07851
CVE-2024-56702
OESA-2025-1032
OESA-2025-1036
OPENSUSE-SU-2025_01614-1
OPENSUSE-SU-2025_01707-1
OPENSUSE-SU-2025_1177-1
OPENSUSE-SU-2025_1178-1
OPENSUSE-SU-2025_1180-1
SUSE-SU-2025:01614-1
SUSE-SU-2025:01707-1
SUSE-SU-2025:01919-1
SUSE-SU-2025:01951-1
SUSE-SU-2025:01964-1
SUSE-SU-2025:01967-1
SUSE-SU-2025:01972-1
SUSE-SU-2025:1177-1
SUSE-SU-2025:1178-1
SUSE-SU-2025:1180-1
SUSE-SU-2025:20190-1
SUSE-SU-2025:20192-1
SUSE-SU-2025:20260-1
SUSE-SU-2025:20270-1
SUSE-SU-2025:20343-1
SUSE-SU-2025:20344-1
SUSE-SU-2025:20354-1
SUSE-SU-2025:20355-1
SUSE-SU-2025_01614-1
SUSE-SU-2025_01707-1
SUSE-SU-2025_01951-1
SUSE-SU-2025_01964-1
SUSE-SU-2025_01967-1
SUSE-SU-2025_01972-1
SUSE-SU-2025_1177-1
SUSE-SU-2025_1178-1
SUSE-SU-2025_1180-1
USN-7276-1
USN-7277-1
USN-7310-1

Affected Products

Alt Linux
Linuxmint
Linux Kernel
Suse
Ubuntu