{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2023-53116",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2025-05-02T15:51:43.554Z",
        "datePublished": "2025-05-02T15:55:54.858Z",
        "dateUpdated": "2026-08-05T09:12:52.059Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T09:12:52.059Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet: avoid potential UAF in nvmet_req_complete()\n\nAn nvme target ->queue_response() operation implementation may free the\nrequest passed as argument. Such implementation potentially could result\nin a use after free of the request pointer when percpu_ref_put() is\ncalled in nvmet_req_complete().\n\nAvoid such problem by using a local variable to save the sq pointer\nbefore calling __nvmet_req_complete(), thus avoiding dereferencing the\nreq pointer after that function call."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 9.8,
                        "baseSeverity": "CRITICAL"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:N - The vulnerable code is in the shared NVMe target core and is reachable via network-facing transports such as nvmet-tcp and nvmet-rdma, which accept remote NVMe-oF connections and complete requests through nvmet_req_complete().\nAC:L - An attacker who can send NVMe commands reliably drives request completion; on FC the abort path frees the request synchronously inside queue_response, and on TCP/RDMA concurrent requests create a reuse race the attacker controls.\nPR:N - The discovery subsystem allows any host without credentials, DH-CHAP auth is optional, and allow_any_host deployments accept unauthenticated connects, so a remote peer can reach nvmet_req_complete with no privileges.\nUI:N - Exploitation requires only attacker-sent NVMe-oF traffic to a configured target; no victim user action is needed.\nS:U - This is memory corruption within the host kernel's NVMe target authority and does not cross a VM, IOMMU, or other security boundary.\nC:H - Use-after-free of the request object allows reuse/spray of the freed structure, which can be leveraged for arbitrary kernel memory disclosure.\nI:H - The same UAF/reuse of the nvmet request enables attacker-controlled heap contents and corruption suitable for arbitrary write or control-flow hijacking.\nA:H - Dereferencing the freed request (e.g., req->sq for percpu_ref_put) can crash the kernel via oops/panic even when not fully exploited for code execution."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/nvme/target/core.c"
                    ],
                    "versions": [
                        {
                            "version": "a07b4970f464f13640e28e16dad6cfa33647cc99",
                            "lessThan": "e5d99b29012bbf0e86929403209723b2806500c1",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a07b4970f464f13640e28e16dad6cfa33647cc99",
                            "lessThan": "fafcb4b26393870c45462f9af6a48e581dbbcf7e",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a07b4970f464f13640e28e16dad6cfa33647cc99",
                            "lessThan": "04c394208831d5e0d5cfee46722eb0f033cd4083",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a07b4970f464f13640e28e16dad6cfa33647cc99",
                            "lessThan": "a6317235da8aa7cb97529ebc8121cc2a4c4c437a",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a07b4970f464f13640e28e16dad6cfa33647cc99",
                            "lessThan": "f1d5888a5efe345b63c430b256e95acb0a475642",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a07b4970f464f13640e28e16dad6cfa33647cc99",
                            "lessThan": "bcd535f07c58342302a2cd2bdd8894fe0872c8a9",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a07b4970f464f13640e28e16dad6cfa33647cc99",
                            "lessThan": "8ed9813871038b25a934b21ab76b5b7dbf44fc3a",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a07b4970f464f13640e28e16dad6cfa33647cc99",
                            "lessThan": "6173a77b7e9d3e202bdb9897b23f2a8afe7bf286",
                            "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/nvme/target/core.c"
                    ],
                    "versions": [
                        {
                            "version": "4.8",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.8",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.14.311",
                            "lessThanOrEqual": "4.14.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.19.279",
                            "lessThanOrEqual": "4.19.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.238",
                            "lessThanOrEqual": "5.4.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.176",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.104",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.21",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.2.8",
                            "lessThanOrEqual": "6.2.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.3",
                            "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": "4.8",
                                    "versionEndExcluding": "4.14.311"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "4.19.279"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "5.4.238"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "5.10.176"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "5.15.104"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "6.1.21"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "6.2.8"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "6.3"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/e5d99b29012bbf0e86929403209723b2806500c1"
                },
                {
                    "url": "https://git.kernel.org/stable/c/fafcb4b26393870c45462f9af6a48e581dbbcf7e"
                },
                {
                    "url": "https://git.kernel.org/stable/c/04c394208831d5e0d5cfee46722eb0f033cd4083"
                },
                {
                    "url": "https://git.kernel.org/stable/c/a6317235da8aa7cb97529ebc8121cc2a4c4c437a"
                },
                {
                    "url": "https://git.kernel.org/stable/c/f1d5888a5efe345b63c430b256e95acb0a475642"
                },
                {
                    "url": "https://git.kernel.org/stable/c/bcd535f07c58342302a2cd2bdd8894fe0872c8a9"
                },
                {
                    "url": "https://git.kernel.org/stable/c/8ed9813871038b25a934b21ab76b5b7dbf44fc3a"
                },
                {
                    "url": "https://git.kernel.org/stable/c/6173a77b7e9d3e202bdb9897b23f2a8afe7bf286"
                }
            ],
            "title": "nvmet: avoid potential UAF in nvmet_req_complete()",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}