VDB

CVE-2022-21546

CVE-2022-21546 PUBLISHED CVSS 7.5 HIGH

scsi: target: Fix WRITE_SAME No Data Buffer crash

Reported by oracle · Published May 2, 2025

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.

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
LinuxLinuxf6970ad31d42fceb38b5595cbad093a4d0bfcc43, f6970ad31d42fceb38b5595cbad093a4d0bfcc43, f6970ad31d42fceb38b5595cbad093a4d0bfcc43
LinuxLinux3.8, 0, 5.4.294
linuxlinux_kernel3.8, 3.8, 3.8
LinuxLinux*, *, *

Timeline

  • May 2, 2025 CVE Published
  • May 3, 2025 EPSS Score (30 in total, the first dated here)
  • Jun 2, 2026 Security Advisory (84 in total, the first dated here)
  • Jul 7, 2026 Coalition ESS Score
  • Sep 19, 2026 Distribution Patch (82 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-21546
vulnetix vdb fixes CVE-2022-21546

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-21546/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›