Bug 2502845 (CVE-2026-16313) - CVE-2026-16313 sg3_utils: sg3_utils: arbitrary command execution via udev property injection in sg_inq --export
Summary: CVE-2026-16313 sg3_utils: sg3_utils: arbitrary command execution via udev pro...
Keywords:
Status: NEW
Alias: CVE-2026-16313
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2508077
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-20 15:44 UTC by OSIDB Bzimport
Modified: 2026-08-04 18:58 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:50141 0 None None None 2026-08-04 18:58:52 UTC
Red Hat Product Errata RHSA-2026:50142 0 None None None 2026-08-04 18:58:56 UTC

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


Note You need to log in before you can comment on or make changes to this bug.