{"id":"CVE-2023-53609","state":"PUBLISHED","title":"scsi: Revert \"scsi: core: Do not increase scsi_device's iorequest_cnt if dispatch failed\"","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: Revert \"scsi: core: Do not increase scsi_device's iorequest_cnt if dispatch failed\"\n\nThe \"atomic_inc(&cmd->device->iorequest_cnt)\" in scsi_queue_rq() would\ncause kernel panic because cmd->device may be freed after returning from\nscsi_dispatch_cmd().\n\nThis reverts commit cfee29ffb45b1c9798011b19d454637d1b0fe87d.","publishedAt":"2025-10-04T15:44:18.151Z","updatedAt":"2026-10-15T21:41:31.827Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"cfee29ffb45b1c9798011b19d454637d1b0fe87d","status":"affected","lessThan":"35fe6fa57b994e7da222893adf0bb748d6055e73","versionType":"git"},{"version":"cfee29ffb45b1c9798011b19d454637d1b0fe87d","status":"affected","lessThan":"6ca9818d1624e136a76ae8faedb6b6c95ca66903","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/scsi_lib.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.2","versionType":"semver"},{"version":"6.3.4","status":"unaffected","lessThanOrEqual":"6.3.*","versionType":"semver"},{"version":"6.4","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/scsi_lib.c"]}],"references":["https://git.kernel.org/stable/c/35fe6fa57b994e7da222893adf0bb748d6055e73","https://git.kernel.org/stable/c/6ca9818d1624e136a76ae8faedb6b6c95ca66903"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/53xxx/CVE-2023-53609.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-53609","state":"PUBLISHED","datePublished":"2025-10-04T15:44:18.151Z","dateUpdated":"2026-10-15T21:41:31.827Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-10-04T15:40:38.480Z"},"containers":{"cna":{"title":"scsi: Revert \"scsi: core: Do not increase scsi_device's iorequest_cnt if dispatch failed\"","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: Revert \"scsi: core: Do not increase scsi_device's iorequest_cnt if dispatch failed\"\n\nThe \"atomic_inc(&cmd->device->iorequest_cnt)\" in scsi_queue_rq() would\ncause kernel panic because cmd->device may be freed after returning from\nscsi_dispatch_cmd().\n\nThis reverts commit cfee29ffb45b1c9798011b19d454637d1b0fe87d."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"cfee29ffb45b1c9798011b19d454637d1b0fe87d","status":"affected","lessThan":"35fe6fa57b994e7da222893adf0bb748d6055e73","versionType":"git"},{"version":"cfee29ffb45b1c9798011b19d454637d1b0fe87d","status":"affected","lessThan":"6ca9818d1624e136a76ae8faedb6b6c95ca66903","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/scsi_lib.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.2","versionType":"semver"},{"version":"6.3.4","status":"unaffected","lessThanOrEqual":"6.3.*","versionType":"semver"},{"version":"6.4","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/scsi_lib.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/35fe6fa57b994e7da222893adf0bb748d6055e73"},{"url":"https://git.kernel.org/stable/c/6ca9818d1624e136a76ae8faedb6b6c95ca66903"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerable code is the SCSI mid-layer dispatch path (scsi_queue_rq/scsi_dispatch_cmd) on the initiator side, reached only by submitting I/O to a local SCSI device; there is no remote/network trigger.\nAC:L - Exploitation is a cross-CPU UAF race between command completion/device teardown and the trailing atomic_inc; an attacker controlling a removable/hot-pluggable SCSI device can drive both I/O and removal and retry the race repeatedly, so complexity is Low.\nPR:L - Reaching the vulnerable atomic_inc requires a local authenticated user able to submit I/O to (or open) a SCSI device; no elevated capability is needed to dispatch a command down this path.\nUI:N - The bug is triggered by ordinary I/O submission and concurrent device release; no action by a separate victim user is required.\nS:U - The corruption is confined to the kernel's own memory within the same security authority; no VM/IOMMU/sandbox boundary is crossed.\nC:H - The use-after-free operates on a freed scsi_device slab object whose contents an attacker can control via heap grooming, and per UAF scoring guidance such freed-object access is treated as enabling high-impact information disclosure.\nI:H - The atomic_inc is a use-after-free read-modify-write into a freed, potentially attacker-reallocated object, a memory-corruption write primitive that per guidance is scored High.\nA:H - The commit explicitly states the bug causes a kernel panic, and any use-after-free reliably produces a crash/oops."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T09:15:07.229Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.4"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2023-53609","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-15T21:35:54.558433Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-15T21:41:31.827Z"}}]}}}