CVE-2024-40939
kernel: net: wwan: iosm: Fix tainted pointer delete is case of region creation fail
Overview
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.
Source: OX vulnerability database
Severity
7.8 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-416
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 44 fixes
Oracle Linux 2 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | bpftool +13 | 5.15.0-305.176.4.el8uek |
| 9 | kernel +27 | 5.14.0-427.33.1.el9_4 |
| 9 | kernel-uek +12 | 5.15.0-305.176.4.el9uek |
| 9 | bpftool | 7.3.0-427.33.1.el9_4 |
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 5.0 | bpftool +10 | 6.1.97-1.ph5 |
Red Hat 1 release · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 9 | kernel-rt +20 | affected | — |
| 9 | kernel +60 | 0:5.14.0-427.33.1.el9_4 | RHSA-2024:5928 |
| 9 | bpftool | 0:7.3.0-427.33.1.el9_4 | RHSA-2024:5928 |
SUSE Linux Enterprise 1 release · 5 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.6 | kernel-livepatch-6-4-0-150600-10-8-rt | 1-150600.1.3.2 | SUSE-SU-2024:3195-1 |
| 15.6 | kernel-livepatch-6-4-0-150600-23-22-default | 1-150600.13.3.3 | SUSE-SU-2024:3383-1 |
| 15.6 | cluster-md-kmp-default +18 | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| 15.6 | kernel-default-base | 6.4.0-150600.23.22.1.150600.12.8.3 | SUSE-SU-2024:3383-1 |
| 15.6 | kernel-azure +4 | 6.4.0-150600.8.11.1 | SUSE-SU-2024:3194-1 |
SUSE Linux Enterprise Micro 1 release · 5 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 6.0 | kernel-livepatch-6-4-0-19-default | 1-1.1 | SUSE-SU-2025:20044-1 |
| 6.0 | kernel-livepatch-6-4-0-10-rt | 1-1.1 | SUSE-SU-2025:20047-1 |
| 6.0 | kernel-devel-rt +2 | 6.4.0-10.1 | SUSE-SU-2025:20047-1 |
| 6.0 | kernel-default-base | 6.4.0-17.1.1.51 | SUSE-SU-2025:20044-1 |
| 6.0 | kernel-default +5 | 6.4.0-19.1 | SUSE-SU-2025:20044-1 |
alma 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 9 | kernel +39 | 5.14.0-427.33.1.el9_4 |
| 9 | bpftool | 7.3.0-427.33.1.el9_4 |
debian 4 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 11 | linux-6-1 | 6.1.119-1~deb11u1 |
| 12 | linux | 6.1.99-1 |
| 13 | linux | 6.9.7-1 |
| 14 | linux | 6.9.7-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| linux | 6.9.7-1 |
root.io debian 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-linux | 6.1.99-1 |
| 13 | rootio-linux | 6.9.7-1 |
root.io ubuntu 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 24.04 | rootio-linux | 6.8.0-44.44 |
ubuntu 2 releases · 16 packages
| Release | Package | Fixed in |
|---|---|---|
| 22.04 | linux-oracle-6-8 | 6.8.0-1012.12~22.04.1 |
| 22.04 | linux-nvidia-6-8 | 6.8.0-1013.14~22.04.1 |
| 22.04 | linux-azure-6-8 +1 | 6.8.0-1014.16~22.04.1 |
| 22.04 | linux-aws-6-8 | 6.8.0-1015.16~22.04.1 |
| 22.04 | linux-lowlatency-hwe-6-8 +1 | 6.8.0-44.44.1~22.04.1 |
| 22.04 | linux-hwe-6-8 | 6.8.0-45.45~22.04.1 |
10 more rows
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2024:5928
- access.redhat.com https://access.redhat.com/security/cve/CVE-2024-40939
- bugzilla.redhat.com https://bugzilla.redhat.com/2265185
- bugzilla.redhat.com https://bugzilla.redhat.com/2272797
- bugzilla.redhat.com https://bugzilla.redhat.com/2273654
- bugzilla.redhat.com https://bugzilla.redhat.com/2275742
- bugzilla.redhat.com https://bugzilla.redhat.com/2275744
- bugzilla.redhat.com https://bugzilla.redhat.com/2277166
- bugzilla.redhat.com https://bugzilla.redhat.com/2278256
- bugzilla.redhat.com https://bugzilla.redhat.com/2278258
Show all 62 references
- bugzilla.redhat.com https://bugzilla.redhat.com/2278264
- bugzilla.redhat.com https://bugzilla.redhat.com/2281101
- bugzilla.redhat.com https://bugzilla.redhat.com/2281284
- bugzilla.redhat.com https://bugzilla.redhat.com/2281669
- bugzilla.redhat.com https://bugzilla.redhat.com/2281672
- bugzilla.redhat.com https://bugzilla.redhat.com/2281675
- bugzilla.redhat.com https://bugzilla.redhat.com/2281916
- bugzilla.redhat.com https://bugzilla.redhat.com/2281958
- bugzilla.redhat.com https://bugzilla.redhat.com/2282720
- bugzilla.redhat.com https://bugzilla.redhat.com/2283468
- bugzilla.redhat.com https://bugzilla.redhat.com/2284421
- bugzilla.redhat.com https://bugzilla.redhat.com/2293356
- bugzilla.redhat.com https://bugzilla.redhat.com/2293414
- bugzilla.redhat.com https://bugzilla.redhat.com/2293455
- bugzilla.redhat.com https://bugzilla.redhat.com/2293459
- bugzilla.redhat.com https://bugzilla.redhat.com/2293461
- bugzilla.redhat.com https://bugzilla.redhat.com/2295914
- bugzilla.redhat.com https://bugzilla.redhat.com/2297489
- bugzilla.redhat.com https://bugzilla.redhat.com/2297495
- bugzilla.redhat.com https://bugzilla.redhat.com/2297496
- bugzilla.redhat.com https://bugzilla.redhat.com/2297498
- bugzilla.redhat.com https://bugzilla.redhat.com/2297513
- bugzilla.redhat.com https://bugzilla.redhat.com/2297523
- bugzilla.redhat.com https://bugzilla.redhat.com/2297525
- bugzilla.redhat.com https://bugzilla.redhat.com/2297541
- bugzilla.redhat.com https://bugzilla.redhat.com/2297562
- bugzilla.redhat.com https://bugzilla.redhat.com/2297567
- bugzilla.redhat.com https://bugzilla.redhat.com/2299240
- bugzilla.redhat.com https://bugzilla.redhat.com/2299336
- bugzilla.redhat.com https://bugzilla.redhat.com/2300410
- bugzilla.redhat.com https://bugzilla.redhat.com/2300453
- bugzilla.redhat.com https://bugzilla.redhat.com/2301473
- bugzilla.redhat.com https://bugzilla.redhat.com/2301519
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2024-5928.html
- git.kernel.org https://git.kernel.org/linus/b0c9a26435413b81799047a7be53255640432547 (6.10-rc3)
- git.kernel.org https://git.kernel.org/stable/c/040d9384870386eb5dc55472ac573ac7756b2050
- git.kernel.org https://git.kernel.org/stable/c/37a438704d19bdbe246d51d3749b6b3a8fe65afd
- git.kernel.org https://git.kernel.org/stable/c/b0c9a26435413b81799047a7be53255640432547
- git.kernel.org https://git.kernel.org/stable/c/fe394d59cdae81389dbf995e87c83c1acd120597
- linux.oracle.com https://linux.oracle.com/cve/CVE-2024-40939.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2025-20095.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
- lore.kernel.org https://lore.kernel.org/linux-cve-announce/2024071218-CVE-2024-40939-a56c@gregkh/T
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2024-40939
- ubuntu.com https://ubuntu.com/security/notices/USN-6999-1
- ubuntu.com https://ubuntu.com/security/notices/USN-6999-2
- ubuntu.com https://ubuntu.com/security/notices/USN-7004-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7005-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7005-2
- ubuntu.com https://ubuntu.com/security/notices/USN-7008-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7029-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2024-40939
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.