Red Hat sg3_utils: sg_inq --export Control Characters Leak
CVE-2026-16313 Published on July 28, 2026
Sg3_utils: sg3_utils: arbitrary command execution via udev property injection in sg_inq --export
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.
Vulnerability Analysis
CVE-2026-16313 can be exploited with physical access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to be very high.
Timeline
Reported to Red Hat.
Made public.
Weakness Type
What is a CRLF Injection Vulnerability?
The software uses CRLF (carriage return line feeds) as a special element, e.g. to separate lines or records, but it does not neutralize or incorrectly neutralizes CRLF sequences from inputs.
CVE-2026-16313 has been classified to as a CRLF Injection vulnerability or weakness.
Products Associated with CVE-2026-16313
Want to know whenever a new CVE is published for Red Hat products? stack.watch will email you.
Affected Versions
Red Hat Enterprise Linux 10:- Version 0:1.48-7.el10_2.1 and below * is unaffected.
- Version 1:1.37-20.el7_9 and below * is unaffected.
- Version 0:1.44-6.el8_10.1 and below * is unaffected.
- Version 0:1.44-5.el8_4.1 and below * is unaffected.
- Version 0:1.44-5.el8_4.1 and below * is unaffected.
- Version 0:1.44-5.el8_6.1 and below * is unaffected.
- Version 0:1.44-5.el8_6.1 and below * is unaffected.
- Version 0:1.44-6.el8_8.1 and below * is unaffected.
- Version 0:1.44-6.el8_8.1 and below * is unaffected.
- Version 0:1.47-10.el9_8.1 and below * is unaffected.
- Version 0:1.47-9.el9_2.1 and below * is unaffected.
- Version 0:1.47-9.el9_4.1 and below * is unaffected.
- Version 0:1.47-10.el9_6.2 and below * is unaffected.
- Version 4.19.9.6.202609021231-0 and below * is unaffected.
- Version 4.20.9.6.202609021029-0 and below * is unaffected.
- Version 4.21.9.6.202609021100-0 and below * is unaffected.
- Version 4.22.9.8.202608130832-0 and below * is unaffected.