# CVE-2022-21546: scsi: target: Fix WRITE\_SAME No Data Buffer crash

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

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.76% (percentile 51, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-05-02T21:52:09.864Z
- **Modified:** 2026-08-05T08:51:31.985Z

## Who should check

- Anyone running Linux \>= f6970ad31d42fceb38b5595cbad093a4d0bfcc43, \< 54e57be2573cf0b8bf650375fd8752987b6c3d3b; \>= f6970ad31d42fceb38b5595cbad093a4d0bfcc43, \< d8e6a27e9238dd294d6f2f401655f300dca20899; \>= f6970ad31d42fceb38b5595cbad093a4d0bfcc43, \< 4226622647e3e5ac06d3ebc1605b917446157510; \>= f6970ad31d42fceb38b5595cbad093a4d0bfcc43, \< ccd3f449052449a917a3e577d8ba0368f43b8f29
- Anyone running Linux 3.8

## Description

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

scsi: target: Fix WRITE\_SAME No Data Buffer crash

In newer version of the SBC specs, we have a NDOB bit that indicates there
is no data buffer that gets written out. If this bit is set using commands
like "sg\_write\_same --ndob" we will crash in target\_core\_iblock/file's
execute\_write\_same handlers when we go to access the se\_cmd-\>t\_data\_sg
because its NULL.

This patch adds a check for the NDOB bit in the common WRITE SAME code
because we don't support it. And, it adds a check for zero SG elements in
each handler in case the initiator tries to send a normal WRITE SAME with
no data buffer.

## Affected and fixed versions

- Linux: \>= f6970ad31d42fceb38b5595cbad093a4d0bfcc43, \< 54e57be2573cf0b8bf650375fd8752987b6c3d3b; \>= f6970ad31d42fceb38b5595cbad093a4d0bfcc43, \< d8e6a27e9238dd294d6f2f401655f300dca20899; \>= f6970ad31d42fceb38b5595cbad093a4d0bfcc43, \< 4226622647e3e5ac06d3ebc1605b917446157510; \>= f6970ad31d42fceb38b5595cbad093a4d0bfcc43, \< ccd3f449052449a917a3e577d8ba0368f43b8f29 (cvelist)
- Linux: 3.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-21546.md
Affected: Linux >= f6970ad31d42fceb38b5595cbad093a4d0bfcc43, < 54e57be2573cf0b8bf650375fd8752987b6c3d3b; >= f6970ad31d42fceb38b5595cbad093a4d0bfcc43, < d8e6a27e9238dd294d6f2f401655f300dca20899; >= f6970ad31d42fceb38b5595cbad093a4d0bfcc43, < 4226622647e3e5ac06d3ebc1605b917446157510; >= f6970ad31d42fceb38b5595…
Fixed in: Linux 54e57be2573cf0b8bf650375fd8752987b6c3d3b, Linux 4226622647e3e5ac06d3ebc1605b917446157510

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-2022-21546 being exploited?

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

### How serious is CVE-2022-21546?

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

### Which versions are affected by CVE-2022-21546?

Linux \>= f6970ad31d42fceb38b5595cbad093a4d0bfcc43, \< 54e57be2573cf0b8bf650375fd8752987b6c3d3b; \>= f6970ad31d42fceb38b5595cbad093a4d0bfcc43, \< d8e6a27e9238dd294d6f2f401655f300dca20899; \>= f6970ad31d42fceb38b5595cbad093a4d0bfcc43, \< 4226622647e3e5ac06d3ebc1605b917446157510; \>= f6970ad31d42fceb38b5595cbad093a4d0bfcc43, \< ccd3f449052449a917a3e577d8ba0368f43b8f29; Linux 3.8.

### Is there a fix for CVE-2022-21546?

Yes. Fixed in Linux 54e57be2573cf0b8bf650375fd8752987b6c3d3b, Linux 4226622647e3e5ac06d3ebc1605b917446157510. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-21546?

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/54e57be2573cf0b8bf650375fd8752987b6c3d3b>
- patch: <https://git.kernel.org/stable/c/d8e6a27e9238dd294d6f2f401655f300dca20899>
- patch: <https://git.kernel.org/stable/c/4226622647e3e5ac06d3ebc1605b917446157510>
- patch: <https://git.kernel.org/stable/c/ccd3f449052449a917a3e577d8ba0368f43b8f29>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>

## 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-2022-21546>

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