CVE-2026-16313Sg3_utils: sg3_utils: arbitrary command execution via udev property injection in sg_inq…
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | sg3-utils | Fixed | 1.48-3ubuntu5 | UBUNTU-CVE-2026-16313 |
| Ubuntu 26.04 | sg3-utils | Fixed | 1.48-3ubuntu3.2 | UBUNTU-CVE-2026-16313 |
| Ubuntu 24.04 | sg3-utils | Fixed | 1.46-3ubuntu4.1 | UBUNTU-CVE-2026-16313 |
| Ubuntu 22.04 | sg3-utils | Fixed | 1.46-1ubuntu0.22.04.2 | UBUNTU-CVE-2026-16313 |
| Ubuntu 20.04 | sg3-utils | Fix pending | 1.44-1ubuntu2+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-16313 |
| Ubuntu 18.04 | sg3-utils | Fix pending | 1.42-2ubuntu1.18.04.2+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-16313 |
| Ubuntu 16.04 | sg3-utils | Fix pending | 1.40-0ubuntu1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-16313 |
| Ubuntu 14.04 | sg3-utils | Fix pending | 1.36-1ubuntu1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-16313 |
| Debian 14 | sg3-utils | Fixed | 1.48-4 | DEBIAN-CVE-2026-16313 |
| Debian 13 | sg3-utils | Fix pending | DEBIAN-CVE-2026-16313 | |
| Debian 12 | sg3-utils | Fix pending | DEBIAN-CVE-2026-16313 | |
| Red Hat Enterprise Linux 10 | sg3_utils | Fixed | 0:1.48-7.el10_2.1 | RHSA-2026:50142 |
| Red Hat Enterprise Linux 10 | sg3_utils-devel | Fixed | 0:1.48-7.el10_2.1 | RHSA-2026:50142 |
| Red Hat Enterprise Linux 10 | sg3_utils-libs | Fixed | 0:1.48-7.el10_2.1 | RHSA-2026:50142 |
| Red Hat Enterprise Linux 9 | sg3_utils | Fixed | 0:1.47-10.el9_8.1 | RHSA-2026:50141 |
| Red Hat Enterprise Linux 9 | sg3_utils-devel | Fixed | 0:1.47-10.el9_8.1 | RHSA-2026:50141 |
| Red Hat Enterprise Linux 9 | sg3_utils-libs | Fixed | 0:1.47-10.el9_8.1 | RHSA-2026:50141 |
| Red Hat Enterprise Linux 8 | sg3_utils | Fixed | 0:1.44-6.el8_10.1 | RHSA-2026:56130 |
| Red Hat Enterprise Linux 8 | sg3_utils-devel | Fixed | 0:1.44-6.el8_10.1 | RHSA-2026:56130 |
| Red Hat Enterprise Linux 8 | sg3_utils-libs | Fixed | 0:1.44-6.el8_10.1 | RHSA-2026:56130 |
| Red Hat Enterprise Linux 6 | sg3_utils | Not affected | ||
| Red Hat Enterprise Linux 6 | sg3_utils-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | sg3_utils-libs | Not affected | ||
| AlmaLinux 10 | sg3_utils | Fixed | 1.48-7.el10_2.1 | ALSA-2026:50142 |
| AlmaLinux 10 | sg3_utils-devel | Fixed | 1.48-7.el10_2.1 | ALSA-2026:50142 |
| AlmaLinux 10 | sg3_utils-libs | Fixed | 1.48-7.el10_2.1 | ALSA-2026:50142 |
| AlmaLinux 9 | sg3_utils | Fixed | 1.47-10.el9_8.1 | ALSA-2026:50141 |
| AlmaLinux 9 | sg3_utils-devel | Fixed | 1.47-10.el9_8.1 | ALSA-2026:50141 |
| AlmaLinux 9 | sg3_utils-libs | Fixed | 1.47-10.el9_8.1 | ALSA-2026:50141 |
| AlmaLinux 8 | sg3_utils | Fixed | 1.44-6.el8_10.1 | ALSA-2026:56130 |
| AlmaLinux 8 | sg3_utils-devel | Fixed | 1.44-6.el8_10.1 | ALSA-2026:56130 |
| AlmaLinux 8 | sg3_utils-libs | Fixed | 1.44-6.el8_10.1 | ALSA-2026:56130 |
| Rocky Linux 10 | sg3_utils | Fixed | 0:1.48-7.el10_2.1 | RLSA-2026:50142 |
| Rocky Linux 9 | sg3_utils | Fixed | 0:1.47-10.el9_8.1 | RLSA-2026:50141 |
| Rocky Linux 8 | sg3_utils | Fixed | 0:1.44-6.el8_10.1 | RLSA-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.
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 10.0 Extended Update Support
- Red Hat Enterprise Linux 7 Extended Lifecycle Support
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
- Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On
- Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
- Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On
- Red Hat Enterprise Linux 8.8 Telecommunications Update Service
- Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
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:
- https://access.redhat.com/errata/RHSA-2026:50141 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:50142 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:54769 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:56130 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:59397 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:59555 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2026:50141
- https://access.redhat.com/errata/RHSA-2026:50142
- https://access.redhat.com/errata/RHSA-2026:54769
- https://access.redhat.com/errata/RHSA-2026:56130
- https://access.redhat.com/errata/RHSA-2026:59397
- https://access.redhat.com/errata/RHSA-2026:59555
- https://access.redhat.com/errata/RHSA-2026:59567
- https://access.redhat.com/errata/RHSA-2026:59568
- https://access.redhat.com/errata/RHSA-2026:61260
- https://access.redhat.com/errata/RHSA-2026:61261
- https://access.redhat.com/errata/RHSA-2026:63041
- https://access.redhat.com/errata/RHSA-2026:63044
- https://access.redhat.com/errata/RHSA-2026:63100
- https://access.redhat.com/errata/RHSA-2026:65851
- https://access.redhat.com/errata/RHSA-2026:65907
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.