CVE-2022-21546

scsi: target: Fix WRITE_SAME No Data Buffer crash

7.5 high EPSS 0.46%

Published 2 May 2025 Updated 5 Aug 2026 CNA: oracle

Check your servers for CVE-2022-21546

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-21546 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

7.5 high CVSS 3.1 from oracle (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.46%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 41.3% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 6 May 2025):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from f6970ad31d42fceb38b5595cbad093a4d0bfcc43, before 54e57be2573cf0b8bf650375fd8752987b6c3d3b
affected from f6970ad31d42fceb38b5595cbad093a4d0bfcc43, before d8e6a27e9238dd294d6f2f401655f300dca20899
affected from f6970ad31d42fceb38b5595cbad093a4d0bfcc43, before 4226622647e3e5ac06d3ebc1605b917446157510
affected from f6970ad31d42fceb38b5595cbad093a4d0bfcc43, before ccd3f449052449a917a3e577d8ba0368f43b8f29
Other versions: unaffected
Linux
affected 3.8
unaffected before 3.8
unaffected from 5.4.294 up to and including 5.4.*
unaffected from 5.10.238 up to and including 5.10.*
unaffected from 5.15.182 up to and including 5.15.*
unaffected 5.19 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-21546 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-21546

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-21546
trivy image --scanners vuln IMAGE | grep CVE-2022-21546

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-21546 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.