# CVE-2024-40939: net: wwan: iosm: Fix tainted pointer delete is case of region creation fail

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2024-07-12T12:25:15.148Z
- Modified: 2026-06-17T07:46:54.780Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 4dcd183fbd67b105decc8be262311937730ccdbf before fe394d59cdae81389dbf995e87c83c1acd120597; from 4dcd183fbd67b105decc8be262311937730ccdbf before 040d9384870386eb5dc55472ac573ac7756b2050; from 4dcd183fbd67b105decc8be262311937730ccdbf before 37a438704d19bdbe246d51d3749b6b3a8fe65afd; from 4dcd183fbd67b105decc8be262311937730ccdbf before b0c9a26435413b81799047a7be53255640432547; 5.16 (not affected: before 5.16; from 6.1.95 up to 6.1.*; from 6.6.35 up to 6.6.*; from 6.9.6 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 5.16 before 6.1.95; from 6.2 before 6.6.35; from 6.7 before 6.9.6; 6.10

## References

- <https://git.kernel.org/stable/c/fe394d59cdae81389dbf995e87c83c1acd120597> (patch)
- <https://git.kernel.org/stable/c/040d9384870386eb5dc55472ac573ac7756b2050> (patch)
- <https://git.kernel.org/stable/c/37a438704d19bdbe246d51d3749b6b3a8fe65afd> (patch)
- <https://git.kernel.org/stable/c/b0c9a26435413b81799047a7be53255640432547> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

- CVE List: [CVE-2024-40939](https://www.cve.org/CVERecord?id=CVE-2024-40939), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-40939](https://nvd.nist.gov/vuln/detail/CVE-2024-40939), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-40939 · Whole record: https://cve.day/CVE-2024-40939.json · Rebuilt by cve.day 2026-11-25T22:58:42.849Z
