{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-99939",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-09-25T10:25:14.448Z",
        "datePublished": "2026-11-30T13:18:27.857Z",
        "dateUpdated": "2026-11-30T13:18:27.857Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-30T13:18:27.857Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/ufs/core/ufs_bsg.c"
                    ],
                    "versions": [
                        {
                            "version": "b13a3539eb2affcb8833c189d68d6a4b99c41f6e",
                            "lessThan": "c161498d36e5f0d83f8776ea4df05c83051a95be",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b13a3539eb2affcb8833c189d68d6a4b99c41f6e",
                            "lessThan": "faba6b1b3c26e45873aa73a98b17b0f23dc25ba9",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b13a3539eb2affcb8833c189d68d6a4b99c41f6e",
                            "lessThan": "6252388f4ee900826173c2a71d9071b7a2b699f9",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b13a3539eb2affcb8833c189d68d6a4b99c41f6e",
                            "lessThan": "b75af28847a4cd6eb1275beb49cfb9da322926e6",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b13a3539eb2affcb8833c189d68d6a4b99c41f6e",
                            "lessThan": "cc0ce3fe8fac073ecded4f32c8ee5b89da1397e8",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/ufs/core/ufs_bsg.c"
                    ],
                    "versions": [
                        {
                            "version": "5.3",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.3",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.163",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.117",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.63",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.4",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.3",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.3",
                                    "versionEndExcluding": "6.12.117"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.3",
                                    "versionEndExcluding": "6.18.63"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.3",
                                    "versionEndExcluding": "7.3.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.3",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/c161498d36e5f0d83f8776ea4df05c83051a95be"
                },
                {
                    "url": "https://git.kernel.org/stable/c/faba6b1b3c26e45873aa73a98b17b0f23dc25ba9"
                },
                {
                    "url": "https://git.kernel.org/stable/c/6252388f4ee900826173c2a71d9071b7a2b699f9"
                },
                {
                    "url": "https://git.kernel.org/stable/c/b75af28847a4cd6eb1275beb49cfb9da322926e6"
                },
                {
                    "url": "https://git.kernel.org/stable/c/cc0ce3fe8fac073ecded4f32c8ee5b89da1397e8"
                }
            ],
            "title": "scsi: ufs: bsg: Complete the job on error",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}