CVE-2022-21546
HighIn 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.
CVSS 3.1 score
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness type
CWE-476CVE-2022-21546 is a NULL Pointer Dereference vulnerability
What is NULL Pointer Dereference?
The product dereferences a pointer that it expects to be valid but is NULL, typically causing a crash. Learn more on MITRE CWE
Affected versions
Linux kernel versions
3.8
and later are affected. Fixed in
5.4.294,
5.10.238,
5.15.182,
5.19
and their respective stable series.
References
The following references provide additional information about CVE-2022-21546 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
Mailing List
-
PatchKernel patch commithttps://git.kernel.org/stable/c/4226622647e3e5ac06d3ebc1605b917446157510
-
PatchKernel patch commithttps://git.kernel.org/stable/c/54e57be2573cf0b8bf650375fd8752987b6c3d3b
-
PatchKernel patch commithttps://git.kernel.org/stable/c/ccd3f449052449a917a3e577d8ba0368f43b8f29
Frequently asked questions
-
What is CVE-2022-21546?
CVE-2022-21546 is a High severity Linux kernel vulnerability with a CVSS score of 7.8 out of 10 , classified as a NULL Pointer Dereference flaw (CWE-476) . It affects Linux kernel versions from 3.8 onward and has been patched in 5.4.294, 5.10.238, 5.15.182 and others. CVE-2022-21546 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2022-21546?
CVE-2022-21546 has a CVSS score of 7.8 out of 10, rated High severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. -
Is there a patch available for CVE-2022-21546?
Yes — CVE-2022-21546 has been patched. Fixed versions include 5.4.294, 5.10.238, 5.15.182 and others. If you are running Linux kernel 3.8 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2022-21546 actively exploited?
No — CVE-2022-21546 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
-
What is NULL Pointer Dereference (CWE-476)?
The product dereferences a pointer that it expects to be valid but is NULL, typically causing a crash. View CWE-476 on MITRE CWE →