Overview
This report details a recently disclosed vulnerability, CVE-2022-21546, that affects the Linux kernel. The vulnerability lies specifically in the scsi: target subsystem and can potentially lead to system compromise or data leakage. With a CVSS score of 7.7, this vulnerability presents a considerable risk for systems running on the Linux kernel and underscores the need for immediate remediation.
Vulnerability Summary
CVE ID: CVE-2022-21546
Severity: High (CVSS: 7.7)
Attack Vector: Network
Privileges Required: Low
User Interaction: None
Impact: Potential system compromise and data leakage
Affected Products
Share secrets securely
Ameeba is private infrastructure for communication and sensitive work built on encrypted identity instead of exposed corporate identity systems.
Passwords, credentials, confidential files, screenshots, internal discussions, sensitive AI context, and private coordination should not become exposed across ordinary communication platforms.
- • Encrypted identity
- • Private Spaces for organizations and teams
- • End-to-end encrypted chat, calls, files, and notes
- • Sensitive AI work and protected collaboration
- • Built for information that cannot leak
Our mission is to secure human work alongside AI.
Product | Affected Versions
Linux Kernel | Versions prior to patch
How the Exploit Works
The vulnerability resides in the WRITE_SAME function of the scsi: target subsystem in the Linux kernel. The WRITE_SAME function allows an attacker to use commands like “sg_write_same –ndob” to set a NDOB bit, indicating that there is no data buffer to be written out. When this bit is set, the system crashes when it tries to access the se_cmd->t_data_sg because it’s NULL. If an attacker were to send a normal WRITE_SAME command with no data buffer, they could potentially compromise the system or cause data leakage.
Conceptual Example Code
Here’s a conceptual command-line example of how the vulnerability might be exploited:
$ sg_write_same --ndob /dev/sda
In this example, the sg_write_same command is used with the –ndob option on a device file, leading to a possible crash or further exploitation.
