cve.bz

CVE-2026-16313 Sg3_utils: sg3_utils: arbitrary command execution via udev property injection in sg_inq --export

7.6 highEPSS 0.3%Fix available

High (7.6) in red hat. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.6 high
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 29th percentile. Scored 2026-11-19. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-07-28. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-93 Improper Neutralization of CRLF Sequences (CRLF Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
Assigned by
redhat (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Enterprise Linux 10: fixed in 0:1.48-7.el10_2.1
  • Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support: fixed in 0:1.48-7.el10_0.2
  • Red Hat Red Hat Enterprise Linux 7 Extended Lifecycle Support: fixed in 1:1.37-20.el7_9
  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:1.44-6.el8_10.1
  • Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support: fixed in 0:1.44-5.el8_4.1
  • Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On: fixed in 0:1.44-5.el8_4.1
  • Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support: fixed in 0:1.44-5.el8_6.1
  • Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On: fixed in 0:1.44-5.el8_6.1
  • Debian, Ubuntu, Red Hat, AlmaLinux, Rocky Linux: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2026-16313 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-16313?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-16313?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-16313 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 100:1.48-7.el10_2.1
Red Hat Enterprise Linux 10.0 Extended Update Support0:1.48-7.el10_0.2
Red Hat Enterprise Linux 7 Extended Lifecycle Support1:1.37-20.el7_9
Red Hat Enterprise Linux 80:1.44-6.el8_10.1
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support0:1.44-5.el8_4.1
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On0:1.44-5.el8_4.1
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support0:1.44-5.el8_6.1
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On0:1.44-5.el8_6.1
Red Hat Enterprise Linux 8.8 Telecommunications Update Service0:1.44-6.el8_8.1
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions0:1.44-6.el8_8.1
Red Hat Enterprise Linux 90:1.47-10.el9_8.1
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions0:1.47-9.el9_2.1
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions0:1.47-9.el9_4.1
Red Hat Enterprise Linux 9.6 Extended Update Support0:1.47-10.el9_6.2
Red Hat OpenShift Container Platform 4.12412.86.202609082051-0
Red Hat OpenShift Container Platform 4.13413.92.202611041925-0
Red Hat OpenShift Container Platform 4.14414.92.202611040941-0
Red Hat OpenShift Container Platform 4.15415.92.202611051005-0
Red Hat OpenShift Container Platform 4.16416.94.202609140240-0
Red Hat OpenShift Container Platform 4.17417.94.202609191027-0
Red Hat OpenShift Container Platform 4.18418.94.202609031320-0
Red Hat OpenShift Container Platform 4.194.19.9.6.202609021231-0
Red Hat OpenShift Container Platform 4.204.20.9.6.202609021029-0
Red Hat OpenShift Container Platform 4.214.21.9.6.202609021100-0
Red Hat OpenShift Container Platform 4.224.22.9.8.202608130832-0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13sg3-utilsno fix listedDEBIAN-CVE-2026-16313
Debian14sg3-utils1.48-4DEBIAN-CVE-2026-16313
Ubuntu22.04:LTSsg3-utils1.46-1ubuntu0.22.04.2UBUNTU-CVE-2026-16313 USN-8874-1
Ubuntu24.04:LTSsg3-utils1.46-3ubuntu4.1UBUNTU-CVE-2026-16313 USN-8874-1
Ubuntu26.04:LTSsg3-utils1.48-3ubuntu3.2UBUNTU-CVE-2026-16313 USN-8874-1
Ubuntu26.10sg3-utils1.48-3ubuntu5UBUNTU-CVE-2026-16313
UbuntuPro:14.04:LTSsg3-utils1.36-1ubuntu1+esm1UBUNTU-CVE-2026-16313 USN-8874-1
UbuntuPro:16.04:LTSsg3-utils1.40-0ubuntu1+esm1UBUNTU-CVE-2026-16313 USN-8874-1
UbuntuPro:18.04:LTSsg3-utils1.42-2ubuntu1.18.04.2+esm1UBUNTU-CVE-2026-16313 USN-8874-1
UbuntuPro:20.04:LTSsg3-utils1.44-1ubuntu2+esm1UBUNTU-CVE-2026-16313 USN-8874-1
Red Hatenterprise_linux:8::baseossg3_utils, sg3_utils-libs, sg3_utils-debuginfo and 2 more0:1.44-6.el8_10.1RHSA-2026:56130
Red Hatenterprise_linux:8::crbsg3_utils-devel, sg3_utils-debuginfo, sg3_utils-debugsource and 1 more0:1.44-6.el8_10.1RHSA-2026:56130
Red Hatenterprise_linux:9::baseossg3_utils, sg3_utils-libs, sg3_utils-debuginfo and 2 more0:1.47-10.el9_8.1RHSA-2026:50141
Red Hatenterprise_linux:9::crbsg3_utils-devel, sg3_utils-debuginfo, sg3_utils-debugsource and 1 more0:1.47-10.el9_8.1RHSA-2026:50141
Red Hatenterprise_linux:10.2sg3_utils, sg3_utils-libs, sg3_utils-devel and 3 more0:1.48-7.el10_2.1RHSA-2026:50142
Red Hatenterprise_linux_eus:10.0sg3_utils, sg3_utils-libs, sg3_utils-devel and 3 more0:1.48-7.el10_0.2RHSA-2026:69124
Red Hatrhel_aus:8.4::baseos, rhel_eus_long_life:8.4::baseossg3_utils, sg3_utils-libs, sg3_utils-debuginfo and 2 more0:1.44-5.el8_4.1RHSA-2026:59555
Red Hatrhel_aus:8.6::baseos, rhel_eus_long_life:8.6::baseossg3_utils, sg3_utils-libs, sg3_utils-debuginfo and 2 more0:1.44-5.el8_6.1RHSA-2026:59567
Red Hatrhel_e4s:8.8::baseos, rhel_tus:8.8::baseossg3_utils, sg3_utils-libs, sg3_utils-debuginfo and 2 more0:1.44-6.el8_8.1RHSA-2026:59568
Red Hatrhel_e4s:9.2::baseossg3_utils, sg3_utils-libs, sg3_utils-debuginfo and 2 more0:1.47-9.el9_2.1RHSA-2026:61261
Red Hatrhel_e4s:9.4::baseossg3_utils, sg3_utils-libs, sg3_utils-debuginfo and 2 more0:1.47-9.el9_4.1RHSA-2026:61260
Red Hatrhel_els:7sg3_utils, sg3_utils-libs, sg3_utils-devel and 1 more1:1.37-20.el7_9RHSA-2026:67157
2 more for Red Hat in the JSON and on Red Hat's page.
AlmaLinux8sg3_utils, sg3_utils-libs, sg3_utils-devel1.44-6.el8_10.1ALSA-2026:56130
AlmaLinux9sg3_utils, sg3_utils-libs, sg3_utils-devel1.47-10.el9_8.1ALSA-2026:50141
AlmaLinux10sg3_utils, sg3_utils-libs, sg3_utils-devel1.48-7.el10_2.1ALSA-2026:50142
Rocky Linux8sg3_utils0:1.44-6.el8_10.1RLSA-2026:56130
Rocky Linux9sg3_utils0:1.47-10.el9_8.1RLSA-2026:50141
Rocky Linux10sg3_utils0:1.48-7.el10_2.1RLSA-2026:50142
Azure Linux3sg3_utilsno fix listedAZL-94311

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

sg3_utils versions 1.34 through 1.48 contain a command injection flaw in the export_dev_ids() function of sg_inq. When sg_inq --export processes SCSI device identification data from VPD page 0x83, the SCSI name string designator (type 8) and the ATA vendor-ID subfield are printed without sanitizing embedded control characters. A crafted SCSI/USB device can embed a newline in this field, splitting sg_inq's udev KEY=VALUE output into two lines and injecting an arbitrary udev property, including REMOVE_CMD. On systems whose default udev rules invoke sg_inq --export for SCSI device identification and act on REMOVE_CMD when a device is removed, this allows a local attacker with physical access to a USB/SCSI port to achieve arbitrary command execution as root simply by disconnecting the crafted device.

Exploitation requires physical access to attach the malicious device, consistent with Red Hat's Physical (AV:P) attack vector scoring. The upstream fix (udev-conforming character escaping for this field) has not yet been included in any tagged sg3_utils release; all Red Hat-shipped versions of sg3_utils in the 1.34-1.48 range are affected.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10sg3_utils-0:1.48-7.el10_2.1Fixed 2026-08-04RHSA-2026:50142
Red Hat Enterprise Linux 10.0 Extended Update Supportsg3_utils-0:1.48-7.el10_0.2Fixed 2026-09-21RHSA-2026:69124
Red Hat Enterprise Linux 7 Extended Lifecycle Supportsg3_utils-1:1.37-20.el7_9Fixed 2026-09-14RHSA-2026:67157
Red Hat Enterprise Linux 8sg3_utils-0:1.44-6.el8_10.1Fixed 2026-08-18RHSA-2026:56130
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportsg3_utils-0:1.44-5.el8_4.1Fixed 2026-08-25RHSA-2026:59555
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onsg3_utils-0:1.44-5.el8_4.1Fixed 2026-08-25RHSA-2026:59555
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportsg3_utils-0:1.44-5.el8_6.1Fixed 2026-08-25RHSA-2026:59567
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Onsg3_utils-0:1.44-5.el8_6.1Fixed 2026-08-25RHSA-2026:59567
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicesg3_utils-0:1.44-6.el8_8.1Fixed 2026-08-25RHSA-2026:59568
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionssg3_utils-0:1.44-6.el8_8.1Fixed 2026-08-25RHSA-2026:59568
Red Hat Enterprise Linux 9sg3_utils-0:1.47-10.el9_8.1Fixed 2026-08-04RHSA-2026:50141
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionssg3_utils-0:1.47-9.el9_2.1Fixed 2026-08-31RHSA-2026:61261
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutionssg3_utils-0:1.47-9.el9_4.1Fixed 2026-08-31RHSA-2026:61260
Red Hat Enterprise Linux 9.6 Extended Update Supportsg3_utils-0:1.47-10.el9_6.2Fixed 2026-08-25RHSA-2026:59397
Red Hat OpenShift Container Platform 4.12openshift/ose-rhel-coreos-8:412.86.202609082051-0Fixed 2026-09-17RHSA-2026:65907
Red Hat OpenShift Container Platform 4.13openshift/ose-rhel-coreos-9:413.92.202611041925-0Fixed 2026-11-11RHSA-2026:95745
Red Hat OpenShift Container Platform 4.14openshift/ose-rhel-coreos-9:414.92.202611040941-0Fixed 2026-11-09RHSA-2026:95508
Red Hat OpenShift Container Platform 4.16openshift/ose-rhel-coreos-9:416.94.202609140240-0Fixed 2026-09-24RHSA-2026:67935
Red Hat Enterprise Linux 6sg3_utilsNot affected
Red Hat OpenShift Container Platform 5openshift/ose-rhel-coreos-9Affected
6 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-16313.

Attack patterns (CAPEC)

  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON