Kernel crash via bufferless WRITE SAME command
Published May 2, 2025 · Updated Aug 5, 2026
NULL pointer dereference in Linux SCSI target code before 5.19 allows local users to crash the kernel via a bufferless WRITE SAME command. The target_core_iblock and target_core_file WRITE SAME handlers dereference se_cmd->t_data_sg when NDOB or zero scatter-gather elements supply no data buffer. Exploitation requires access to a configured SCSI target, and the documented consequence is a kernel crash rather than data disclosure or modification.
Summary
What happened
NULL pointer dereference in Linux SCSI target code before 5.19 allows local users to crash the kernel via a bufferless WRITE SAME command. The target_core_iblock and target_core_file WRITE SAME handlers dereference se_cmd->t_data_sg when NDOB or zero scatter-gather elements supply no data buffer. Exploitation requires access to a configured SCSI target, and the documented consequence is a kernel crash rather than data disclosure or modification.
The record
- CVE
- CVE-2022-21546
- Published
- May 2, 2025
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-476, T1499.004
- Attack vector
- local
- Privileges
- Unavailable
Timeline
How it unfolded
- May 2, 2025CVE publishedPublication date reported by the CVE source.
- Aug 5, 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=3.8
- Affected versionversion=f6970ad31d42fceb38b5595cbad093a4d0bfcc43 <4226622647e3e5ac06d3ebc1605b917446157510
- Affected versionversion=f6970ad31d42fceb38b5595cbad093a4d0bfcc43 <54e57be2573cf0b8bf650375fd8752987b6c3d3b
- Affected versionversion=f6970ad31d42fceb38b5595cbad093a4d0bfcc43 <ccd3f449052449a917a3e577d8ba0368f43b8f29
- Affected versionversion=f6970ad31d42fceb38b5595cbad093a4d0bfcc43 <d8e6a27e9238dd294d6f2f401655f300dca20899
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.
Weakness, pattern, technique
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