{"id":"CVE-2022-21546","aliases":["CVE-2022-21546"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: target: Fix WRITE_SAME No Data Buffer crash","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En versiones más recientes de las especificaciones de SBC, tenemos un bit NDOB que indica que no hay búfer de datos que se escriba. Si este bit se activa mediante comandos como \"sg_write_same --ndob\", se producirá un fallo en los controladores \"execute_write_same\" de target_core_iblock/file al acceder a se_cmd-&gt;t_data_sg, ya que es nulo. Puntuación base de CVSS 3.1: 7.7 (Afecta a la disponibilidad). Vector CVSS: (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H).","source":"nvd"}],"published":"2025-05-02T21:52:09.864Z","modified":"2026-08-05T08:51:31.985Z","severity":{"scorer":"oracle","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"oracle","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"f6970ad31d42fceb38b5595cbad093a4d0bfcc43","fixed":"54e57be2573cf0b8bf650375fd8752987b6c3d3b","status":"affected"},{"type":"git","introduced":"f6970ad31d42fceb38b5595cbad093a4d0bfcc43","fixed":"d8e6a27e9238dd294d6f2f401655f300dca20899","status":"affected"},{"type":"git","introduced":"f6970ad31d42fceb38b5595cbad093a4d0bfcc43","fixed":"4226622647e3e5ac06d3ebc1605b917446157510","status":"affected"},{"type":"git","introduced":"f6970ad31d42fceb38b5595cbad093a4d0bfcc43","fixed":"ccd3f449052449a917a3e577d8ba0368f43b8f29","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.8","status":"unaffected"},{"type":"semver","introduced":"5.4.294","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.238","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.182","lastAffected":"5.15.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"5.4.294"},{"status":"affected","introduced":"5.5","fixed":"5.10.238"},{"status":"affected","introduced":"5.11","fixed":"5.15.182"},{"status":"affected","introduced":"5.16","fixed":"5.19"},{"status":"affected","version":"5.19"},{"status":"affected","version":"5.19"},{"status":"affected","version":"5.19"},{"status":"affected","version":"5.19"},{"status":"affected","version":"5.19"},{"status":"affected","version":"5.19"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/54e57be2573cf0b8bf650375fd8752987b6c3d3b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d8e6a27e9238dd294d6f2f401655f300dca20899","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4226622647e3e5ac06d3ebc1605b917446157510","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ccd3f449052449a917a3e577d8ba0368f43b8f29","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["mailing-list"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"oracle","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-05-06T15:06:53.886Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-21546","url":"https://www.cve.org/CVERecord?id=CVE-2022-21546","licence":"CVE Terms of Use","modified":"2026-08-05T08:51:31.985Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-21546","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21546","licence":"Public domain","modified":"2026-08-04T10:17:13.243Z"}],"updatedAt":"2026-11-25T22:58:20.944Z","epss":{"score":0.00457,"percentile":0.41329,"date":"2026-12-01T12:00:22.000Z"}}