Kernel crash via zero-size scsi_debug allocation
Published Jun 19, 2024 · Updated May 11, 2026
NULL pointer dereference in Linux 5.8 through 5.10.87 and 5.11 through 5.15.10 allows local users to crash the kernel via scsi_debug. drivers/scsi/scsi_debug.c calls kcalloc() with a zero element count, receives ZERO_SIZE_PTR rather than NULL, and later passes that invalid pointer to sg_copy_buffer(), which writes through memcpy(). Reaching the fault requires local access to issue SCSI commands to a scsi_debug virtual device; the demonstrated consequence is a kernel crash, with no reported confidentiality or integrity impact.
Summary
What happened
NULL pointer dereference in Linux 5.8 through 5.10.87 and 5.11 through 5.15.10 allows local users to crash the kernel via scsi_debug. drivers/scsi/scsi_debug.c calls kcalloc() with a zero element count, receives ZERO_SIZE_PTR rather than NULL, and later passes that invalid pointer to sg_copy_buffer(), which writes through memcpy(). Reaching the fault requires local access to issue SCSI commands to a scsi_debug virtual device; the demonstrated consequence is a kernel crash, with no reported confidentiality or integrity impact.
The record
- CVE
- CVE-2021-47578
- Published
- Jun 19, 2024
- Updated
- May 11, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-476, T1499
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jun 19, 2024CVE publishedPublication date reported by the CVE source.
- May 11, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=5.8
- Affected versionversion=c3e2fe9222d428f115baeba2f6b3637b3aa444cd <3344b58b53a76199dae48faa396e9fc37bf86992
- Affected versionversion=c3e2fe9222d428f115baeba2f6b3637b3aa444cd <47d11d35203b0aa13533634e270fe2c3610e531b
- Affected versionversion=c3e2fe9222d428f115baeba2f6b3637b3aa444cd <aa1f912712a109b6306746133de7e5343f016b26
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo