CVE-2024-40908

bpf: Set run context for rawtp test_run callback

MEDIUM
5.5
CVSS Score
Published: July 12, 2024 at 12:20 PM UTC
Updated: June 17, 2026 at 07:46 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Set run context for rawtp test_run callback syzbot reported crash when rawtp program executed through the test_run interface calls bpf_get_attach_cookie helper or any other helper that touches task->bpf_ctx pointer. Setting the run context (task->bpf_ctx pointer) for test_run callback.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.15 ≤ v < 5.15.1625.15 ≤ v < 6.1.955.15 ≤ v < 6.105.15 ≤ v < 6.6.355.15 ≤ v < 6.9.65.16 ≤ v < 6.1.956.2 ≤ v < 6.6.356.7 ≤ v < 6.9.65.156.10 rc16.10 rc27adfc6c9b315e174cf8743b21b7b691c8766791b
Vendor states this is fixed in 3708b6c2546c9eb34aead8a34a17e8ae69004e4d (fixed)
Vendor states this is fixed in 789bd77c9342aa6125003871ae5c6034d0f6f9d2 (fixed)
Vendor states this is fixed in ae0ba0ab7475a129ef7d449966edf677367efeb4 (fixed)
Vendor states this is fixed in d0d1df8ba18abc57f28fb3bc053b2bf319367f2c (fixed)
Vendor states this is fixed in d387805d4b4a46ee01e3dae133c81b6d80195e5b (fixed)
Vendor states this is fixed in 5.15 (unaffected)
Vendor states this is fixed in 5.15.162 (unaffected)
Vendor states this is fixed in 6.1.95 (unaffected)
Vendor states this is fixed in 6.10 (unaffected)
Vendor states this is fixed in 6.6.35 (unaffected)
Vendor states this is fixed in 6.9.6 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3708b6c2546c9eb34aead8a34a17e8ae69004e4d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/789bd77c9342aa6125003871ae5c6034d0f6f9d2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ae0ba0ab7475a129ef7d449966edf677367efeb4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d0d1df8ba18abc57f28fb3bc053b2bf319367f2c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d387805d4b4a46ee01e3dae133c81b6d80195e5b
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card