Sg3_utils: sg3_utils: arbitrary command execution via udev property injection in sg_inq --export
Summary
| CVE | CVE-2026-16313 |
|---|---|
| State | PUBLISHED |
| Assigner | redhat |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-07-28 17:16:37 UTC |
| Updated | 2026-10-31 15:16:53 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 7.6 HIGH from [email protected]
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS: 0.003480000 probability, percentile 0.284710000 (date 2026-10-31)
Problem Types: CWE-93 | CWE-93 Improper Neutralization of CRLF Sequences ('CRLF Injection')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 7.6 | HIGH | CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| 3.1 | CNA | CVSS | 7.6 | HIGH | CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
PhysicalAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
ChangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Red Hat | Red Hat Enterprise Linux 10 | unaffected 0:1.48-7.el10_2.1 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 10.0 Extended Update Support | unaffected 0:1.48-7.el10_0.2 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 7 Extended Lifecycle Support | unaffected 1:1.37-20.el7_9 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8 | unaffected 0:1.44-6.el8_10.1 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | unaffected 0:1.44-5.el8_4.1 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On | unaffected 0:1.44-5.el8_4.1 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | unaffected 0:1.44-5.el8_6.1 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On | unaffected 0:1.44-5.el8_6.1 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.8 Telecommunications Update Service | unaffected 0:1.44-6.el8_8.1 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.8 Update Services For SAP Solutions | unaffected 0:1.44-6.el8_8.1 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9 | unaffected 0:1.47-10.el9_8.1 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9.2 Update Services For SAP Solutions | unaffected 0:1.47-9.el9_2.1 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9.4 Update Services For SAP Solutions | unaffected 0:1.47-9.el9_4.1 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9.6 Extended Update Support | unaffected 0:1.47-10.el9_6.2 * rpm | Not specified |
| CNA | Red Hat | Red Hat OpenShift Container Platform 4.12 | unaffected 412.86.202609082051-0 * rpm | Not specified |
| CNA | Red Hat | Red Hat OpenShift Container Platform 4.16 | unaffected 416.94.202609140240-0 * rpm | Not specified |
| CNA | Red Hat | Red Hat OpenShift Container Platform 4.17 | unaffected 417.94.202609191027-0 * rpm | Not specified |
| CNA | Red Hat | Red Hat OpenShift Container Platform 4.18 | unaffected 418.94.202609031320-0 * rpm | Not specified |
| CNA | Red Hat | Red Hat OpenShift Container Platform 4.19 | unaffected 4.19.9.6.202609021231-0 * rpm | Not specified |
| CNA | Red Hat | Red Hat OpenShift Container Platform 4.20 | unaffected 4.20.9.6.202609021029-0 * rpm | Not specified |
| CNA | Red Hat | Red Hat OpenShift Container Platform 4.21 | unaffected 4.21.9.6.202609021100-0 * rpm | Not specified |
| CNA | Red Hat | Red Hat OpenShift Container Platform 4.22 | unaffected 4.22.9.8.202608130832-0 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 6 | Not specified | Not specified |
| CNA | Red Hat | Red Hat OpenShift Container Platform 5 | Not specified | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| access.redhat.com/errata/RHSA-2026:50141 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:65851 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:59567 | [email protected] | access.redhat.com | |
| bugzilla.redhat.com/show_bug.cgi | [email protected] | bugzilla.redhat.com | |
| access.redhat.com/errata/RHSA-2026:65907 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:54769 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:59568 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:63044 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:70586 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:67935 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:50142 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:56130 | [email protected] | access.redhat.com | |
| github.com/doug-gilbert/sg3_utils/pull/83 | [email protected] | github.com | |
| access.redhat.com/errata/RHSA-2026:61261 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:69124 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:67157 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:61260 | [email protected] | access.redhat.com | |
| access.redhat.com/security/cve/CVE-2026-16313 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:63041 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:59397 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:59555 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:63100 | [email protected] | access.redhat.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Upstream acknowledges Shaomin Chen as the original reporter. (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-06-01T18:13:24.000Z | Reported to Red Hat. |
| CNA | 2026-06-01T18:13:24.000Z | Made public. |
Workarounds
CNA: 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.
There are currently no legacy QID mappings associated with this CVE.