CVE-2024-40939·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: net: wwan: iosm: Fix tainted pointer delete is case of region creation fail In case of region creation fail in ipc_devlink_create_region(), previously created regions delete process starts from tainted pointer which actually holds error code value. Fix this bug by decreasing region index before delete. Found by Linux Verification Center (linuxtesting.org) with SVACE.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.9.6
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at <0.1% — higher than 2% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2024-40939 scores 7.8 on CVSS, so a successful attack would be serious — but at <0.1%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 6.7
Until: 6.9.6
Fixed in: 6.9.6
How to fix this CVE
Update your Linux kernel to version 6.9.6 or later to resolve a critical memory management issue in the WWAN IOSM driver. The vulnerability occurs when region creation fails, leaving a tainted pointer that can cause a kernel panic or memory corruption during cleanup. Apply the kernel update immediately using your distribution's package manager.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check your current kernel version: uname -r
- Verify if the WWAN IOSM driver is loaded: lsmod | grep iosm
- Search system logs for crash indicators: grep -i 'iosm\|wwan\|devlink' /var/log/kern.log | grep -i 'error\|panic\|tainted'
- Confirm the update was applied: uname -r (should show 6.9.6 or later)
FAQ
What is CVE-2024-40939?
CVE-2024-40939 is a kernel memory management bug in the WWAN IOSM driver where a failed region creation leaves a corrupted pointer that is subsequently dereferenced during error cleanup, potentially causing kernel panic or memory corruption.
Is CVE-2024-40939 being actively exploited?
No, this vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities catalog and no public exploits are available. However, the high CVSS score (7.8) warrants prompt patching.
What versions of Kernel are affected by CVE-2024-40939?
Linux kernel versions 6.7 through 6.9.5 are affected. The fix is included in kernel 6.9.6 and later stable releases.
How do I check if my server is vulnerable to CVE-2024-40939?
Run 'uname -r' to check your kernel version. If the output shows 6.7.x through 6.9.5, and you have the WWAN IOSM driver in use (check 'lsmod | grep iosm'), your system is vulnerable.
Does Defensia detect CVE-2024-40939?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2024-40939 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/040d9384870386eb5dc55472ac573ac7756b2050
- https://git.kernel.org/stable/c/37a438704d19bdbe246d51d3749b6b3a8fe65afd
- https://git.kernel.org/stable/c/b0c9a26435413b81799047a7be53255640432547
- https://git.kernel.org/stable/c/fe394d59cdae81389dbf995e87c83c1acd120597
- https://git.kernel.org/stable/c/040d9384870386eb5dc55472ac573ac7756b2050
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-40939. Free for 1 server.
Get started free