CVE-2024-35955 in Debian Linux and 4 more products
In the Linux kernel, the following vulnerability has been resolved: kprobes: Fix possible use-after-free issue on kprobe registration When unloading a module, its state is changing MODULE_STATE_LIVE -> MODULE_STATE_GOING -> MODULE_STATE_UNFORMED. Each change will take a time. `is_module_text_address()` and `__module_text_address()` works with MODULE_STATE_LIVE and MODULE_STATE_GOING. If we use `is_module_text_address()` and `__module_text_address()` separately, there is a chance that the first one is succeeded but the next one is failed because module->state becomes MODULE_STATE_UNFORMED between those operations. In `check_kprobe_address_safe()`, if the second `__module_text_address()` is failed, that is ignored because it expected a kernel_text address. But it may have failed simply because module->state has been changed to MODULE_STATE_UNFORMED. In this case, arm_kprobe() will try to modify non-exist module text address (use-after-free). To fix this problem, we should not use separated `is_module_text_address()` and `__module_text_address()`, but use only `__module_text_address()` once and do `try_module_get(module)` which is only available with MODULE_STATE_LIVE.
Affects 5 products from 3 vendors. Description from NVD and MITRE.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Debian | Debian Linux | 10.0 |
| Linux | Linux Kernel | 6.9 ≥ 4.14.291, < 4.15 ≥ 4.19.256, < 4.19.313 ≥ 5.4.211, < 5.4.275 ≥ 5.10.137, < 5.10.216 ≥ 5.15.61, < 5.15.157+4 more≥ 5.18.18, < 5.19 ≥ 5.19.2, < 6.1.87 ≥ 6.2, < 6.6.28 ≥ 6.7, < 6.8.7 |
| Linux | Linux | 6.0 ≥ 4.14.291, < 4.15 ≥ 4.19.256, < 4.19.313 ≥ 5.4.211, < 5.4.275 ≥ 5.10.137, < 5.10.216 ≥ 5.15.61, < 5.15.157+2 more≥ 5.18.18, < 5.19 ≥ 5.19.2, < 5.20 |
| Siemens | RUGGEDCOM RST2428P (device and firmware) | < 3.1 |
| Siemens | Simatic S7-1500 Tm Mfp Firmware | < 1.1.1 |
Fix and vendor advisory
- RUGGEDCOM RST2428P (6GK6242-6PA00), SCALANCE XCM-/XRM-/XCH-/XRH-300 family: Update to V3.1 or later version
Source: ICSA-25-226-15
- SIMATIC S7-1500 TM MFP - GNU/Linux subsystem before V1.1.1: Update to V1.1.1 or later version
Source: SSA-265688
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Record details
| CVE ID | CVE-2024-35955 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-195256-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Published | 2024-05-20 |
| Last modified | 2026-10-15 |
| Weakness (CWE) | |
| Source | NVD |
Compensating controls AI-drafted, review before use
Implement kernel module loading and unloading policies that prevent the use of kprobes during critical operations. Regularly update the kernel to the latest version to mitigate known vulnerabilities.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Check devices from your own code or AI agent: free 14-day trial
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-15.