CVE-2026-16313
JSON

7.6high

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

Severity
7.6high CVSS:3.1 by redhat
Exploit likelihood
0.35% (higher than 30% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat

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.

Affected

Product or packageVersionsReported by
sg3_utilsNot specified
Not affected: from 0:1.48-7.el10_2.1 before *, from 0:1.48-7.el10_0.2 before *, from 1:1.37-20.el7_9 before *, from 0:1.44-6.el8_10.1 before *, from 0:1.44-5.el8_4.1 before *, from 0:1.44-5.el8_6.1 before *
CVE List
openshift/ose-rhel-coreos-8Not specified
Not affected: from 412.86.202609082051-0 before *
CVE List
openshift/ose-rhel-coreos-9Not specified
Not affected: from 413.92.202611041925-0 before *, from 414.92.202611040941-0 before *, from 415.92.202611051005-0 before *, from 416.94.202609140240-0 before *, from 417.94.202609191027-0 before *, from 418.94.202609031320-0 before *
CVE List

Classification

CWE-93

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

Se encontró una vulnerabilidad en sg3_utils. El comando sg_inq, cuando se invoca con la opción --export, genera datos de identificación del dispositivo sin sanear los caracteres de control en los campos de cadena de nombre SCSI. Un carácter de nueva línea incrustado en una cadena de nombre proporcionada por el dispositivo puede inyectar propiedades arbitrarias en la base de datos de dispositivos udev. Esto podría permitir a un atacante que puede presentar un dispositivo SCSI manipulado ejecutar comandos arbitrarios como root cuando el dispositivo se desconecta.

References

https://access.redhat.com/errata/RHSA-2026:50141vendor-advisory
https://access.redhat.com/errata/RHSA-2026:50142vendor-advisory
https://access.redhat.com/errata/RHSA-2026:54769vendor-advisory
https://access.redhat.com/errata/RHSA-2026:56130vendor-advisory
https://access.redhat.com/errata/RHSA-2026:59397vendor-advisory
https://access.redhat.com/errata/RHSA-2026:59555vendor-advisory
https://access.redhat.com/errata/RHSA-2026:59567vendor-advisory
https://access.redhat.com/errata/RHSA-2026:59568vendor-advisory
https://access.redhat.com/errata/RHSA-2026:61260vendor-advisory
https://access.redhat.com/errata/RHSA-2026:61261vendor-advisory
https://access.redhat.com/errata/RHSA-2026:63041vendor-advisory
https://access.redhat.com/errata/RHSA-2026:63044vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2026-16313 changed 2026-11-11CVE Terms of Use
NVDCVE-2026-16313 changed 2026-11-11Public domain