CVE-2021-47290
scsi: target: Fix NULL dereference on XCOPY completion
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 39ae3edda325e9cf9e978c9788affe88231f3b34, < e7732c5a19a15a62b0b23fd683a639b0483e1f40; >= 39ae3edda325e9cf9e978c9788affe88231f3b34, < a47fa41381a09e5997afd762664db4f5f6657e03
- Anyone running Linux 5.13
Vulnerability facts
- Affected
- Linux >= 39ae3edda325e9cf9e978c9788affe88231f3b34, < e7732c5a19a15a62b0b23fd683a639b0483e1f40; >= 39ae3edda325e9cf9e978c9788affe88231f3b34, < a47fa41381a09e5997afd762664db4f5f6657e03; Linux 5.13
- Fixed in
- No fix listed yet
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.65% chance of exploitation in 30 days (percentile 46, 2026-11-26)
- CWE
- CWE-476
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: scsi: target: Fix NULL dereference on XCOPY completion CPU affinity control added with commit 39ae3edda325 ("scsi: target: core: Make completion affinity configurable") makes target_complete_cmd() queue work on a CPU based on se_tpg->se_tpg_wwn->cmd_compl_affinity state. LIO's EXTENDED COPY worker is a special case in that read/write cmds are dispatched using the global xcopy_pt_tpg, which carries a NULL se_tpg_wwn pointer following initialization in target_xcopy_setup_pt(). The NULL xcopy_pt_tpg->se_tpg_wwn pointer is dereferenced on completion of any EXTENDED COPY initiated read/write cmds. E.g using the libiscsi SCSI.ExtendedCopy.Simple test: BUG: kernel NULL pointer dereference, address: 00000000000001a8 RIP: 0010:target_complete_cmd+0x9d/0x130 [target_core_mod] Call Trace: fd_execute_rw+0x148/0x42a [target_core_file] ? __dynamic_pr_debug+0xa7/0xe0 ? target_check_reservation+0x5b/0x940 [target_core_mod] __target_execute_cmd+0x1e/0x90 [target_core_mod] transport_generic_new_cmd+0x17c/0x330 [target_core_mod] target_xcopy_issue_pt_cmd+0x9/0x60 [target_core_mod] target_xcopy_read_source.isra.7+0x10b/0x1b0 [target_core_mod] ? target_check_fua+0x40/0x40 [target_core_mod] ? transport_complete_task_attr+0x130/0x130 [target_core_mod] target_xcopy_do_work+0x61f/0xc00 [target_core_mod] This fix makes target_complete_cmd() queue work on se_cmd->cpuid if se_tpg_wwn is NULL.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-47290. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-47290.md Affected: Linux >= 39ae3edda325e9cf9e978c9788affe88231f3b34, < e7732c5a19a15a62b0b23fd683a639b0483e1f40; >= 39ae3edda325e9cf9e978c9788affe88231f3b34, < a47fa41381a09e5997afd762664db4f5f6657e03; Linux 5.13 Fixed in: no fixed version listed yet 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.
References
FAQ
Is CVE-2021-47290 being exploited?
There is no confirmed exploitation: CVE-2021-47290 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.65% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-47290?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2021-47290?
Linux >= 39ae3edda325e9cf9e978c9788affe88231f3b34, < e7732c5a19a15a62b0b23fd683a639b0483e1f40; >= 39ae3edda325e9cf9e978c9788affe88231f3b34, < a47fa41381a09e5997afd762664db4f5f6657e03; Linux 5.13.
Is there a fix for CVE-2021-47290?
No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2021-47290?
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.