CVE-2026-43471
JSON

5.5medium

scsi: ufs: core: Fix possible NULL pointer dereference in ufshcd_add_command_trace()

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.11% (higher than 1% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: scsi: ufs: core: Fix possible NULL pointer dereference in ufshcd_add_command_trace() The kernel log indicates a crash in ufshcd_add_command_trace, due to a NULL pointer dereference when accessing hwq->id. This can happen if ufshcd_mcq_req_to_hwq() returns NULL. This patch adds a NULL check for hwq before accessing its id field to prevent a kernel crash. Kernel log excerpt: [<ffffffd5d192dc4c>] notify_die+0x4c/0x8c [<ffffffd5d1814e58>] __die+0x60/0xb0 [<ffffffd5d1814d64>] die+0x4c/0xe0 [<ffffffd5d181575c>] die_kernel_fault+0x74/0x88 [<ffffffd5d1864db4>] __do_kernel_fault+0x314/0x318 [<ffffffd5d2a3cdf8>] do_page_fault+0xa4/0x5f8 [<ffffffd5d2a3cd34>] do_translation_fault+0x34/0x54 [<ffffffd5d1864524>] do_mem_abort+0x50/0xa8 [<ffffffd5d2a297dc>] el1_abort+0x3c/0x64 [<ffffffd5d2a29718>] el1h_64_sync_handler+0x44/0xcc [<ffffffd5d181133c>] el1h_64_sync+0x80/0x88 [<ffffffd5d255c1dc>] ufshcd_add_command_trace+0x23c/0x320 [<ffffffd5d255bad8>] ufshcd_compl_one_cqe+0xa4/0x404 [<ffffffd5d2572968>] ufshcd_mcq_poll_cqe_lock+0xac/0x104 [<ffffffd5d11c7460>] ufs_mtk_mcq_intr+0x54/0x74 [ufs_mediatek_mod] [<ffffffd5d19ab92c>] __handle_irq_event_percpu+0xc8/0x348 [<ffffffd5d19abca8>] handle_irq_event+0x3c/0xa8 [<ffffffd5d19b1f0c>] handle_fasteoi_irq+0xf8/0x294 [<ffffffd5d19aa778>] generic_handle_domain_irq+0x54/0x80 [<ffffffd5d18102bc>] gic_handle_irq+0x1d4/0x330 [<ffffffd5d1838210>] call_on_irq_stack+0x44/0x68 [<ffffffd5d183af30>] do_interrupt_handler+0x78/0xd8 [<ffffffd5d2a29c00>] el1_interrupt+0x48/0xa8 [<ffffffd5d2a29ba8>] el1h_64_irq_handler+0x14/0x24 [<ffffffd5d18113c4>] el1h_64_irq+0x80/0x88 [<ffffffd5d2527fb4>] arch_local_irq_enable+0x4/0x1c [<ffffffd5d25282e4>] cpuidle_enter+0x34/0x54 [<ffffffd5d195a678>] do_idle+0x1dc/0x2f8 [<ffffffd5d195a7c4>] cpu_startup_entry+0x30/0x3c [<ffffffd5d18155c4>] secondary_start_kernel+0x134/0x1ac [<ffffffd5d18640bc>] __secondary_switched+0xc4/0xcc

Affected

Product or packageVersionsReported by
Linux Linuxfrom bed0896008334eeee4b4bfd7150491ca098cbf72 before 0614f5618c24fbc3d555efade22887b102ad7ad6, from 9307a998cb9846a2557fdca286997430bee36a2a before be730f9ee92ae08f2bc4b336967bcfd8183c06fe, from 9307a998cb9846a2557fdca286997430bee36a2a before f4f590c6c9df7453bbda2ef9170b1b09e42a124c, from 9307a998cb9846a2557fdca286997430bee36a2a before 93b9e7ee9e93629db80bbc9dab8a874215b89ccf, from 9307a998cb9846a2557fdca286997430bee36a2a before 30df81f2228d65bddf492db3929d9fcaffd38fc5, 11d81233f4ebe6907b12c79ad7d8787aa4db0633, from 6.6.41 before 6.6.130, from 6.9.10 before 6.10 and 1 more
Not affected: before 6.10, from 6.6.130 up to 6.6.*, from 6.12.78 up to 6.12.*, from 6.18.19 up to 6.18.*, from 6.19.9 up to 6.19.*, from 7.0 up to *
CVE List
linux linux_kernelfrom 6.6.41 before 6.6.130, from 6.9.10 before 6.10, from 6.10.1 before 6.12.78, from 6.13 before 6.18.19, from 6.19 before 6.19.9, 6.10, 7.0NVD

Classification

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: scsi: ufs: core: Fix possible NULL pointer dereference in ufshcd_add_command_trace() The kernel log indicates a crash in ufshcd_add_command_trace, due to a NULL pointer dereference when accessing hwq->id. This can happen if ufshcd_mcq_req_to_hwq() returns NULL. This patch adds a NULL check for hwq before accessing its id field to prevent a kernel crash. Kernel log excerpt: [<ffffffd5d192dc4c>] notify_die+0x4c/0x8c [<ffffffd5d1814e58>] __die+0x60/0xb0 [<ffffffd5d1814d64>] die+0x4c/0xe0 [<ffffffd5d181575c>] die_kernel_fault+0x74/0x88 [<ffffffd5d1864db4>] __do_kernel_fault+0x314/0x318 [<ffffffd5d2a3cdf8>] do_page_fault+0xa4/0x5f8 [<ffffffd5d2a3cd34>] do_translation_fault+0x34/0x54 [<ffffffd5d1864524>] do_mem_abort+0x50/0xa8 [<ffffffd5d2a297dc>] el1_abort+0x3c/0x64 [<ffffffd5d2a29718>] el1h_64_sync_handler+0x44/0xcc [<ffffffd5d181133c>] el1h_64_sync+0x80/0x88 [<ffffffd5d255c1dc>] ufshcd_add_command_trace+0x23c/0x320 [<ffffffd5d255bad8>] ufshcd_compl_one_cqe+0xa4/0x404 [<ffffffd5d2572968>] ufshcd_mcq_poll_cqe_lock+0xac/0x104 [<ffffffd5d11c7460>] ufs_mtk_mcq_intr+0x54/0x74 [ufs_mediatek_mod] [<ffffffd5d19ab92c>] __handle_irq_event_percpu+0xc8/0x348 [<ffffffd5d19abca8>] handle_irq_event+0x3c/0xa8 [<ffffffd5d19b1f0c>] handle_fasteoi_irq+0xf8/0x294 [<ffffffd5d19aa778>] generic_handle_domain_irq+0x54/0x80 [<ffffffd5d18102bc>] gic_handle_irq+0x1d4/0x330 [<ffffffd5d1838210>] call_on_irq_stack+0x44/0x68 [<ffffffd5d183af30>] do_interrupt_handler+0x78/0xd8 [<ffffffd5d2a29c00>] el1_interrupt+0x48/0xa8 [<ffffffd5d2a29ba8>] el1h_64_irq_handler+0x14/0x24 [<ffffffd5d18113c4>] el1h_64_irq+0x80/0x88 [<ffffffd5d2527fb4>] arch_local_irq_enable+0x4/0x1c [<ffffffd5d25282e4>] cpuidle_enter+0x34/0x54 [<ffffffd5d195a678>] do_idle+0x1dc/0x2f8 [<ffffffd5d195a7c4>] cpu_startup_entry+0x30/0x3c [<ffffffd5d18155c4>] secondary_start_kernel+0x134/0x1ac [<ffffffd5d18640bc>] __secondary_switched+0xc4/0xcc

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: scsi: ufs: core: Corrección de posible desreferencia de puntero NULL en ufshcd_add_command_trace() El registro del kernel indica un fallo en ufshcd_add_command_trace, debido a una desreferencia de puntero NULL al acceder a hwq -> id. Esto puede ocurrir si ufshcd_mcq_req_to_hwq() devuelve NULL. Este parche añade una comprobación de NULL para hwq antes de acceder a su campo id para evitar un fallo del kernel. Extracto del registro del kernel: [[ffffffd5d192dc4c]] notify_die+0x4c/0x8c [[ffffffd5d1814e58]] __die+0x60/0xb0 [[ffffffd5d1814d64]] die+0x4c/0xe0 [[ffffffd5d181575c]] die_kernel_fault+0x74/0x88 [[ffffffd5d1864db4]] __do_kernel_fault+0x314/0x318 [[ffffffd5d2a3cdf8]] do_page_fault+0xa4/0x5f8 [[ffffffd5d2a3cd34]] do_translation_fault+0x34/0x54 [[ffffffd5d1864524]] do_mem_abort+0x50/0xa8 [[ffffffd5d2a297dc]] el1_abort+0x3c/0x64 [[ffffffd5d2a29718]] el1h_64_sync_handler+0x44/0xcc [[ffffffd5d181133c]] el1h_64_sync+0x80/0x88 [[ffffffd5d255c1dc]] ufshcd_add_command_trace+0x23c/0x320 [[ffffffd5d255bad8]] ufshcd_compl_one_cqe+0xa4/0x404 [[ffffffd5d2572968]] ufshcd_mcq_poll_cqe_lock+0xac/0x104 [[ffffffd5d11c7460]] ufs_mtk_mcq_intr+0x54/0x74 [ufs_mediatek_mod] [[ffffffd5d19ab92c]] __handle_irq_event_percpu+0xc8/0x348 [[ffffffd5d19abca8]] handle_irq_event+0x3c/0xa8 [[ffffffd5d19b1f0c]] handle_fasteoi_irq+0xf8/0x294 [[ffffffd5d19aa778]] generic_handle_domain_irq+0x54/0x80 [[ffffffd5d18102bc]] gic_handle_irq+0x1d4/0x330 [[ffffffd5d1838210]] call_on_irq_stack+0x44/0x68 [[ffffffd5d183af30]] do_interrupt_handler+0x78/0xd8 [[ffffffd5d2a29c00]] el1_interrupt+0x48/0xa8 [[ffffffd5d2a29ba8]] el1h_64_irq_handler+0x14/0x24 [[ffffffd5d18113c4]] el1h_64_irq+0x80/0x88 [[ffffffd5d2527fb4]] arch_local_irq_enable+0x4/0x1c [[ffffffd5d25282e4]] cpuidle_enter+0x34/0x54 [[ffffffd5d195a678]] do_idle+0x1dc/0x2f8 [[ffffffd5d195a7c4]] cpu_startup_entry+0x30/0x3c [[ffffffd5d18155c4]] secondary_start_kernel+0x134/0x1ac [[ffffffd5d18640bc]] __secondary_switched+0xc4/0xcc

References

Sources

SourceRecordLicence
CVE ListCVE-2026-43471 changed 2026-05-23CVE Terms of Use
NVDCVE-2026-43471 changed 2026-11-11Public domain