From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 46CA93F0ABB for ; Fri, 8 May 2026 14:27:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778250425; cv=none; b=JAhgHPAoAW31mP0ldKf+tfLVN4u/7CZWZs1qFE8wl3CZFeszXo9RWQktEEXjxo/hrDBQ1rMeS0GRJNiB1rh2Mafktj1Ni28G+jvQR6sXpvhHZUWA+RYi/vw7+etgtLr+5LQZeHIyw3n+kKbbvsWN76rYXiYeXcJ8r+sBmuTTT6w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778250425; c=relaxed/simple; bh=H9mbCvkfGqedBJ4i4bHquSDZeBJFTQotbirsVNEhVeg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SldflaKqYvhhFF48b20XKyqrq0zzo6NVH2gxpjF+uuLHIY5S4U10Oki6A2XD6yDd/p+lRCATeMgrHwrMimqFUZtAXVxgMsIIB/cmEjQWFkKd6IHh+EZT1qffajFJwO/L2bqdPpX2G3TMTs8HkcO/ZxalDEuK1GdWwQbtDGyHQac= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vPA9djvQ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="vPA9djvQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA16EC2BCB0; Fri, 8 May 2026 14:27:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778250425; bh=H9mbCvkfGqedBJ4i4bHquSDZeBJFTQotbirsVNEhVeg=; h=From:To:Cc:Subject:Date:Reply-To:From; b=vPA9djvQELHLvaaqt6d6l9ap3PHw+KOzH7PTL+NCjwtDx9EF6z3ksu5VvbWOO+V/5 qAmc4s/bzNpesS8S4/4CHkqwyiYNr2kSM3K46xdbYseQ1lH7C3ZMArwSsvnyKwJjx6 Eg1Al0bhBxja0iM/CDIpLjXVC4eZhE4idJhHU46Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43471: scsi: ufs: core: Fix possible NULL pointer dereference in ufshcd_add_command_trace() Date: Fri, 8 May 2026 16:23:20 +0200 Message-ID: <2026050805-CVE-2026-43471-3fa3@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3924; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=j2+Gz8uUt6hQc8emalGVerhZ2AkbdEx9lhgC6Nay6GI=; b=owGbwMvMwCRo6H6F97bub03G02pJDJl/P/bu+m+TqFbZLvtQRs5VX3+T5pmsqRaM+yQOys06b Cfvf352RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkti7D/ILD/jmKWYcEcrdO 9TOu/H/g34pZPxgWdGZtWu0gs7Y66leiAa//ramn3ggdBwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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: [] notify_die+0x4c/0x8c [] __die+0x60/0xb0 [] die+0x4c/0xe0 [] die_kernel_fault+0x74/0x88 [] __do_kernel_fault+0x314/0x318 [] do_page_fault+0xa4/0x5f8 [] do_translation_fault+0x34/0x54 [] do_mem_abort+0x50/0xa8 [] el1_abort+0x3c/0x64 [] el1h_64_sync_handler+0x44/0xcc [] el1h_64_sync+0x80/0x88 [] ufshcd_add_command_trace+0x23c/0x320 [] ufshcd_compl_one_cqe+0xa4/0x404 [] ufshcd_mcq_poll_cqe_lock+0xac/0x104 [] ufs_mtk_mcq_intr+0x54/0x74 [ufs_mediatek_mod] [] __handle_irq_event_percpu+0xc8/0x348 [] handle_irq_event+0x3c/0xa8 [] handle_fasteoi_irq+0xf8/0x294 [] generic_handle_domain_irq+0x54/0x80 [] gic_handle_irq+0x1d4/0x330 [] call_on_irq_stack+0x44/0x68 [] do_interrupt_handler+0x78/0xd8 [] el1_interrupt+0x48/0xa8 [] el1h_64_irq_handler+0x14/0x24 [] el1h_64_irq+0x80/0x88 [] arch_local_irq_enable+0x4/0x1c [] cpuidle_enter+0x34/0x54 [] do_idle+0x1dc/0x2f8 [] cpu_startup_entry+0x30/0x3c [] secondary_start_kernel+0x134/0x1ac [] __secondary_switched+0xc4/0xcc The Linux kernel CVE team has assigned CVE-2026-43471 to this issue. Affected and fixed versions =========================== Fixed in 6.6.130 with commit 0614f5618c24fbc3d555efade22887b102ad7ad6 Fixed in 6.12.78 with commit be730f9ee92ae08f2bc4b336967bcfd8183c06fe Fixed in 6.18.19 with commit f4f590c6c9df7453bbda2ef9170b1b09e42a124c Fixed in 6.19.9 with commit 93b9e7ee9e93629db80bbc9dab8a874215b89ccf Fixed in 7.0 with commit 30df81f2228d65bddf492db3929d9fcaffd38fc5 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-43471 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/ufs/core/ufshcd.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/0614f5618c24fbc3d555efade22887b102ad7ad6 https://git.kernel.org/stable/c/be730f9ee92ae08f2bc4b336967bcfd8183c06fe https://git.kernel.org/stable/c/f4f590c6c9df7453bbda2ef9170b1b09e42a124c https://git.kernel.org/stable/c/93b9e7ee9e93629db80bbc9dab8a874215b89ccf https://git.kernel.org/stable/c/30df81f2228d65bddf492db3929d9fcaffd38fc5