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

High 7.6 Published Updated

Attackers can execute arbitrary commands as root by injecting properties into the udev database via crafted SCSI device names in sg_inq.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-16313?

CVE-2026-16313 is a high-severity command injection vulnerability in Red Hat Enterprise Linux 10, published on 28 Jul 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-93

Which versions are affected by CVE-2026-16313?

Linux distribution packages (40)
sg3_utils AlmaLinux:10All versions1.48-7.el10_2.1
sg3_utils-devel AlmaLinux:10All versions1.48-7.el10_2.1
sg3_utils-libs AlmaLinux:10All versions1.48-7.el10_2.1
sg3_utils AlmaLinux:8All versions1.44-6.el8_10.1
sg3_utils-devel AlmaLinux:8All versions1.44-6.el8_10.1
sg3_utils-libs AlmaLinux:8All versions1.44-6.el8_10.1
sg3_utils AlmaLinux:9All versions1.47-10.el9_8.1
sg3_utils-devel AlmaLinux:9All versions1.47-10.el9_8.1
sg3_utils-libs AlmaLinux:9All versions1.47-10.el9_8.1
sg3_utils Red Hat:enterprise_linux:10.2All versions0:1.48-7.el10_2.1
sg3_utils-debuginfo Red Hat:enterprise_linux:10.2All versions0:1.48-7.el10_2.1
sg3_utils-debugsource Red Hat:enterprise_linux:10.2All versions0:1.48-7.el10_2.1
sg3_utils-devel Red Hat:enterprise_linux:10.2All versions0:1.48-7.el10_2.1
sg3_utils-libs Red Hat:enterprise_linux:10.2All versions0:1.48-7.el10_2.1
sg3_utils-libs-debuginfo Red Hat:enterprise_linux:10.2All versions0:1.48-7.el10_2.1
sg3_utils Red Hat:enterprise_linux:8::baseosAll versions0:1.44-6.el8_10.1
sg3_utils-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:1.44-6.el8_10.1
sg3_utils-debugsource Red Hat:enterprise_linux:8::baseosAll versions0:1.44-6.el8_10.1
sg3_utils-libs Red Hat:enterprise_linux:8::baseosAll versions0:1.44-6.el8_10.1
sg3_utils-libs-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:1.44-6.el8_10.1
sg3_utils-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:1.44-6.el8_10.1
sg3_utils-debugsource Red Hat:enterprise_linux:8::crbAll versions0:1.44-6.el8_10.1
sg3_utils-devel Red Hat:enterprise_linux:8::crbAll versions0:1.44-6.el8_10.1
sg3_utils-libs-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:1.44-6.el8_10.1
sg3_utils Red Hat:enterprise_linux:9::baseosAll versions0:1.47-10.el9_8.1
sg3_utils-debuginfo Red Hat:enterprise_linux:9::baseosAll versions0:1.47-10.el9_8.1
sg3_utils-debugsource Red Hat:enterprise_linux:9::baseosAll versions0:1.47-10.el9_8.1
sg3_utils-libs Red Hat:enterprise_linux:9::baseosAll versions0:1.47-10.el9_8.1
sg3_utils-libs-debuginfo Red Hat:enterprise_linux:9::baseosAll versions0:1.47-10.el9_8.1
sg3_utils-debuginfo Red Hat:enterprise_linux:9::crbAll versions0:1.47-10.el9_8.1
sg3_utils-debugsource Red Hat:enterprise_linux:9::crbAll versions0:1.47-10.el9_8.1
sg3_utils-devel Red Hat:enterprise_linux:9::crbAll versions0:1.47-10.el9_8.1
sg3_utils-libs-debuginfo Red Hat:enterprise_linux:9::crbAll versions0:1.47-10.el9_8.1
sg3_utils Red Hat:enterprise_linux_eus:10.0All versions0:1.48-7.el10_0.2
sg3_utils-debuginfo Red Hat:enterprise_linux_eus:10.0All versions0:1.48-7.el10_0.2
sg3_utils-debugsource Red Hat:enterprise_linux_eus:10.0All versions0:1.48-7.el10_0.2
sg3_utils-devel Red Hat:enterprise_linux_eus:10.0All versions0:1.48-7.el10_0.2
sg3_utils-libs Red Hat:enterprise_linux_eus:10.0All versions0:1.48-7.el10_0.2
sg3_utils-libs-debuginfo Red Hat:enterprise_linux_eus:10.0All versions0:1.48-7.el10_0.2
sg3_utils Red Hat:rhel_aus:8.4::baseosAll versions0:1.44-5.el8_4.1

How do I fix CVE-2026-16313?

Apply the vendor's patch.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-16313 being exploited?

There is no known exploitation of CVE-2026-16313 in the wild and no public exploit code.

Sources

Also known as ALSA-2026:50141, ALSA-2026:50142, ALSA-2026:56130, AZL-94311, CLSA-2026-1786698186, CLSA-2026-1788364105 and 20 more.

Is CVE-2026-16313 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free