{"id":"CVE-2023-53510","published":"2025-10-01T11:45:59Z","modified":"2026-08-05T09:14:32Z","title":"scsi: ufs: core: Fix handling of lrbp->cmd","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: ufs: core: Fix handling of lrbp->cmd\n\nufshcd_queuecommand() may be called two times in a row for a SCSI command\nbefore it is completed. Hence make the following changes:\n\n - In the functions that submit a command, do not check the old value of\n   lrbp->cmd nor clear lrbp->cmd in error paths.\n\n - In ufshcd_release_scsi_cmd(), do not clear lrbp->cmd.\n\nSee also scsi_send_eh_cmnd().\n\nThis commit prevents that the following appears if a command times out:\n\nWARNING: at drivers/ufs/core/ufshcd.c:2965 ufshcd_queuecommand+0x6f8/0x9a8\nCall trace:\n ufshcd_queuecommand+0x6f8/0x9a8\n scsi_send_eh_cmnd+0x2c0/0x960\n scsi_eh_test_devices+0x100/0x314\n scsi_eh_ready_devs+0xd90/0x114c\n scsi_error_handler+0x2b4/0xb70\n kthread+0x16c/0x1e0","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00156,"percentile":0.04717,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/b6d76d63c6d21d5d26c301a46853a2aee72397d5","tags":[]},{"url":"https://git.kernel.org/stable/c/f3ee24af62681b942bbd799ac77b90a6d7e1fdb1","tags":[]},{"url":"https://git.kernel.org/stable/c/49234a401e161a2f2698f4612ab792c49b3cad1b","tags":[]},{"url":"https://git.kernel.org/stable/c/549e91a9bbaa0ee480f59357868421a61d369770","tags":[]}],"priority":{"score":6.4,"factors":[{"name":"EPSS percentile","points":0.94},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 5a0b0cb9bee767ef10ff9ce2fb4141af06416288, < b6d76d63c6d21d5d26c301a46853a2aee72397d5",">= 5a0b0cb9bee767ef10ff9ce2fb4141af06416288, < f3ee24af62681b942bbd799ac77b90a6d7e1fdb1",">= 5a0b0cb9bee767ef10ff9ce2fb4141af06416288, < 49234a401e161a2f2698f4612ab792c49b3cad1b",">= 5a0b0cb9bee767ef10ff9ce2fb4141af06416288, < 549e91a9bbaa0ee480f59357868421a61d369770"]},{"vendor":"Linux","product":"Linux","versions":["3.12"]}],"euvd":{"id":"EUVD-2025-32785","exploited":false,"provenance":"source"}}