Skip to content
Heist/ feed
Back to feed
HighFix available

sg3-utils — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-16313

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.

Products
sg3-utils
Affected versions
1.36-1, 1.36-1ubuntu1, 1.40-0ubuntu1, 1.42-2ubuntu1, 1.42-2ubuntu1.18.04.1, 1.42-2ubuntu1.18.04.2, 1.44-1ubuntu1, 1.44-1ubuntu2, 1.45-1ubuntu2, 1.45-1ubuntu3, 1.46-1, 1.46-1build1, 1.46-1ubuntu0.22.04.1, 1.46-3ubuntu2, 1.46-3ubuntu3, 1.46-3ubuntu4, 1.48-2ubuntu1, 1.48-3ubuntu1, 1.48-3ubuntu2, 1.48-3ubuntu3, 1.48-3ubuntu3.1, 1.48-3ubuntu4
Fixed versions
1.36-1ubuntu1+esm1, 1.40-0ubuntu1+esm1, 1.42-2ubuntu1.18.04.2+esm1, 1.44-1ubuntu2+esm1, 1.46-1ubuntu0.22.04.2, 1.46-3ubuntu4.1, 1.48-3ubuntu3.2, 1.48-3ubuntu5
CVEs
CVE-2026-16313
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:05 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-16313

core-osv · Original source

Published 28 Jul 2026, 17:16 UTC

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.

osv:UBUNTU-CVE-2026-16313

sg3-utils

Fixed versions: 1.36-1ubuntu1+esm1

sg3-utils

Fixed versions: 1.40-0ubuntu1+esm1

sg3-utils

Fixed versions: 1.42-2ubuntu1.18.04.2+esm1

sg3-utils

Fixed versions: 1.44-1ubuntu2+esm1

sg3-utils

Fixed versions: 1.46-1ubuntu0.22.04.2

sg3-utils

Fixed versions: 1.46-3ubuntu4.1

sg3-utils

Fixed versions: 1.48-3ubuntu5

sg3-utils

Fixed versions: 1.48-3ubuntu3.2

Complete source record
{
  "id": "af8f4e0dbb656a1eda7f3283953f3831d91182f53f50de7cc5ade20c4e89c1c0",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-16313",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-16313",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-16313",
    "products": [
      {
        "name": {
          "value": "sg3-utils",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.36-1ubuntu1+esm1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "1.36-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.36-1ubuntu1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "sg3-utils",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.40-0ubuntu1+esm1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "1.40-0ubuntu1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "sg3-utils",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.42-2ubuntu1.18.04.2+esm1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "1.42-2ubuntu1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.42-2ubuntu1.18.04.1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.42-2ubuntu1.18.04.2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "sg3-utils",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.44-1ubuntu2+esm1",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "1.44-1ubuntu1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.44-1ubuntu2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "sg3-utils",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.46-1ubuntu0.22.04.2",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "1.45-1ubuntu2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.45-1ubuntu3",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.46-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.46-1build1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.46-1ubuntu0.22.04.1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "sg3-utils",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.46-3ubuntu4.1",
            "evidence": "/affected/5/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "1.46-3ubuntu2",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "1.46-3ubuntu3",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "1.46-3ubuntu4",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "sg3-utils",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.48-3ubuntu5",
            "evidence": "/affected/6/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "1.48-3ubuntu3",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "1.48-3ubuntu4",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "sg3-utils",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.48-3ubuntu3.2",
            "evidence": "/affected/7/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "1.48-2ubuntu1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "1.48-3ubuntu1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "1.48-3ubuntu2",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "1.48-3ubuntu3",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "1.48-3ubuntu3.1",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-16313",
      "aliases": [
        "UBUNTU-CVE-2026-16313"
      ],
      "metrics": [
        {
          "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.36-1ubuntu1+esm1"
                }
              ]
            }
          ],
          "package": {
            "name": "sg3-utils",
            "purl": "pkg:deb/ubuntu/sg3-utils?arch=source&distro=esm-infra-legacy%2Ftrusty",
            "ecosystem": "Ubuntu:Pro:14.04:LTS"
          },
          "versions": [
            "1.36-1",
            "1.36-1ubuntu1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-16313.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libsgutils2-2",
                "binary_version": "1.36-1ubuntu1+esm1"
              },
              {
                "binary_name": "sg3-utils",
                "binary_version": "1.36-1ubuntu1+esm1"
              }
            ],
            "availability": "Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.40-0ubuntu1+esm1"
                }
              ]
            }
          ],
          "package": {
            "name": "sg3-utils",
            "purl": "pkg:deb/ubuntu/sg3-utils?arch=source&distro=esm-infra-legacy%2Fxenial",
            "ecosystem": "Ubuntu:Pro:16.04:LTS"
          },
          "versions": [
            "1.40-0ubuntu1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-16313.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libsgutils2-2",
                "binary_version": "1.40-0ubuntu1+esm1"
              },
              {
                "binary_name": "sg3-utils",
                "binary_version": "1.40-0ubuntu1+esm1"
              },
              {
                "binary_name": "sg3-utils-udev",
                "binary_version": "1.40-0ubuntu1+esm1"
              }
            ],
            "availability": "Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.42-2ubuntu1.18.04.2+esm1"
                }
              ]
            }
          ],
          "package": {
            "name": "sg3-utils",
            "purl": "pkg:deb/ubuntu/sg3-utils?arch=source&distro=esm-infra%2Fbionic",
            "ecosystem": "Ubuntu:Pro:18.04:LTS"
          },
          "versions": [
            "1.42-2ubuntu1",
            "1.42-2ubuntu1.18.04.1",
            "1.42-2ubuntu1.18.04.2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-16313.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libsgutils2-2",
                "binary_version": "1.42-2ubuntu1.18.04.2+esm1"
              },
              {
                "binary_name": "sg3-utils",
                "binary_version": "1.42-2ubuntu1.18.04.2+esm1"
              },
              {
                "binary_name": "sg3-utils-udev",
                "binary_version": "1.42-2ubuntu1.18.04.2+esm1"
              }
            ],
            "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.44-1ubuntu2+esm1"
                }
              ]
            }
          ],
          "package": {
            "name": "sg3-utils",
            "purl": "pkg:deb/ubuntu/sg3-utils?arch=source&distro=esm-infra%2Ffocal",
            "ecosystem": "Ubuntu:Pro:20.04:LTS"
          },
          "versions": [
            "1.44-1ubuntu1",
            "1.44-1ubuntu2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-16313.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libsgutils2-2",
                "binary_version": "1.44-1ubuntu2+esm1"
              },
              {
                "binary_name": "sg3-utils",
                "binary_version": "1.44-1ubuntu2+esm1"
              },
              {
                "binary_name": "sg3-utils-udev",
                "binary_version": "1.44-1ubuntu2+esm1"
              }
            ],
            "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.46-1ubuntu0.22.04.2"
                }
              ]
            }
          ],
          "package": {
            "name": "sg3-utils",
            "purl": "pkg:deb/ubuntu/sg3-utils?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "1.45-1ubuntu2",
            "1.45-1ubuntu3",
            "1.46-1",
            "1.46-1build1",
            "1.46-1ubuntu0.22.04.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-16313.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libsgutils2-2",
                "binary_version": "1.46-1ubuntu0.22.04.2"
              },
              {
                "binary_name": "sg3-utils",
                "binary_version": "1.46-1ubuntu0.22.04.2"
              },
              {
                "binary_name": "sg3-utils-udev",
                "binary_version": "1.46-1ubuntu0.22.04.2"
              }
            ],
            "availability": "No subscription required"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.46-3ubuntu4.1"
                }
              ]
            }
          ],
          "package": {
            "name": "sg3-utils",
            "purl": "pkg:deb/ubuntu/sg3-utils?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "1.46-3ubuntu2",
            "1.46-3ubuntu3",
            "1.46-3ubuntu4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-16313.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libsgutils2-1.46-2",
                "binary_version": "1.46-3ubuntu4.1"
              },
              {
                "binary_name": "sg3-utils",
                "binary_version": "1.46-3ubuntu4.1"
              },
              {
                "binary_name": "sg3-utils-udev",
                "binary_version": "1.46-3ubuntu4.1"
              }
            ],
            "availability": "No subscription required"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.48-3ubuntu5"
                }
              ]
            }
          ],
          "package": {
            "name": "sg3-utils",
            "purl": "pkg:deb/ubuntu/sg3-utils?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1.48-3ubuntu3",
            "1.48-3ubuntu4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-16313.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libsgutils2-1.48",
                "binary_version": "1.48-3ubuntu5"
              },
              {
                "binary_name": "sg3-utils",
                "binary_version": "1.48-3ubuntu5"
              },
              {
                "binary_name": "sg3-utils-udev",
                "binary_version": "1.48-3ubuntu5"
              }
            ],
            "availability": "No subscription required"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.48-3ubuntu3.2"
                }
              ]
            }
          ],
          "package": {
            "name": "sg3-utils",
            "purl": "pkg:deb/ubuntu/sg3-utils?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1.48-2ubuntu1",
            "1.48-3ubuntu1",
            "1.48-3ubuntu2",
            "1.48-3ubuntu3",
            "1.48-3ubuntu3.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-16313.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libsgutils2-1.48",
                "binary_version": "1.48-3ubuntu3.2"
              },
              {
                "binary_name": "sg3-utils",
                "binary_version": "1.48-3ubuntu3.2"
              },
              {
                "binary_name": "sg3-utils-udev",
                "binary_version": "1.48-3ubuntu3.2"
              }
            ],
            "availability": "No subscription required"
          }
        }
      ],
      "modified": "2026-10-17T12:58:06.376158087Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-16313"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-16313",
        "https://www.cve.org/CVERecord?id=CVE-2026-16313",
        "https://ubuntu.com/security/notices/USN-8874-1"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-16313",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 358096,
  "published_at": "2026-07-28T17:16:00+00:00"
}