CVE-2026-16313: Improper Neutralization of CRLF Sequences ('CRLF Injection') in Red Hat Red Hat Enterprise Linux 10
A flaw was found in sg3_utils. The sg_inq command, when invoked with the --export option, outputs device identification data without sanitizing control characters in SCSI name string fields. A newline character embedded in a device-supplied name string can inject arbitrary properties into the udev device database. This could allow an attacker who can present a crafted SCSI device to execute arbitrary commands as root when the device is disconnected.
AI Analysis
Technical Summary
A command injection vulnerability exists in sg3_utils versions 1.34 through 1.48 in the export_dev_ids() function of the sg_inq command. When processing SCSI device identification data from VPD page 0x83, the SCSI name string and ATA vendor-ID subfield are output without sanitizing embedded control characters such as newline characters. An attacker with physical access can present a crafted SCSI or USB device embedding a newline character in these fields, causing sg_inq --export to split its udev KEY=VALUE output into multiple lines and inject arbitrary udev properties, including REMOVE_CMD. Systems with default udev rules invoking sg_inq --export and acting on REMOVE_CMD upon device removal can be exploited to execute arbitrary commands as root simply by disconnecting the crafted device. The vulnerability has a CVSS 3.1 score of 7.6 (high) with a physical attack vector, low complexity, no privileges or user interaction required, and impacts confidentiality, integrity, and availability. Red Hat has not yet included the upstream fix in any tagged sg3_utils release but has issued advisories and patches for Red Hat Enterprise Linux 9. Mitigations include removing or commenting out the REMOVE_CMD rule in udev and disabling the udev rule invoking sg_inq --export if automatic SCSI device identification is not needed.
Potential Impact
An attacker with physical access to a USB or SCSI port can connect a specially crafted device that injects arbitrary properties into the udev device database, leading to arbitrary command execution as root when the device is disconnected. This compromises system confidentiality, integrity, and availability with full root privileges. The attack requires physical access but no prior privileges or user interaction.
Mitigation Recommendations
Red Hat has released security updates addressing this vulnerability for Red Hat Enterprise Linux 9. Users should apply these updates promptly. If patching is not immediately possible, mitigations include removing or commenting out the REMOVE_CMD rule from the 50-udev-default.rules file to prevent command execution on device removal, or disabling the udev rule that invokes sg_inq --export if automatic SCSI device identification is not required. These mitigations reduce the risk of exploitation until patches can be applied.
CVE-2026-16313: Improper Neutralization of CRLF Sequences ('CRLF Injection') in Red Hat Red Hat Enterprise Linux 10
Description
A flaw was found in sg3_utils. The sg_inq command, when invoked with the --export option, outputs device identification data without sanitizing control characters in SCSI name string fields. A newline character embedded in a device-supplied name string can inject arbitrary properties into the udev device database. This could allow an attacker who can present a crafted SCSI device to execute arbitrary commands as root when the device is disconnected.
CVSS v3.1
Score 7.6high
Affected software
Red Hat
Red Hat Enterprise Linux 10
Red Hat
Red Hat Enterprise Linux 8
Red Hat
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
Red Hat
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On
Red Hat
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
Red Hat
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On
Red Hat
Red Hat Enterprise Linux 8.8 Telecommunications Update Service
Red Hat
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
Red Hat
Red Hat Enterprise Linux 9
Red Hat
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
Red Hat
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions
Red Hat
Red Hat Enterprise Linux 9.6 Extended Update Support
Red Hat
Red Hat OpenShift Container Platform 4.19
Red Hat
Red Hat OpenShift Container Platform 4.20
Red Hat
Red Hat OpenShift Container Platform 4.21
Red Hat
Red Hat OpenShift Container Platform 4.22
Red Hat
Red Hat Enterprise Linux 6
Red Hat
Red Hat Enterprise Linux 7
Red Hat
Red Hat OpenShift Container Platform 4
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
A command injection vulnerability exists in sg3_utils versions 1.34 through 1.48 in the export_dev_ids() function of the sg_inq command. When processing SCSI device identification data from VPD page 0x83, the SCSI name string and ATA vendor-ID subfield are output without sanitizing embedded control characters such as newline characters. An attacker with physical access can present a crafted SCSI or USB device embedding a newline character in these fields, causing sg_inq --export to split its udev KEY=VALUE output into multiple lines and inject arbitrary udev properties, including REMOVE_CMD. Systems with default udev rules invoking sg_inq --export and acting on REMOVE_CMD upon device removal can be exploited to execute arbitrary commands as root simply by disconnecting the crafted device. The vulnerability has a CVSS 3.1 score of 7.6 (high) with a physical attack vector, low complexity, no privileges or user interaction required, and impacts confidentiality, integrity, and availability. Red Hat has not yet included the upstream fix in any tagged sg3_utils release but has issued advisories and patches for Red Hat Enterprise Linux 9. Mitigations include removing or commenting out the REMOVE_CMD rule in udev and disabling the udev rule invoking sg_inq --export if automatic SCSI device identification is not needed.
Potential Impact
An attacker with physical access to a USB or SCSI port can connect a specially crafted device that injects arbitrary properties into the udev device database, leading to arbitrary command execution as root when the device is disconnected. This compromises system confidentiality, integrity, and availability with full root privileges. The attack requires physical access but no prior privileges or user interaction.
Mitigation Recommendations
Red Hat has released security updates addressing this vulnerability for Red Hat Enterprise Linux 9. Users should apply these updates promptly. If patching is not immediately possible, mitigations include removing or commenting out the REMOVE_CMD rule from the 50-udev-default.rules file to prevent command execution on device removal, or disabling the udev rule that invokes sg_inq --export if automatic SCSI device identification is not required. These mitigations reduce the risk of exploitation until patches can be applied.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- redhat
- Date Reserved
- 2026-07-20T15:35:41.936Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-16313","vendor":"Red Hat"}]
Threat ID: 6a68de669c2644c7f8e9c18a
Added to database: 07/28/2026, 16:52:54 UTC
Last enriched: 08/06/2026, 13:48:41 UTC
Last updated: 09/11/2026, 22:23:29 UTC
Views: 57
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.