Bug 2502845 (CVE-2026-16313)

Summary: CVE-2026-16313 sg3_utils: sg3_utils: arbitrary command execution via udev property injection in sg_inq --export
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: akhatavk, aos-team-art-private, asdas, dpaolell, jdelft, jupierce, lgarciaa, mbiarnes, ppalepu, ppostler, prdhamdh, rhel-process-autobot, sghai, sidsharm, suppawar, vlaad, watson-tool-maintainers
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2508077    
Bug Blocks:    

Description OSIDB Bzimport 2026-07-20 15:44:00 UTC
sg3_utils v1.34 through v1.48 contains a command injection flaw in export_dev_ids() in src/sg_inq.c. The sg_inq --export command outputs SCSI device identification data from VPD page 0x83 in KEY=VALUE format for udev import. The SCSI name string field (designator type 8, line 2046) and the ATA subfield (line 1922) are printed with printf("%.*s") without sanitizing control characters. A newline embedded in a device-controlled name string splits a single property into two lines, allowing injection of arbitrary udev properties including REMOVE_CMD. Combined with the default udev rule in 50-udev-default.rules that executes REMOVE_CMD on device removal, this enables arbitrary root command execution when a crafted SCSI device is disconnected. CWE-93. Introduced in commit c410806c (2012-02-23). Fixed upstream in PR #83.

Comment 4 errata-xmlrpc 2026-08-04 18:58:52 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:50141 https://access.redhat.com/errata/RHSA-2026:50141

Comment 5 errata-xmlrpc 2026-08-04 18:58:55 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:50142 https://access.redhat.com/errata/RHSA-2026:50142

Comment 6 errata-xmlrpc 2026-08-18 12:22:22 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:56130 https://access.redhat.com/errata/RHSA-2026:56130

Comment 7 errata-xmlrpc 2026-08-18 12:25:51 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.22

Via RHSA-2026:54769 https://access.redhat.com/errata/RHSA-2026:54769

Comment 8 errata-xmlrpc 2026-08-25 14:57:02 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.6 Extended Update Support

Via RHSA-2026:59397 https://access.redhat.com/errata/RHSA-2026:59397

Comment 9 errata-xmlrpc 2026-08-25 18:34:47 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On

Via RHSA-2026:59555 https://access.redhat.com/errata/RHSA-2026:59555

Comment 10 errata-xmlrpc 2026-08-25 19:48:43 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On

Via RHSA-2026:59567 https://access.redhat.com/errata/RHSA-2026:59567

Comment 11 errata-xmlrpc 2026-08-25 19:52:25 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.8 Telecommunications Update Service

Via RHSA-2026:59568 https://access.redhat.com/errata/RHSA-2026:59568

Comment 12 errata-xmlrpc 2026-08-31 02:36:55 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

Via RHSA-2026:61261 https://access.redhat.com/errata/RHSA-2026:61261

Comment 13 errata-xmlrpc 2026-08-31 02:37:28 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions

Via RHSA-2026:61260 https://access.redhat.com/errata/RHSA-2026:61260

Comment 14 errata-xmlrpc 2026-09-08 11:26:03 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.20

Via RHSA-2026:63100 https://access.redhat.com/errata/RHSA-2026:63100

Comment 15 errata-xmlrpc 2026-09-08 14:02:40 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.21

Via RHSA-2026:63041 https://access.redhat.com/errata/RHSA-2026:63041

Comment 16 errata-xmlrpc 2026-09-09 09:23:08 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.19

Via RHSA-2026:63044 https://access.redhat.com/errata/RHSA-2026:63044

Comment 17 Jon Orris 2026-09-14 13:36:32 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7 Extended Lifecycle Support

Via RHSA-2026:67157 https://access.redhat.com/errata/RHSA-2026:67157

Comment 18 Jon Orris 2026-09-17 07:15:18 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.12

Via RHSA-2026:65907 https://access.redhat.com/errata/RHSA-2026:65907

Comment 19 Jon Orris 2026-09-17 07:56:40 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.18

Via RHSA-2026:65851 https://access.redhat.com/errata/RHSA-2026:65851

Comment 20 Jon Orris 2026-09-21 02:52:54 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10.0 Extended Update Support

Via RHSA-2026:69124 https://access.redhat.com/errata/RHSA-2026:69124

Comment 21 Jon Orris 2026-09-24 10:42:05 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.16

Via RHSA-2026:67935 https://access.redhat.com/errata/RHSA-2026:67935

Comment 22 Jon Orris 2026-10-01 12:29:01 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.17

Via RHSA-2026:70586 https://access.redhat.com/errata/RHSA-2026:70586

Comment 25 errata-xmlrpc 2026-11-09 17:06:57 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.14

Via RHSA-2026:95508 https://access.redhat.com/errata/RHSA-2026:95508

Comment 26 errata-xmlrpc 2026-11-11 01:43:39 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.13

Via RHSA-2026:95745 https://access.redhat.com/errata/RHSA-2026:95745

Comment 27 errata-xmlrpc 2026-11-11 12:16:59 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.15

Via RHSA-2026:95755 https://access.redhat.com/errata/RHSA-2026:95755