CVE-2024-56620 scsi: ufs: qcom: Only free platform MSIs when ESI is enabled
A NULL pointer dereference in the Qualcomm UFS driver causes a kernel crash when removing the module without ESI enabled.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-56620?
CVE-2024-56620 is a medium-severity vulnerability in Linux kernel, published on 27 Dec 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
scsi: ufs: qcom: Only free platform MSIs when ESI is enabled
Otherwise, it will result in a NULL pointer dereference as below:
Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008 Call trace: mutex_lock+0xc/0x54 platform_device_msi_free_irqs_all+0x14/0x20 ufs_qcom_remove+0x34/0x48 [ufs_qcom] platform_remove+0x28/0x44 device_remove+0x4c/0x80 device_release_driver_internal+0xd8/0x178 driver_detach+0x50/0x9c bus_remove_driver+0x6c/0xbc driver_unregister+0x30/0x60 platform_driver_unregister+0x14/0x20 ufs_qcom_pltform_exit+0x18/0xb94 [ufs_qcom] __arm64_sys_delete_module+0x180/0x260 invoke_syscall+0x44/0x100 el0_svc_common.constprop.0+0xc0/0xe0 do_el0_svc+0x1c/0x28 el0_svc+0x34/0xdc el0t_64_sync_handler+0xc0/0xc4 el0t_64_sync+0x190/0x194
Weakness: CWE-476
Which versions are affected by CVE-2024-56620?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-56620?
Apply the vendor's patch.
Is CVE-2024-56620 being exploited?
There is no known exploitation of CVE-2024-56620 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-55183, BELL-CVE-2024-56620, DEBIAN-CVE-2024-56620, GHSA-m39v-c9r9-vmwh, UBUNTU-CVE-2024-56620.