# CVE-2023-53586: scsi: target: Fix multiple LUN\_RESET handling

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.67% (percentile 47, 2026-11-26)
- **CWE:** CWE-415
- **Published:** 2025-10-04T15:44:01.809Z
- **Modified:** 2026-08-05T09:14:57.558Z

## Who should check

- Anyone running Linux \>= 51ec502a32665fed66c7f03799ede4023b212536, \< e1f59cd18a10969d08a082264b557876ca38766e; \>= 51ec502a32665fed66c7f03799ede4023b212536, \< 9158c86fd3237acaea8f0181c7836d90fd6eea10; \>= 51ec502a32665fed66c7f03799ede4023b212536, \< eacfe32c3650bfd0e54224d160c431013d7f6998; \>= 51ec502a32665fed66c7f03799ede4023b212536, \< ed18526289b5603bf2253dee50f1d7ec245cf397; \>= 51ec502a32665fed66c7f03799ede4023b212536, \< 2c43de56f9220dca3e28c774d1c5e2cab574223a; \>= 51ec502a32665fed66c7f03799ede4023b212536, \< 673db054d7a2b5a470d7a25baf65956d005ad729
- Anyone running Linux 4.11

## Description

In the Linux kernel, the following vulnerability has been resolved:

scsi: target: Fix multiple LUN\_RESET handling

This fixes a bug where an initiator thinks a LUN\_RESET has cleaned up
running commands when it hasn't. The bug was added in commit 51ec502a3266
("target: Delete tmr from list before processing").

The problem occurs when:

 1. We have N I/O cmds running in the target layer spread over 2 sessions.

 2. The initiator sends a LUN\_RESET for each session.

 3. session1's LUN\_RESET loops over all the running commands from both
    sessions and moves them to its local drain\_task\_list.

 4. session2's LUN\_RESET does not see the LUN\_RESET from session1 because
    the commit above has it remove itself. session2 also does not see any
    commands since the other reset moved them off the state lists.

 5. sessions2's LUN\_RESET will then complete with a successful response.

 6. sessions2's inititor believes the running commands on its session are
    now cleaned up due to the successful response and cleans up the running
    commands from its side. It then restarts them.

 7. The commands do eventually complete on the backend and the target
    starts to return aborted task statuses for them. The initiator will
    either throw a invalid ITT error or might accidentally lookup a new
    task if the ITT has been reallocated already.

Fix the bug by reverting the patch, and serialize the execution of
LUN\_RESETs and Preempt and Aborts.

Also prevent us from waiting on LUN\_RESETs in core\_tmr\_drain\_tmr\_list,
because it turns out the original patch fixed a bug that was not
mentioned. For LUN\_RESET1 core\_tmr\_drain\_tmr\_list can see a second
LUN\_RESET and wait on it. Then the second reset will run
core\_tmr\_drain\_tmr\_list and see the first reset and wait on it resulting in
a deadlock.

## Affected and fixed versions

- Linux: \>= 51ec502a32665fed66c7f03799ede4023b212536, \< e1f59cd18a10969d08a082264b557876ca38766e; \>= 51ec502a32665fed66c7f03799ede4023b212536, \< 9158c86fd3237acaea8f0181c7836d90fd6eea10; \>= 51ec502a32665fed66c7f03799ede4023b212536, \< eacfe32c3650bfd0e54224d160c431013d7f6998; \>= 51ec502a32665fed66c7f03799ede4023b212536, \< ed18526289b5603bf2253dee50f1d7ec245cf397; \>= 51ec502a32665fed66c7f03799ede4023b212536, \< 2c43de56f9220dca3e28c774d1c5e2cab574223a; \>= 51ec502a32665fed66c7f03799ede4023b212536, \< 673db054d7a2b5a470d7a25baf65956d005ad729 (cvelist)
- Linux: 4.11 (cvelist)

## Mitigation

- Upgrade Linux to 673db054d7a2b5a470d7a25baf65956d005ad729 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53586. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53586.md
Affected: Linux >= 51ec502a32665fed66c7f03799ede4023b212536, < e1f59cd18a10969d08a082264b557876ca38766e; >= 51ec502a32665fed66c7f03799ede4023b212536, < 9158c86fd3237acaea8f0181c7836d90fd6eea10; >= 51ec502a32665fed66c7f03799ede4023b212536, < eacfe32c3650bfd0e54224d160c431013d7f6998; >= 51ec502a32665fed66c7f03…
Fixed in: Linux 9158c86fd3237acaea8f0181c7836d90fd6eea10, Linux 2c43de56f9220dca3e28c774d1c5e2cab574223a, Linux 673db054d7a2b5a470d7a25baf65956d005ad729

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53586 being exploited?

There is no confirmed exploitation: CVE-2023-53586 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.67% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53586?

High: CVSS 8.8 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2023-53586?

Linux \>= 51ec502a32665fed66c7f03799ede4023b212536, \< e1f59cd18a10969d08a082264b557876ca38766e; \>= 51ec502a32665fed66c7f03799ede4023b212536, \< 9158c86fd3237acaea8f0181c7836d90fd6eea10; \>= 51ec502a32665fed66c7f03799ede4023b212536, \< eacfe32c3650bfd0e54224d160c431013d7f6998; \>= 51ec502a32665fed66c7f03799ede4023b212536, \< ed18526289b5603bf2253dee50f1d7ec245cf397; \>= 51ec502a32665fed66c7f03799ede4023b212536, \< 2c43de56f9220dca3e28c774d1c5e2cab574223a; \>= 51ec502a32665fed66c7f03799ede4023b212536, \< 673db054d7a2b5a470d7a25baf65956d005ad729; Linux 4.11.

### Is there a fix for CVE-2023-53586?

Yes. Fixed in Linux 9158c86fd3237acaea8f0181c7836d90fd6eea10, Linux 2c43de56f9220dca3e28c774d1c5e2cab574223a, Linux 673db054d7a2b5a470d7a25baf65956d005ad729. Upgrade Linux to 673db054d7a2b5a470d7a25baf65956d005ad729 or later.

### How do I check if I'm affected by CVE-2023-53586?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/e1f59cd18a10969d08a082264b557876ca38766e>
- patch: <https://git.kernel.org/stable/c/9158c86fd3237acaea8f0181c7836d90fd6eea10>
- patch: <https://git.kernel.org/stable/c/eacfe32c3650bfd0e54224d160c431013d7f6998>
- patch: <https://git.kernel.org/stable/c/ed18526289b5603bf2253dee50f1d7ec245cf397>
- patch: <https://git.kernel.org/stable/c/2c43de56f9220dca3e28c774d1c5e2cab574223a>
- patch: <https://git.kernel.org/stable/c/673db054d7a2b5a470d7a25baf65956d005ad729>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53586>

HTML: <https://flawdb.com/CVE-2023-53586> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53586>
