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.
Published: 2026-07-28
Score: 7.6 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The sg3_utils utility contains a flaw in the sg_inq command when run with the --export option. Outputting device identification data without sanitizing control characters in SCSI name fields allows a newline embedded in a device‑supplied name string to inject arbitrary properties into the udev database. This injection gives an attacker who can present a crafted SCSI device the ability to execute arbitrary commands as root upon device disconnection, effectively providing root command execution.

Affected Systems

Red Hat Enterprise Linux 10, 6, 7, 8, 9 and Red Hat OpenShift Container Platform 4 systems that include sg3_utils. Any installation of the default sg3_utils package on these platforms is vulnerable, and the exposed file is /etc/udev/rules.d/50-udev-default.rules.

Risk and Exploitability

The vulnerability receives a CVSS base score of 7.6, indicating a high severity. The EPSS score is below 1 %, suggesting that exploitation is unlikely but still possible. The issue is not yet listed in the CISA KEV catalog. The likely attack vector involves an attacker who can place a malicious or tampered SCSI device on the system, optionally disconnecting it to trigger command execution. In the absence of a credible exploit in the wild, the risk is mainly mitigated by policy controls, but the high severity demands remediation.

Generated by OpenCVE AI on August 3, 2026 at 14:44 UTC.

Remediation

Vendor Workaround

Remove or comment out the REMOVE_CMD rule from 50-udev-default.rules to prevent command execution on device removal. Alternatively, if automatic SCSI device identification is not required, disable the udev rule that invokes sg_inq --export on device connection.


OpenCVE Recommended Actions

  • Disable the udev rule that invokes sg_inq --export by commenting or removing the relevant entry in /etc/udev/rules.d/50-udev-default.rules.
  • Remove or comment out the REMOVE_CMD rule in the same udev rule file to prevent command execution on device removal.
  • If automatic SCSI device identification is not required, disable the udev rule that calls sg_inq --export on device connection.
  • Apply the vendor‑provided patch for sg3_utils when it becomes available to fully fix the issue.

Generated by OpenCVE AI on August 3, 2026 at 14:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 05 Aug 2026 10:45:00 +0000

Type Values Removed Values Added
First Time appeared Redhat openshift Container Platform
Vendors & Products Redhat openshift Container Platform

Tue, 04 Aug 2026 21:15:00 +0000

Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:10 cpe:/o:redhat:enterprise_linux:10.2
References

Tue, 04 Aug 2026 20:15:00 +0000

Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:9 cpe:/a:redhat:enterprise_linux:9::crb
cpe:/o:redhat:enterprise_linux:9::baseos
References

Tue, 28 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 28 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
First Time appeared Redhat openshift
CPEs cpe:/a:redhat:openshift:4
cpe:/o:redhat:enterprise_linux:6
Vendors & Products Redhat openshift

Tue, 28 Jul 2026 17:00:00 +0000

Type Values Removed Values Added
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.
Title Sg3_utils: sg3_utils: arbitrary command execution via udev property injection in sg_inq --export
First Time appeared Redhat
Redhat enterprise Linux
Weaknesses CWE-93
CPEs cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
References
Metrics cvssV3_1

{'score': 7.6, 'vector': 'CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H'}


Subscriptions

Redhat Enterprise Linux Openshift Openshift Container Platform
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-08-04T20:43:41.215Z

Reserved: 2026-07-20T15:35:41.936Z

Link: CVE-2026-16313

cve-icon Vulnrichment

Updated: 2026-07-28T19:34:41.963Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-28T17:16:37.807

Modified: 2026-08-04T21:16:35.387

Link: CVE-2026-16313

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T10:22:35Z

Weaknesses
  • CWE-93

    Improper Neutralization of CRLF Sequences ('CRLF Injection')