{
  "threat_severity" : "Important",
  "public_date" : "2026-06-01T18:13:24Z",
  "bugzilla" : {
    "description" : "sg3_utils: sg3_utils: arbitrary command execution via udev property injection in sg_inq --export",
    "id" : "2502845",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2502845"
  },
  "cvss3" : {
    "cvss3_base_score" : "7.6",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H",
    "status" : "verified"
  },
  "cwe" : "CWE-93",
  "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.", "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." ],
  "statement" : "sg3_utils versions 1.34 through 1.48 contain a command injection flaw in the export_dev_ids() function of sg_inq. When sg_inq --export processes SCSI device identification data from VPD page 0x83, the SCSI name string designator (type 8) and the ATA vendor-ID subfield are printed without sanitizing embedded control characters. A crafted SCSI/USB device can embed a newline in this field, splitting sg_inq's udev KEY=VALUE output into two lines and injecting an arbitrary udev property, including REMOVE_CMD. On systems whose default udev rules invoke sg_inq --export for SCSI device identification and act on REMOVE_CMD when a device is removed, this allows a local attacker with physical access to a USB/SCSI port to achieve arbitrary command execution as root simply by disconnecting the crafted device.\nExploitation requires physical access to attach the malicious device, consistent with Red Hat's Physical (AV:P) attack vector scoring. The upstream fix (udev-conforming character escaping for this field) has not yet been included in any tagged sg3_utils release; all Red Hat-shipped versions of sg3_utils in the 1.34-1.48 range are affected.",
  "acknowledgement" : "Upstream acknowledges Shaomin Chen as the original reporter.",
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 10",
    "release_date" : "2026-08-04T00:00:00Z",
    "advisory" : "RHSA-2026:50142",
    "cpe" : "cpe:/o:redhat:enterprise_linux:10.2",
    "package" : "sg3_utils-0:1.48-7.el10_2.1"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2026-08-18T00:00:00Z",
    "advisory" : "RHSA-2026:56130",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8",
    "package" : "sg3_utils-0:1.44-6.el8_10.1"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support",
    "release_date" : "2026-08-25T00:00:00Z",
    "advisory" : "RHSA-2026:59555",
    "cpe" : "cpe:/o:redhat:rhel_aus:8.4",
    "package" : "sg3_utils-0:1.44-5.el8_4.1"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On",
    "release_date" : "2026-08-25T00:00:00Z",
    "advisory" : "RHSA-2026:59555",
    "cpe" : "cpe:/o:redhat:rhel_eus_long_life:8.4",
    "package" : "sg3_utils-0:1.44-5.el8_4.1"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support",
    "release_date" : "2026-08-25T00:00:00Z",
    "advisory" : "RHSA-2026:59567",
    "cpe" : "cpe:/o:redhat:rhel_aus:8.6",
    "package" : "sg3_utils-0:1.44-5.el8_6.1"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On",
    "release_date" : "2026-08-25T00:00:00Z",
    "advisory" : "RHSA-2026:59567",
    "cpe" : "cpe:/o:redhat:rhel_eus_long_life:8.6",
    "package" : "sg3_utils-0:1.44-5.el8_6.1"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.8 Telecommunications Update Service",
    "release_date" : "2026-08-25T00:00:00Z",
    "advisory" : "RHSA-2026:59568",
    "cpe" : "cpe:/o:redhat:rhel_tus:8.8",
    "package" : "sg3_utils-0:1.44-6.el8_8.1"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions",
    "release_date" : "2026-08-25T00:00:00Z",
    "advisory" : "RHSA-2026:59568",
    "cpe" : "cpe:/o:redhat:rhel_e4s:8.8",
    "package" : "sg3_utils-0:1.44-6.el8_8.1"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2026-08-04T00:00:00Z",
    "advisory" : "RHSA-2026:50141",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9",
    "package" : "sg3_utils-0:1.47-10.el9_8.1"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions",
    "release_date" : "2026-08-31T00:00:00Z",
    "advisory" : "RHSA-2026:61261",
    "cpe" : "cpe:/o:redhat:rhel_e4s:9.2",
    "package" : "sg3_utils-0:1.47-9.el9_2.1"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions",
    "release_date" : "2026-08-31T00:00:00Z",
    "advisory" : "RHSA-2026:61260",
    "cpe" : "cpe:/o:redhat:rhel_e4s:9.4",
    "package" : "sg3_utils-0:1.47-9.el9_4.1"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9.6 Extended Update Support",
    "release_date" : "2026-08-25T00:00:00Z",
    "advisory" : "RHSA-2026:59397",
    "cpe" : "cpe:/o:redhat:rhel_eus:9.6",
    "package" : "sg3_utils-0:1.47-10.el9_6.2"
  }, {
    "product_name" : "Red Hat OpenShift Container Platform 4.20",
    "release_date" : "2026-09-08T00:00:00Z",
    "advisory" : "RHSA-2026:63100",
    "cpe" : "cpe:/a:redhat:openshift:4.20::el9",
    "package" : "rhcos-4.20.9.6.202609021029-0"
  }, {
    "product_name" : "Red Hat OpenShift Container Platform 4.21",
    "release_date" : "2026-09-08T00:00:00Z",
    "advisory" : "RHSA-2026:63041",
    "cpe" : "cpe:/a:redhat:openshift:4.21::el9",
    "package" : "rhcos-4.21.9.6.202609021100-0"
  }, {
    "product_name" : "Red Hat OpenShift Container Platform 4.22",
    "release_date" : "2026-08-18T00:00:00Z",
    "advisory" : "RHSA-2026:54769",
    "cpe" : "cpe:/a:redhat:openshift:4.22::el9",
    "package" : "rhcos-4.22.9.8.202608130832-0"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Not affected",
    "package_name" : "sg3_utils",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Affected",
    "package_name" : "sg3_utils",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat OpenShift Container Platform 4",
    "fix_state" : "Affected",
    "package_name" : "openshift/ose-rhel-coreos-9",
    "cpe" : "cpe:/a:redhat:openshift:4"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2026-16313\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-16313\nhttps://github.com/doug-gilbert/sg3_utils/pull/83" ],
  "name" : "CVE-2026-16313",
  "mitigation" : {
    "value" : "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.",
    "lang" : "en:us"
  },
  "csaw" : false
}