{"id":"UBUNTU-CVE-2026-16313","details":"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.","modified":"2026-08-06T03:08:39.917542048Z","published":"2026-07-28T17:16:00Z","upstream":["CVE-2026-16313"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-16313"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-16313"}],"affected":[{"package":{"name":"sg3-utils","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/sg3-utils?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.36-1","1.36-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"libsgutils2-2","binary_version":"1.36-1ubuntu1"},{"binary_name":"sg3-utils","binary_version":"1.36-1ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-16313.json"}},{"package":{"name":"sg3-utils","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/sg3-utils?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.40-0ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"libsgutils2-2","binary_version":"1.40-0ubuntu1"},{"binary_name":"sg3-utils","binary_version":"1.40-0ubuntu1"},{"binary_name":"sg3-utils-udev","binary_version":"1.40-0ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-16313.json"}},{"package":{"name":"sg3-utils","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/sg3-utils?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.42-2ubuntu1","1.42-2ubuntu1.18.04.1","1.42-2ubuntu1.18.04.2"],"ecosystem_specific":{"binaries":[{"binary_name":"libsgutils2-2","binary_version":"1.42-2ubuntu1.18.04.2"},{"binary_name":"sg3-utils","binary_version":"1.42-2ubuntu1.18.04.2"},{"binary_version":"1.42-2ubuntu1.18.04.2","binary_name":"sg3-utils-udev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-16313.json"}},{"package":{"name":"sg3-utils","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/sg3-utils?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.44-1ubuntu1","1.44-1ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_name":"libsgutils2-2","binary_version":"1.44-1ubuntu2"},{"binary_version":"1.44-1ubuntu2","binary_name":"sg3-utils"},{"binary_name":"sg3-utils-udev","binary_version":"1.44-1ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-16313.json"}},{"package":{"name":"sg3-utils","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/sg3-utils?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.45-1ubuntu2","1.45-1ubuntu3","1.46-1","1.46-1build1","1.46-1ubuntu0.22.04.1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.46-1ubuntu0.22.04.1","binary_name":"libsgutils2-2"},{"binary_name":"sg3-utils","binary_version":"1.46-1ubuntu0.22.04.1"},{"binary_version":"1.46-1ubuntu0.22.04.1","binary_name":"sg3-utils-udev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-16313.json"}},{"package":{"name":"sg3-utils","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/sg3-utils?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.46-3ubuntu2","1.46-3ubuntu3","1.46-3ubuntu4"],"ecosystem_specific":{"binaries":[{"binary_name":"libsgutils2-1.46-2","binary_version":"1.46-3ubuntu4"},{"binary_name":"sg3-utils","binary_version":"1.46-3ubuntu4"},{"binary_name":"sg3-utils-udev","binary_version":"1.46-3ubuntu4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-16313.json"}},{"package":{"name":"sg3-utils","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/sg3-utils?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.48-2ubuntu1","1.48-3ubuntu1","1.48-3ubuntu2","1.48-3ubuntu3","1.48-3ubuntu3.1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.48-3ubuntu3.1","binary_name":"libsgutils2-1.48"},{"binary_version":"1.48-3ubuntu3.1","binary_name":"sg3-utils"},{"binary_name":"sg3-utils-udev","binary_version":"1.48-3ubuntu3.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-16313.json"}}],"schema_version":"1.8.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}