Skip to content
Fencer Vulns
high 7.8

CVE-2024-46738 json

VMCI: Fix use-after-free when removing resource in vmci_resource_remove()

published 2024-09-18 2 y ago modified 2026-08-05 3 mo ago also EUVD-2024-41999

cvss
7.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.3%
EPSS 0.3% chance of exploitation in 30 days, percentile 20%
public exploits
0
none known

Summary

In the Linux kernel, the following vulnerability has been resolved:

VMCI: Fix use-after-free when removing resource in vmci_resource_remove()

When removing a resource from vmci_resource_table in vmci_resource_remove(), the search is performed using the resource handle by comparing context and resource fields.

It is possible though to create two resources with different types but same handle (same context and resource fields).

When trying to remove one of the resources, vmci_resource_remove() may not remove the intended one, but the object will still be freed as in the case of the datagram type in vmci_datagram_destroy_handle(). vmci_resource_table will still hold a pointer to this freed resource leading to a use-after-free vulnerability.

BUG: KASAN: use-after-free in vmci_handle_is_equal include/linux/vmw_vmci_defs.h:142 [inline] BUG: KASAN: use-after-free in vmci_resource_remove+0x3a1/0x410 drivers/misc/vmw_vmci/vmci_resource.c:147 Read of size 4 at addr ffff88801c16d800 by task syz-executor197/1592 Call Trace: <TASK> __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x82/0xa9 lib/dump_stack.c:106 print_address_description.constprop.0+0x21/0x366 mm/kasan/report.c:239 __kasan_report.cold+0x7f/0x132 mm/kasan/report.c:425 kasan_report+0x38/0x51 mm/kasan/report.c:442 vmci_handle_is_equal include/linux/vmw_vmci_defs.h:142 [inline] vmci_resource_remove+0x3a1/0x410 drivers/misc/vmw_vmci/vmci_resource.c:147 vmci_qp_broker_detach+0x89a/0x11b9 drivers/misc/vmw_vmci/vmci_queue_pair.c:2182 ctx_free_ctx+0x473/0xbe1 drivers/misc/vmw_vmci/vmci_context.c:444 kref_put include/linux/kref.h:65 [inline] vmci_ctx_put drivers/misc/vmw_vmci/vmci_context.c:497 [inline] vmci_ctx_destroy+0x170/0x1d6 drivers/misc/vmw_vmci/vmci_context.c:195 vmci_host_close+0x125/0x1ac drivers/misc/vmw_vmci/vmci_host.c:143 __fput+0x261/0xa34 fs/file_table.c:282 task_work_run+0xf0/0x194 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x184/0x189 kernel/entry/common.c:187 exit_to_user_mode_prepare+0x11b/0x123 kernel/entry/common.c:220 __syscall_exit_to_user_mode_work kernel/entry/common.c:302 [inline] syscall_exit_to_user_mode+0x18/0x42 kernel/entry/common.c:313 do_syscall_64+0x41/0x85 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x6e/0x0

This change ensures the type is also checked when removing the resource from vmci_resource_table in vmci_resource_remove().

Patch / fix

  • Linux Linux 4.19.322, 5.4.284, 5.10.226, 5.15.167, 6.1.110, 6.6.51, 6.10.10, 6.11
  • linux Debian 12 6.1.112-1
  • linux Debian 14, Debian 13 6.10.11-1

debian advisories DEBIAN-CVE-2024-46738

  • linux Ubuntu 20.04 LTS 5.4.0-200.220
  • linux Ubuntu 22.04 LTS 5.15.0-125.135
  • linux Ubuntu 24.04 LTS 6.8.0-50.51
  • linux-aws Ubuntu 20.04 LTS 5.4.0-1135.145
  • linux-aws Ubuntu 22.04 LTS 5.15.0-1072.78
  • linux-aws Ubuntu 24.04 LTS 6.8.0-1020.22
  • linux-gcp Ubuntu 20.04 LTS 5.4.0-1139.148
  • linux-gcp Ubuntu 22.04 LTS 5.15.0-1071.79

ubuntu advisories UBUNTU-CVE-2024-46738

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • kernel RHEL 9.6 EUS 5.14.0-570.129.1.el9_6
  • rv RHEL 9.6 EUS 5.14.0-570.129.1.el9_6
  • perf RHEL 9.6 EUS 5.14.0-570.129.1.el9_6
  • rtla RHEL 9.6 EUS 5.14.0-570.129.1.el9_6
  • libperf RHEL 9.6 EUS 5.14.0-570.129.1.el9_6
  • kernel-rt RHEL 9.6 EUS 5.14.0-570.129.1.el9_6
  • kernel-64k RHEL 9.6 EUS 5.14.0-570.129.1.el9_6
  • kernel-core RHEL 9.6 EUS 5.14.0-570.129.1.el9_6

red hat advisories RHSA-2026:44385

  • kernel-rt Linux Micro 6.0 6.4.0-11.1
  • kernel-source-rt Linux Micro 6.0 6.4.0-11.1
  • kernel-livepatch-MICRO-6-0-RT_Update_3 Linux Micro 6.0 1-1.2
  • kernel-source Linux Micro 6.0 6.4.0-20.1
  • kernel-default Linux Micro 6.0 6.4.0-20.1
  • kernel-kvmsmall Linux Micro 6.0 6.4.0-20.1
  • kernel-default-base Linux Micro 6.0 6.4.0-17.1.1.51
  • kernel-livepatch-MICRO-6-0_Update_3 Linux Micro 6.0 1-1.2

suse advisories SUSE-SU-2025:20077-1SUSE-SU-2025:20073-1SUSE-SU-2024:3592-1SUSE-SU-2024:3591-1SUSE-SU-2024:3587-1SUSE-SU-2024:3569-1

  • kernel CBL-Mariner 2.0 5.15.167.1-1

azure linux advisories AZL-49374

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-46738 updated cvss 5.5

kernel: VMCI: Fix use-after-free when removing resource in vmci_resource_remove()

  • Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more
    affected: workaround, no fix planned “Will not fix”
  • Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +82 more
    affected: workaround, no fix available
  • Red Hat CodeReady Linux Builder EUS (v.9.6) libperf 5.14.0-570.129.1.el9_6, kernel-debuginfo-common-s390x 5.14.0-570.129.1.el9_6, kernel-debuginfo-common-x86_64 5.14.0-570.129.1.el9_6, kernel-debuginfo-common-aarch64 5.14.0-570.129.1.el9_6, kernel-debuginfo-common-ppc64le 5.14.0-570.129.1.el9_6 Red Hat Enterprise Linux AppStream EUS (v.9.6) rv 5.14.0-570.129.1.el9_6, perf 5.14.0-570.129.1.el9_6, rtla 5.14.0-570.129.1.el9_6, python3-perf 5.14.0-570.129.1.el9_6, kernel-devel-matched 5.14.0-570.129.1.el9_6, kernel-64k-devel-matched 5.14.0-570.129.1.el9_6, +7 more Red Hat Enterprise Linux BaseOS EUS (v.9.6) kernel 5.14.0-570.129.1.el9_6, kernel-64k 5.14.0-570.129.1.el9_6, kernel-core 5.14.0-570.129.1.el9_6, kernel-tools 5.14.0-570.129.1.el9_6, kernel-modules 5.14.0-570.129.1.el9_6, kernel-64k-core 5.14.0-570.129.1.el9_6, +27 more Red Hat Enterprise Linux Real Time EUS (v.9.6) kernel-rt 5.14.0-570.129.1.el9_6, kernel-rt-64k 5.14.0-570.129.1.el9_6, kernel-rt-core 5.14.0-570.129.1.el9_6, kernel-rt-modules 5.14.0-570.129.1.el9_6, kernel-rt-64k-core 5.14.0-570.129.1.el9_6, kernel-rt-debug-core 5.14.0-570.129.1.el9_6, +14 more Red Hat Enterprise Linux Real Time for NFV EUS (v.9.6) kernel-rt 5.14.0-570.129.1.el9_6, kernel-rt-kvm 5.14.0-570.129.1.el9_6, kernel-rt-core 5.14.0-570.129.1.el9_6, kernel-rt-modules 5.14.0-570.129.1.el9_6, kernel-rt-debug-kvm 5.14.0-570.129.1.el9_6, kernel-rt-debug-core 5.14.0-570.129.1.el9_6, +6 more
    fixed: vendor fix RHSA-2026:44385
  • Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

cisa ICSA-25-226-07 updated cvss 7.8

Siemens Third-Party Components in SINEC OS

  • Siemens RUGGEDCOM RST2428P (6GK6242-6PA00) < 3.2
    affected: fixed in V3.2 support.industry.siemens.com
  • Siemens SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family < 3.2
    affected: fixed in V3.2
  • Siemens SCALANCE XCM-/XRM-/XCH-/XRH-300 family < 3.2
    affected: fixed in V3.2 support.industry.siemens.com

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

0.28% chance of exploitation in the next 30 days, higher than 20% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

  • Linux Linux

Classification

Weakness
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.