# CVE-2023-53116: nvmet: avoid potential UAF in nvmet_req_complete()

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.80%, higher than 53% of CVEs (2026-11-30)
- Published: 2025-05-02T15:55:54.858Z
- Modified: 2026-10-15T22:17:38.293Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

nvmet: avoid potential UAF in nvmet_req_complete()

An nvme target ->queue_response() operation implementation may free the
request passed as argument. Such implementation potentially could result
in a use after free of the request pointer when percpu_ref_put() is
called in nvmet_req_complete().

Avoid such problem by using a local variable to save the sq pointer
before calling __nvmet_req_complete(), thus avoiding dereferencing the
req pointer after that function call.

(As written by CVE List.)

## Affected

- Linux Linux: from a07b4970f464f13640e28e16dad6cfa33647cc99 before e5d99b29012bbf0e86929403209723b2806500c1; from a07b4970f464f13640e28e16dad6cfa33647cc99 before fafcb4b26393870c45462f9af6a48e581dbbcf7e; from a07b4970f464f13640e28e16dad6cfa33647cc99 before 04c394208831d5e0d5cfee46722eb0f033cd4083; from a07b4970f464f13640e28e16dad6cfa33647cc99 before a6317235da8aa7cb97529ebc8121cc2a4c4c437a; from a07b4970f464f13640e28e16dad6cfa33647cc99 before f1d5888a5efe345b63c430b256e95acb0a475642; from a07b4970f464f13640e28e16dad6cfa33647cc99 before bcd535f07c58342302a2cd2bdd8894fe0872c8a9; from a07b4970f464f13640e28e16dad6cfa33647cc99 before 8ed9813871038b25a934b21ab76b5b7dbf44fc3a; from a07b4970f464f13640e28e16dad6cfa33647cc99 before 6173a77b7e9d3e202bdb9897b23f2a8afe7bf286; 4.8 (not affected: before 4.8; from 4.14.311 up to 4.14.*; from 4.19.279 up to 4.19.*; from 5.4.238 up to 5.4.*; from 5.10.176 up to 5.10.*; from 5.15.104 up to 5.15.*; from 6.1.21 up to 6.1.*; from 6.2.8 up to 6.2.*; from 6.3 up to *)
- linux linux_kernel: from 4.8 before 4.14.311; from 4.15 before 4.19.279; from 4.20 before 5.4.238; from 5.5 before 5.10.176; from 5.11 before 5.15.104; from 5.16 before 6.1.21; from 6.2 before 6.2.8; 6.3

## Every score

- Linux: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/e5d99b29012bbf0e86929403209723b2806500c1> (patch)
- <https://git.kernel.org/stable/c/fafcb4b26393870c45462f9af6a48e581dbbcf7e> (patch)
- <https://git.kernel.org/stable/c/04c394208831d5e0d5cfee46722eb0f033cd4083> (patch)
- <https://git.kernel.org/stable/c/a6317235da8aa7cb97529ebc8121cc2a4c4c437a> (patch)
- <https://git.kernel.org/stable/c/f1d5888a5efe345b63c430b256e95acb0a475642> (patch)
- <https://git.kernel.org/stable/c/bcd535f07c58342302a2cd2bdd8894fe0872c8a9> (patch)
- <https://git.kernel.org/stable/c/8ed9813871038b25a934b21ab76b5b7dbf44fc3a> (patch)
- <https://git.kernel.org/stable/c/6173a77b7e9d3e202bdb9897b23f2a8afe7bf286> (patch)

## Sources

- CVE List: [CVE-2023-53116](https://www.cve.org/CVERecord?id=CVE-2023-53116), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2023-53116](https://nvd.nist.gov/vuln/detail/CVE-2023-53116), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2023-53116 · Whole record: https://cve.day/CVE-2023-53116.json · Rebuilt by cve.day 2026-11-25T22:58:34.678Z
