{"id":"CVE-2023-53510","aliases":["CVE-2023-53510"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: ufs: core: Fix handling of lrbp->cmd","summary":"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","summarySource":"cvelist","descriptions":[{"lang":"en","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","source":"cvelist"}],"published":"2025-10-01T11:45:59.421Z","modified":"2026-08-05T09:14:32.898Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-415"],"affected":[{"ranges":[{"type":"git","introduced":"5a0b0cb9bee767ef10ff9ce2fb4141af06416288","fixed":"b6d76d63c6d21d5d26c301a46853a2aee72397d5","status":"affected"},{"type":"git","introduced":"5a0b0cb9bee767ef10ff9ce2fb4141af06416288","fixed":"f3ee24af62681b942bbd799ac77b90a6d7e1fdb1","status":"affected"},{"type":"git","introduced":"5a0b0cb9bee767ef10ff9ce2fb4141af06416288","fixed":"49234a401e161a2f2698f4612ab792c49b3cad1b","status":"affected"},{"type":"git","introduced":"5a0b0cb9bee767ef10ff9ce2fb4141af06416288","fixed":"549e91a9bbaa0ee480f59357868421a61d369770","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.12","status":"unaffected"},{"type":"semver","introduced":"6.1.167","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.3.13","lastAffected":"6.3.*","status":"unaffected"},{"type":"semver","introduced":"6.4.4","lastAffected":"6.4.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.5","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.12","fixed":"6.1.167"},{"status":"affected","introduced":"6.2","fixed":"6.3.13"},{"status":"affected","introduced":"6.4","fixed":"6.4.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/b6d76d63c6d21d5d26c301a46853a2aee72397d5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f3ee24af62681b942bbd799ac77b90a6d7e1fdb1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/49234a401e161a2f2698f4612ab792c49b3cad1b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/549e91a9bbaa0ee480f59357868421a61d369770","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-53510","url":"https://www.cve.org/CVERecord?id=CVE-2023-53510","licence":"CVE Terms of Use","modified":"2026-08-05T09:14:32.898Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-53510","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53510","licence":"Public domain","modified":"2026-08-04T10:19:10.087Z"}],"updatedAt":"2026-11-25T22:58:34.916Z","epss":{"score":0.00238,"percentile":0.0892,"date":"2026-11-30T12:00:22.000Z"}}