Skip to main content

CVE-2024-53100: Vulnerability in Linux Linux

High
VulnerabilityCVE-2024-53100cvecve-2024-53100
Published: Mon Nov 25 2024 (11/25/2024, 21:21:28 UTC)
Source: CVE
Vendor/Project: Linux
Product: Linux

Description

In the Linux kernel, the following vulnerability has been resolved: nvme: tcp: avoid race between queue_lock lock and destroy Commit 76d54bf20cdc ("nvme-tcp: don't access released socket during error recovery") added a mutex_lock() call for the queue->queue_lock in nvme_tcp_get_address(). However, the mutex_lock() races with mutex_destroy() in nvme_tcp_free_queue(), and causes the WARN below. DEBUG_LOCKS_WARN_ON(lock->magic != lock) WARNING: CPU: 3 PID: 34077 at kernel/locking/mutex.c:587 __mutex_lock+0xcf0/0x1220 Modules linked in: nvmet_tcp nvmet nvme_tcp nvme_fabrics iw_cm ib_cm ib_core pktcdvd nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip_set nf_tables qrtr sunrpc ppdev 9pnet_virtio 9pnet pcspkr netfs parport_pc parport e1000 i2c_piix4 i2c_smbus loop fuse nfnetlink zram bochs drm_vram_helper drm_ttm_helper ttm drm_kms_helper xfs drm sym53c8xx floppy nvme scsi_transport_spi nvme_core nvme_auth serio_raw ata_generic pata_acpi dm_multipath qemu_fw_cfg [last unloaded: ib_uverbs] CPU: 3 UID: 0 PID: 34077 Comm: udisksd Not tainted 6.11.0-rc7 #319 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-2.fc40 04/01/2014 RIP: 0010:__mutex_lock+0xcf0/0x1220 Code: 08 84 d2 0f 85 c8 04 00 00 8b 15 ef b6 c8 01 85 d2 0f 85 78 f4 ff ff 48 c7 c6 20 93 ee af 48 c7 c7 60 91 ee af e8 f0 a7 6d fd <0f> 0b e9 5e f4 ff ff 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 RSP: 0018:ffff88811305f760 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff88812c652058 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000001 RBP: ffff88811305f8b0 R08: 0000000000000001 R09: ffffed1075c36341 R10: ffff8883ae1b1a0b R11: 0000000000010498 R12: 0000000000000000 R13: 0000000000000000 R14: dffffc0000000000 R15: ffff88812c652058 FS: 00007f9713ae4980(0000) GS:ffff8883ae180000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcd78483c7c CR3: 0000000122c38000 CR4: 00000000000006f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: <TASK> ? __warn.cold+0x5b/0x1af ? __mutex_lock+0xcf0/0x1220 ? report_bug+0x1ec/0x390 ? handle_bug+0x3c/0x80 ? exc_invalid_op+0x13/0x40 ? asm_exc_invalid_op+0x16/0x20 ? __mutex_lock+0xcf0/0x1220 ? nvme_tcp_get_address+0xc2/0x1e0 [nvme_tcp] ? __pfx___mutex_lock+0x10/0x10 ? __lock_acquire+0xd6a/0x59e0 ? nvme_tcp_get_address+0xc2/0x1e0 [nvme_tcp] nvme_tcp_get_address+0xc2/0x1e0 [nvme_tcp] ? __pfx_nvme_tcp_get_address+0x10/0x10 [nvme_tcp] nvme_sysfs_show_address+0x81/0xc0 [nvme_core] dev_attr_show+0x42/0x80 ? __asan_memset+0x1f/0x40 sysfs_kf_seq_show+0x1f0/0x370 seq_read_iter+0x2cb/0x1130 ? rw_verify_area+0x3b1/0x590 ? __mutex_lock+0x433/0x1220 vfs_read+0x6a6/0xa20 ? lockdep_hardirqs_on+0x78/0x100 ? __pfx_vfs_read+0x10/0x10 ksys_read+0xf7/0x1d0 ? __pfx_ksys_read+0x10/0x10 ? __x64_sys_openat+0x105/0x1d0 do_syscall_64+0x93/0x180 ? lockdep_hardirqs_on_prepare+0x16d/0x400 ? do_syscall_64+0x9f/0x180 ? lockdep_hardirqs_on+0x78/0x100 ? do_syscall_64+0x9f/0x180 ? __pfx_ksys_read+0x10/0x10 ? lockdep_hardirqs_on_prepare+0x16d/0x400 ? do_syscall_64+0x9f/0x180 ? lockdep_hardirqs_on+0x78/0x100 ? do_syscall_64+0x9f/0x180 ? lockdep_hardirqs_on_prepare+0x16d/0x400 ? do_syscall_64+0x9f/0x180 ? lockdep_hardirqs_on+0x78/0x100 ? do_syscall_64+0x9f/0x180 ? lockdep_hardirqs_on_prepare+0x16d/0x400 ? do_syscall_64+0x9f/0x180 ? lockdep_hardirqs_on+0x78/0x100 ? do_syscall_64+0x9f/0x180 ? lockdep_hardirqs_on_prepare+0x16d/0x400 ? do_syscall_64+0x9f/0x180 ? lockdep_hardirqs_on+0x78/0x100 ? do_syscall_64+0x9f/0x180 ? do_syscall_64+0x9f/0x180 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f9713f55cfa Code: 55 48 89 e5 48 83 ec 20 48 89 55 e8 48 89 75 f0 89 7d f8 e8 e8 74 f8 ff 48 8b 55 e8 48 8b 75 f0 4 ---truncated---

AI-Powered Analysis

AILast updated: 06/28/2025, 14:55:54 UTC

Technical Analysis

CVE-2024-53100 is a concurrency vulnerability in the Linux kernel's NVMe over TCP (nvme_tcp) driver. The issue arises from a race condition between the locking and destruction of a mutex protecting the NVMe TCP queue structure. Specifically, a mutex_lock() call introduced in the nvme_tcp_get_address() function races with a mutex_destroy() call in nvme_tcp_free_queue(). This race can lead to the kernel attempting to lock a mutex that has already been destroyed, triggering kernel warnings and potentially causing undefined behavior such as kernel panics or system instability. The vulnerability is rooted in improper synchronization of the queue_lock mutex during error recovery and resource cleanup in the NVMe TCP transport code. The provided kernel log snippet shows a WARN triggered by DEBUG_LOCKS_WARN_ON(lock->magic != lock), indicating that the mutex lock's internal state is invalid due to this race. This vulnerability affects Linux kernel versions including the 6.11.0-rc7 release candidate and likely other versions containing the affected commit. Although no public exploits are known, the issue can lead to denial of service (DoS) conditions by crashing or destabilizing the kernel when the NVMe TCP driver is in use. The nvme_tcp module is used to enable NVMe storage devices over TCP networks, a feature increasingly used in data centers and enterprise environments for high-performance storage access over IP networks. The vulnerability requires local or privileged access to trigger, as it involves kernel-level locking mechanisms during NVMe TCP operations. No indication exists that this vulnerability allows privilege escalation or remote code execution, but the risk of kernel crashes and service disruption is significant in affected environments.

Potential Impact

For European organizations, the impact of CVE-2024-53100 primarily concerns systems that utilize NVMe over TCP for storage networking. This includes data centers, cloud providers, and enterprises deploying Linux servers with NVMe TCP storage stacks. A successful trigger of this race condition can cause kernel panics or system crashes, resulting in denial of service. This could disrupt critical services, data access, and business operations, especially in sectors relying on high availability such as finance, telecommunications, healthcare, and manufacturing. Since NVMe TCP is used to provide fast, scalable storage over standard IP networks, organizations leveraging this technology for storage virtualization or cloud infrastructure could face outages or degraded performance. The vulnerability does not appear to allow data breaches or privilege escalation directly, but the availability impact alone can have severe operational and financial consequences. Additionally, recovery from kernel crashes may require system reboots, impacting uptime and potentially causing data loss if not properly managed. Given the increasing adoption of Linux-based infrastructure and NVMe TCP in Europe, this vulnerability poses a tangible risk to enterprise storage reliability and service continuity.

Mitigation Recommendations

To mitigate CVE-2024-53100, European organizations should: 1) Apply the latest Linux kernel patches that address this race condition as soon as they become available from trusted sources or Linux distributions. Monitoring vendor advisories for updated kernel packages is critical. 2) If immediate patching is not feasible, consider disabling the nvme_tcp module or avoiding the use of NVMe over TCP transport until patched, especially on critical production systems. 3) Implement robust monitoring for kernel warnings and logs indicating mutex lock failures or nvme_tcp errors to detect potential exploitation attempts or instability early. 4) Employ kernel live patching solutions where supported to reduce downtime when applying fixes. 5) Conduct thorough testing of storage networking configurations to ensure stability post-patch and to validate that no residual race conditions remain. 6) Limit access to systems running NVMe TCP to trusted administrators to reduce the risk of local exploitation attempts. 7) Maintain regular backups and disaster recovery plans to mitigate the impact of potential service disruptions caused by kernel crashes. These targeted steps go beyond generic advice by focusing on the specific NVMe TCP subsystem and operational practices around kernel patch management and monitoring.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
Linux
Date Reserved
2024-11-19T17:17:24.984Z
Cisa Enriched
false
Cvss Version
null
State
PUBLISHED

Threat ID: 682d9824c4522896dcbdf9b6

Added to database: 5/21/2025, 9:08:52 AM

Last enriched: 6/28/2025, 2:55:54 PM

Last updated: 8/5/2025, 6:36:27 PM

Views: 12

Actions

PRO

Updates to AI analysis are available only with a Pro account. Contact root@offseq.com for access.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats