{"id":"CVE-2024-40939","state":"PUBLISHED","title":"net: wwan: iosm: Fix tainted pointer delete is case of region creation fail","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: wwan: iosm: Fix tainted pointer delete is case of region creation fail\n\nIn case of region creation fail in ipc_devlink_create_region(), previously\ncreated regions delete process starts from tainted pointer which actually\nholds error code value.\nFix this bug by decreasing region index before delete.\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE.","publishedAt":"2024-07-12T12:25:15.148Z","updatedAt":"2026-05-11T20:22:45.923Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4dcd183fbd67b105decc8be262311937730ccdbf","status":"affected","lessThan":"fe394d59cdae81389dbf995e87c83c1acd120597","versionType":"git"},{"version":"4dcd183fbd67b105decc8be262311937730ccdbf","status":"affected","lessThan":"040d9384870386eb5dc55472ac573ac7756b2050","versionType":"git"},{"version":"4dcd183fbd67b105decc8be262311937730ccdbf","status":"affected","lessThan":"37a438704d19bdbe246d51d3749b6b3a8fe65afd","versionType":"git"},{"version":"4dcd183fbd67b105decc8be262311937730ccdbf","status":"affected","lessThan":"b0c9a26435413b81799047a7be53255640432547","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wwan/iosm/iosm_ipc_devlink.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.16","versionType":"semver"},{"version":"6.1.95","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.35","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.9.6","status":"unaffected","lessThanOrEqual":"6.9.*","versionType":"semver"},{"version":"6.10","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wwan/iosm/iosm_ipc_devlink.c"]}],"references":["https://git.kernel.org/stable/c/fe394d59cdae81389dbf995e87c83c1acd120597","https://git.kernel.org/stable/c/040d9384870386eb5dc55472ac573ac7756b2050","https://git.kernel.org/stable/c/37a438704d19bdbe246d51d3749b6b3a8fe65afd","https://git.kernel.org/stable/c/b0c9a26435413b81799047a7be53255640432547","https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:39.287Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/40xxx/CVE-2024-40939.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-40939","state":"PUBLISHED","datePublished":"2024-07-12T12:25:15.148Z","dateUpdated":"2026-05-11T20:22:45.923Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-07-12T12:17:45.586Z"},"containers":{"cna":{"title":"net: wwan: iosm: Fix tainted pointer delete is case of region creation fail","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: wwan: iosm: Fix tainted pointer delete is case of region creation fail\n\nIn case of region creation fail in ipc_devlink_create_region(), previously\ncreated regions delete process starts from tainted pointer which actually\nholds error code value.\nFix this bug by decreasing region index before delete.\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4dcd183fbd67b105decc8be262311937730ccdbf","status":"affected","lessThan":"fe394d59cdae81389dbf995e87c83c1acd120597","versionType":"git"},{"version":"4dcd183fbd67b105decc8be262311937730ccdbf","status":"affected","lessThan":"040d9384870386eb5dc55472ac573ac7756b2050","versionType":"git"},{"version":"4dcd183fbd67b105decc8be262311937730ccdbf","status":"affected","lessThan":"37a438704d19bdbe246d51d3749b6b3a8fe65afd","versionType":"git"},{"version":"4dcd183fbd67b105decc8be262311937730ccdbf","status":"affected","lessThan":"b0c9a26435413b81799047a7be53255640432547","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wwan/iosm/iosm_ipc_devlink.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.16","versionType":"semver"},{"version":"6.1.95","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.35","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.9.6","status":"unaffected","lessThanOrEqual":"6.9.*","versionType":"semver"},{"version":"6.10","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wwan/iosm/iosm_ipc_devlink.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/fe394d59cdae81389dbf995e87c83c1acd120597"},{"url":"https://git.kernel.org/stable/c/040d9384870386eb5dc55472ac573ac7756b2050"},{"url":"https://git.kernel.org/stable/c/37a438704d19bdbe246d51d3749b6b3a8fe65afd"},{"url":"https://git.kernel.org/stable/c/b0c9a26435413b81799047a7be53255640432547"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T20:22:45.923Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.1.95"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.6.35"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.9.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.10"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/fe394d59cdae81389dbf995e87c83c1acd120597","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/040d9384870386eb5dc55472ac573ac7756b2050","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/37a438704d19bdbe246d51d3749b6b3a8fe65afd","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/b0c9a26435413b81799047a7be53255640432547","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T21:58:06.908Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-40939","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T17:04:33.559080Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-11T17:34:26.102Z"}}]}}}