{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "b13a3539eb2affcb8833c189d68d6a4b99c41f6e"
            },
            {
              "fixed": "c161498d36e5f0d83f8776ea4df05c83051a95be"
            },
            {
              "fixed": "faba6b1b3c26e45873aa73a98b17b0f23dc25ba9"
            },
            {
              "fixed": "6252388f4ee900826173c2a71d9071b7a2b699f9"
            },
            {
              "fixed": "b75af28847a4cd6eb1275beb49cfb9da322926e6"
            },
            {
              "fixed": "cc0ce3fe8fac073ecded4f32c8ee5b89da1397e8"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.3.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.63"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99939.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: ufs: bsg: Complete the job on error\n\nWhen ufs_bsg_request() fails, it returns a non-zero status without calling\nbsg_job_done(). bsg_queue_rq() then ends the request with BLK_STS_IOERR\nwithout running bsg_complete(), leaking the job's device reference and\nmapped scatterlists.\n\nAlways complete the job via bsg_job_done() and return 0, matching other BSG\ntransports. Requests failing with a negative errno now return it from SG_IO\nwith the 4-byte result in the reply, while positive status codes still\nreturn 0 from SG_IO with the reply header.",
  "id": "CVE-2026-99939",
  "modified": "2026-11-30T14:46:03.346836122Z",
  "published": "2026-11-30T13:18:27.857Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6252388f4ee900826173c2a71d9071b7a2b699f9"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b75af28847a4cd6eb1275beb49cfb9da322926e6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c161498d36e5f0d83f8776ea4df05c83051a95be"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/cc0ce3fe8fac073ecded4f32c8ee5b89da1397e8"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/faba6b1b3c26e45873aa73a98b17b0f23dc25ba9"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99939.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99939"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "scsi: ufs: bsg: Complete the job on error"
}