{
  "id": "CVE-2026-16313",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-16313",
  "published_at": "2026-07-28T16:47:06.471Z",
  "title": "Sg3_utils: sg3_utils: arbitrary command execution via udev property injection in sg_inq --export",
  "vendor": "Red Hat",
  "product": "Red Hat Enterprise Linux 10",
  "cvss": {
    "score": 7.6,
    "source": "cna",
    "vector": "CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-93",
  "cvss_by_source": {
    "cna": 7.6
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 10",
        "ranges": null,
        "fixed_in": [
          "0:1.48-7.el10_2.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 10.0 Extended Update Support",
        "ranges": null,
        "fixed_in": [
          "0:1.48-7.el10_0.2"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 7 Extended Lifecycle Support",
        "ranges": null,
        "fixed_in": [
          "1:1.37-20.el7_9"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8",
        "ranges": null,
        "fixed_in": [
          "0:1.44-6.el8_10.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support",
        "ranges": null,
        "fixed_in": [
          "0:1.44-5.el8_4.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On",
        "ranges": null,
        "fixed_in": [
          "0:1.44-5.el8_4.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support",
        "ranges": null,
        "fixed_in": [
          "0:1.44-5.el8_6.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On",
        "ranges": null,
        "fixed_in": [
          "0:1.44-5.el8_6.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.8 Telecommunications Update Service",
        "ranges": null,
        "fixed_in": [
          "0:1.44-6.el8_8.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions",
        "ranges": null,
        "fixed_in": [
          "0:1.44-6.el8_8.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9",
        "ranges": null,
        "fixed_in": [
          "0:1.47-10.el9_8.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions",
        "ranges": null,
        "fixed_in": [
          "0:1.47-9.el9_2.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions",
        "ranges": null,
        "fixed_in": [
          "0:1.47-9.el9_4.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9.6 Extended Update Support",
        "ranges": null,
        "fixed_in": [
          "0:1.47-10.el9_6.2"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift Container Platform 4.12",
        "ranges": null,
        "fixed_in": [
          "412.86.202609082051-0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift Container Platform 4.13",
        "ranges": null,
        "fixed_in": [
          "413.92.202611041925-0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift Container Platform 4.14",
        "ranges": null,
        "fixed_in": [
          "414.92.202611040941-0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift Container Platform 4.15",
        "ranges": null,
        "fixed_in": [
          "415.92.202611051005-0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift Container Platform 4.16",
        "ranges": null,
        "fixed_in": [
          "416.94.202609140240-0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift Container Platform 4.17",
        "ranges": null,
        "fixed_in": [
          "417.94.202609191027-0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift Container Platform 4.18",
        "ranges": null,
        "fixed_in": [
          "418.94.202609031320-0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift Container Platform 4.19",
        "ranges": null,
        "fixed_in": [
          "4.19.9.6.202609021231-0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift Container Platform 4.20",
        "ranges": null,
        "fixed_in": [
          "4.20.9.6.202609021029-0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift Container Platform 4.21",
        "ranges": null,
        "fixed_in": [
          "4.21.9.6.202609021100-0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift Container Platform 4.22",
        "ranges": null,
        "fixed_in": [
          "4.22.9.8.202608130832-0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Red Hat Enterprise Linux 10 to 0:1.48-7.el10_2.1 or later.",
      "Upgrade Red Hat Enterprise Linux 10.0 Extended Update Support to 0:1.48-7.el10_0.2 or later.",
      "Upgrade Red Hat Enterprise Linux 7 Extended Lifecycle Support to 1:1.37-20.el7_9 or later.",
      "Upgrade Red Hat Enterprise Linux 8 to 0:1.44-6.el8_10.1 or later.",
      "Upgrade Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support to 0:1.44-5.el8_4.1 or later.",
      "Upgrade Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On to 0:1.44-5.el8_4.1 or later.",
      "Upgrade Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support to 0:1.44-5.el8_6.1 or later.",
      "Upgrade Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On to 0:1.44-5.el8_6.1 or later.",
      "Upgrade Red Hat Enterprise Linux 8.8 Telecommunications Update Service to 0:1.44-6.el8_8.1 or later.",
      "Upgrade Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions to 0:1.44-6.el8_8.1 or later.",
      "Upgrade Red Hat Enterprise Linux 9 to 0:1.47-10.el9_8.1 or later.",
      "Upgrade Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions to 0:1.47-9.el9_2.1 or later.",
      "Upgrade Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions to 0:1.47-9.el9_4.1 or later.",
      "Upgrade Red Hat Enterprise Linux 9.6 Extended Update Support to 0:1.47-10.el9_6.2 or later.",
      "Upgrade Red Hat OpenShift Container Platform 4.12 to 412.86.202609082051-0 or later.",
      "Upgrade Red Hat OpenShift Container Platform 4.13 to 413.92.202611041925-0 or later.",
      "Upgrade Red Hat OpenShift Container Platform 4.14 to 414.92.202611040941-0 or later.",
      "Upgrade Red Hat OpenShift Container Platform 4.15 to 415.92.202611051005-0 or later.",
      "Upgrade Red Hat OpenShift Container Platform 4.16 to 416.94.202609140240-0 or later.",
      "Upgrade Red Hat OpenShift Container Platform 4.17 to 417.94.202609191027-0 or later.",
      "Upgrade Red Hat OpenShift Container Platform 4.18 to 418.94.202609031320-0 or later.",
      "Upgrade Red Hat OpenShift Container Platform 4.19 to 4.19.9.6.202609021231-0 or later.",
      "Upgrade Red Hat OpenShift Container Platform 4.20 to 4.20.9.6.202609021029-0 or later.",
      "Upgrade Red Hat OpenShift Container Platform 4.21 to 4.21.9.6.202609021100-0 or later.",
      "Upgrade Red Hat OpenShift Container Platform 4.22 to 4.22.9.8.202608130832-0 or later."
    ],
    "workarounds": [
      "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."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:50141"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:50142"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:54769"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:56130"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:59397"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:59555"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:59567"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:59568"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
