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 package | Versions | Reported by |
|---|---|---|
| sg3_utils | Not 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-8 | Not specified Not affected: from 412.86.202609082051-0 before * | CVE List |
| openshift/ose-rhel-coreos-9 | Not 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
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
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-16313 changed 2026-11-11 | CVE Terms of Use |
| NVD | CVE-2026-16313 changed 2026-11-11 | Public domain |