CVE-2024-41004
tracing: Build event generation tests only as modules
Mitigation
- Upgrade Linux to 3572bd5689b0812b161b40279e39ca5b66d73e88 or later.
Who should check
- Anyone running Linux >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < a85bae262ccecc52a40c466ec067f6c915e0839d; >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < 98a7bfc48fffe170a60d87a5cbb7cdddf08184c3; >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < 32ef4dc2b1caf5825c0cf50646479608311cafc3; >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < 55d5d08174366efe57ca9e79964828b20c626c45; >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < 72a0199b361df2387018697b023fdcdd357449a9; >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < 3572bd5689b0812b161b40279e39ca5b66d73e88
- Anyone running Linux 5.6
Vulnerability facts
- Affected
- Linux >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < a85bae262ccecc52a40c466ec067f6c915e0839d; >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < 98a7bfc48fffe170a60d87a5cbb7cdddf08184c3; >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < 32ef4dc2b1caf5825c0cf50646479608311cafc3; >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < 55d5d08174366efe57ca9e79964828b20c626c45; >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < 72a0199b361df2387018697b023fdcdd357449a9; >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < 3572bd5689b0812b161b40279e39ca5b66d73e88; Linux 5.6
- Fixed in
- Linux 98a7bfc48fffe170a60d87a5cbb7cdddf08184c3, Linux 32ef4dc2b1caf5825c0cf50646479608311cafc3, Linux 55d5d08174366efe57ca9e79964828b20c626c45, Linux 72a0199b361df2387018697b023fdcdd357449a9, Linux 3572bd5689b0812b161b40279e39ca5b66d73e88
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.32% chance of exploitation in 30 days (percentile 18, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: tracing: Build event generation tests only as modules The kprobes and synth event generation test modules add events and lock (get a reference) those event file reference in module init function, and unlock and delete it in module exit function. This is because those are designed for playing as modules. If we make those modules as built-in, those events are left locked in the kernel, and never be removed. This causes kprobe event self-test failure as below. [ 97.349708] ------------[ cut here ]------------ [ 97.353453] WARNING: CPU: 3 PID: 1 at kernel/trace/trace_kprobe.c:2133 kprobe_trace_self_tests_init+0x3f1/0x480 [ 97.357106] Modules linked in: [ 97.358488] CPU: 3 PID: 1 Comm: swapper/0 Not tainted 6.9.0-g699646734ab5-dirty #14 [ 97.361556] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014 [ 97.363880] RIP: 0010:kprobe_trace_self_tests_init+0x3f1/0x480 [ 97.365538] Code: a8 24 08 82 e9 ae fd ff ff 90 0f 0b 90 48 c7 c7 e5 aa 0b 82 e9 ee fc ff ff 90 0f 0b 90 48 c7 c7 2d 61 06 82 e9 8e fd ff ff 90 <0f> 0b 90 48 c7 c7 33 0b 0c 82 89 c6 e8 6e 03 1f ff 41 ff c7 e9 90 [ 97.370429] RSP: 0000:ffffc90000013b50 EFLAGS: 00010286 [ 97.371852] RAX: 00000000fffffff0 RBX: ffff888005919c00 RCX: 0000000000000000 [ 97.373829] RDX: ffff888003f40000 RSI: ffffffff8236a598 RDI: ffff888003f40a68 [ 97.375715] RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 [ 97.377675] R10: ffffffff811c9ae5 R11: ffffffff8120c4e0 R12: 0000000000000000 [ 97.379591] R13: 0000000000000001 R14: 0000000000000015 R15: 0000000000000000 [ 97.381536] FS: 0000000000000000(0000) GS:ffff88807dcc0000(0000) knlGS:0000000000000000 [ 97.383813] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 97.385449] CR2: 0000000000000000 CR3: 0000000002244000 CR4: 00000000000006b0 [ 97.387347] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 97.389277] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 97.391196] Call Trace: [ 97.391967] <TASK> [ 97.392647] ? __warn+0xcc/0x180 [ 97.393640] ? kprobe_trace_self_tests_init+0x3f1/0x480 [ 97.395181] ? report_bug+0xbd/0x150 [ 97.396234] ? handle_bug+0x3e/0x60 [ 97.397311] ? exc_invalid_op+0x1a/0x50 [ 97.398434] ? asm_exc_invalid_op+0x1a/0x20 [ 97.399652] ? trace_kprobe_is_busy+0x20/0x20 [ 97.400904] ? tracing_reset_all_online_cpus+0x15/0x90 [ 97.402304] ? kprobe_trace_self_tests_init+0x3f1/0x480 [ 97.403773] ? init_kprobe_trace+0x50/0x50 [ 97.404972] do_one_initcall+0x112/0x240 [ 97.406113] do_initcall_level+0x95/0xb0 [ 97.407286] ? kernel_init+0x1a/0x1a0 [ 97.408401] do_initcalls+0x3f/0x70 [ 97.409452] kernel_init_freeable+0x16f/0x1e0 [ 97.410662] ? rest_init+0x1f0/0x1f0 [ 97.411738] kernel_init+0x1a/0x1a0 [ 97.412788] ret_from_fork+0x39/0x50 [ 97.413817] ? rest_init+0x1f0/0x1f0 [ 97.414844] ret_from_fork_asm+0x11/0x20 [ 97.416285] </TASK> [ 97.417134] irq event stamp: 13437323 [ 97.418376] hardirqs last enabled at (13437337): [<ffffffff8110bc0c>] console_unlock+0x11c/0x150 [ 97.421285] hardirqs last disabled at (13437370): [<ffffffff8110bbf1>] console_unlock+0x101/0x150 [ 97.423838] softirqs last enabled at (13437366): [<ffffffff8108e17f>] handle_softirqs+0x23f/0x2a0 [ 97.426450] softirqs last disabled at (13437393): [<ffffffff8108e346>] __irq_exit_rcu+0x66/0xd0 [ 97.428850] ---[ end trace 0000000000000000 ]--- And also, since we can not cleanup dynamic_event file, ftracetest are failed too. To avoid these issues, build these tests only as modules.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < a85bae262ccecc52a40c466ec067f6c915e0839d; >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < 98a7bfc48fffe170a60d87a5cbb7cdddf08184c3; >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < 32ef4dc2b1caf5825c0cf50646479608311cafc3; >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < 55d5d08174366efe57ca9e79964828b20c626c45; >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < 72a0199b361df2387018697b023fdcdd357449a9; >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < 3572bd5689b0812b161b40279e39ca5b66d73e88 | — | cvelist |
| Linux | 5.6 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-41004. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-41004.md Affected: Linux >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < a85bae262ccecc52a40c466ec067f6c915e0839d; >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < 98a7bfc48fffe170a60d87a5cbb7cdddf08184c3; >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < 32ef4dc2b1caf5825c0cf50646479608311cafc3; >= 9fe41efaca08416657efa87… Fixed in: Linux 98a7bfc48fffe170a60d87a5cbb7cdddf08184c3, Linux 32ef4dc2b1caf5825c0cf50646479608311cafc3, Linux 55d5d08174366efe57ca9e79964828b20c626c45, Linux 72a0199b361df2387018697b023fdcdd357449a9, Linux 3572bd5689b0812b161b40279e39ca5b66d73e88 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/a85bae262ccecc52a40c466ec067f6c915e0839d
- https://git.kernel.org/stable/c/98a7bfc48fffe170a60d87a5cbb7cdddf08184c3
- https://git.kernel.org/stable/c/32ef4dc2b1caf5825c0cf50646479608311cafc3
- https://git.kernel.org/stable/c/55d5d08174366efe57ca9e79964828b20c626c45
- https://git.kernel.org/stable/c/72a0199b361df2387018697b023fdcdd357449a9
- https://git.kernel.org/stable/c/3572bd5689b0812b161b40279e39ca5b66d73e88
FAQ
Is CVE-2024-41004 being exploited?
There is no confirmed exploitation: CVE-2024-41004 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-41004?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-41004?
Linux >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < a85bae262ccecc52a40c466ec067f6c915e0839d; >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < 98a7bfc48fffe170a60d87a5cbb7cdddf08184c3; >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < 32ef4dc2b1caf5825c0cf50646479608311cafc3; >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < 55d5d08174366efe57ca9e79964828b20c626c45; >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < 72a0199b361df2387018697b023fdcdd357449a9; >= 9fe41efaca08416657efa8731c0d47ccb6a3f3eb, < 3572bd5689b0812b161b40279e39ca5b66d73e88; Linux 5.6.
Is there a fix for CVE-2024-41004?
Yes. Fixed in Linux 98a7bfc48fffe170a60d87a5cbb7cdddf08184c3, Linux 32ef4dc2b1caf5825c0cf50646479608311cafc3, Linux 55d5d08174366efe57ca9e79964828b20c626c45, Linux 72a0199b361df2387018697b023fdcdd357449a9, Linux 3572bd5689b0812b161b40279e39ca5b66d73e88. Upgrade Linux to 3572bd5689b0812b161b40279e39ca5b66d73e88 or later.
How do I check if I'm affected by CVE-2024-41004?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.