CVEfocus › CVE database › CVE-2026-16313

CVE-2026-16313Sg3_utils: sg3_utils: arbitrary command execution via udev property injection in sg_inq…

CVSS 7.6 HighEPSS 0.3% (higher than 21% of CVEs)Published 2026-07-28Updated 2026-11-11Assigner: redhat

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.

CWE-93

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

26Fixed
6Fix pending
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10sg3-utilsFixed1.48-3ubuntu5UBUNTU-CVE-2026-16313
Ubuntu 26.04sg3-utilsFixed1.48-3ubuntu3.2UBUNTU-CVE-2026-16313
Ubuntu 24.04sg3-utilsFixed1.46-3ubuntu4.1UBUNTU-CVE-2026-16313
Ubuntu 22.04sg3-utilsFixed1.46-1ubuntu0.22.04.2UBUNTU-CVE-2026-16313
Ubuntu 20.04sg3-utilsFix pending1.44-1ubuntu2+esm1 (Ubuntu Pro)UBUNTU-CVE-2026-16313
Ubuntu 18.04sg3-utilsFix pending1.42-2ubuntu1.18.04.2+esm1 (Ubuntu Pro)UBUNTU-CVE-2026-16313
Ubuntu 16.04sg3-utilsFix pending1.40-0ubuntu1+esm1 (Ubuntu Pro)UBUNTU-CVE-2026-16313
Ubuntu 14.04sg3-utilsFix pending1.36-1ubuntu1+esm1 (Ubuntu Pro)UBUNTU-CVE-2026-16313
Debian 14sg3-utilsFixed1.48-4DEBIAN-CVE-2026-16313
Debian 13sg3-utilsFix pendingDEBIAN-CVE-2026-16313
Debian 12sg3-utilsFix pendingDEBIAN-CVE-2026-16313
Red Hat Enterprise Linux 10sg3_utilsFixed0:1.48-7.el10_2.1RHSA-2026:50142
Red Hat Enterprise Linux 10sg3_utils-develFixed0:1.48-7.el10_2.1RHSA-2026:50142
Red Hat Enterprise Linux 10sg3_utils-libsFixed0:1.48-7.el10_2.1RHSA-2026:50142
Red Hat Enterprise Linux 9sg3_utilsFixed0:1.47-10.el9_8.1RHSA-2026:50141
Red Hat Enterprise Linux 9sg3_utils-develFixed0:1.47-10.el9_8.1RHSA-2026:50141
Red Hat Enterprise Linux 9sg3_utils-libsFixed0:1.47-10.el9_8.1RHSA-2026:50141
Red Hat Enterprise Linux 8sg3_utilsFixed0:1.44-6.el8_10.1RHSA-2026:56130
Red Hat Enterprise Linux 8sg3_utils-develFixed0:1.44-6.el8_10.1RHSA-2026:56130
Red Hat Enterprise Linux 8sg3_utils-libsFixed0:1.44-6.el8_10.1RHSA-2026:56130
Red Hat Enterprise Linux 6sg3_utilsNot affected
Red Hat Enterprise Linux 6sg3_utils-develNot affected
Red Hat Enterprise Linux 6sg3_utils-libsNot affected
AlmaLinux 10sg3_utilsFixed1.48-7.el10_2.1ALSA-2026:50142
AlmaLinux 10sg3_utils-develFixed1.48-7.el10_2.1ALSA-2026:50142
AlmaLinux 10sg3_utils-libsFixed1.48-7.el10_2.1ALSA-2026:50142
AlmaLinux 9sg3_utilsFixed1.47-10.el9_8.1ALSA-2026:50141
AlmaLinux 9sg3_utils-develFixed1.47-10.el9_8.1ALSA-2026:50141
AlmaLinux 9sg3_utils-libsFixed1.47-10.el9_8.1ALSA-2026:50141
AlmaLinux 8sg3_utilsFixed1.44-6.el8_10.1ALSA-2026:56130
AlmaLinux 8sg3_utils-develFixed1.44-6.el8_10.1ALSA-2026:56130
AlmaLinux 8sg3_utils-libsFixed1.44-6.el8_10.1ALSA-2026:56130
Rocky Linux 10sg3_utilsFixed0:1.48-7.el10_2.1RLSA-2026:50142
Rocky Linux 9sg3_utilsFixed0:1.47-10.el9_8.1RLSA-2026:50141
Rocky Linux 8sg3_utilsFixed0:1.44-6.el8_10.1RLSA-2026:56130

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: Remove or comment out the REMOVE_CMD rule from 50-udev-default.rules to prevent command execution on device removal. Alternatively, if automatic SCSI device identification is not required, disable the udev rule that invokes sg_inq --export on device connection.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.