{"id":"CVE-2022-21546","published":"2025-05-02T21:52:09Z","modified":"2026-08-05T08:51:31Z","title":"scsi: target: Fix WRITE_SAME No Data Buffer crash","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: target: Fix WRITE_SAME No Data Buffer crash\n\nIn newer version of the SBC specs, we have a NDOB bit that indicates there\nis no data buffer that gets written out. If this bit is set using commands\nlike \"sg_write_same --ndob\" we will crash in target_core_iblock/file's\nexecute_write_same handlers when we go to access the se_cmd->t_data_sg\nbecause its NULL.\n\nThis patch adds a check for the NDOB bit in the common WRITE SAME code\nbecause we don't support it. And, it adds a check for zero SG elements in\neach handler in case the initiator tries to send a normal WRITE SAME with\nno data buffer.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00457,"percentile":0.40497,"provenance":"source"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"references":[{"url":"https://git.kernel.org/stable/c/54e57be2573cf0b8bf650375fd8752987b6c3d3b","tags":[]},{"url":"https://git.kernel.org/stable/c/d8e6a27e9238dd294d6f2f401655f300dca20899","tags":[]},{"url":"https://git.kernel.org/stable/c/4226622647e3e5ac06d3ebc1605b917446157510","tags":[]},{"url":"https://git.kernel.org/stable/c/ccd3f449052449a917a3e577d8ba0368f43b8f29","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":[]}],"priority":{"score":13.3,"factors":[{"name":"EPSS percentile","points":8.1},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= f6970ad31d42fceb38b5595cbad093a4d0bfcc43, < 54e57be2573cf0b8bf650375fd8752987b6c3d3b",">= f6970ad31d42fceb38b5595cbad093a4d0bfcc43, < d8e6a27e9238dd294d6f2f401655f300dca20899",">= f6970ad31d42fceb38b5595cbad093a4d0bfcc43, < 4226622647e3e5ac06d3ebc1605b917446157510",">= f6970ad31d42fceb38b5595cbad093a4d0bfcc43, < ccd3f449052449a917a3e577d8ba0368f43b8f29"]},{"vendor":"Linux","product":"Linux","versions":["3.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-05-06T15:06:53.886424Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-26770","exploited":false,"provenance":"source"}}