CVE-2023-53116
JSON

9.8critical

nvmet: avoid potential UAF in nvmet_req_complete()

Severity
9.8critical CVSS:3.1 by Linux
Exploit likelihood
0.80% (higher than 53% of CVEs)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 and 1 more
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.*
CVE List
linux linux_kernelfrom 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.3NVD

All scores

Linux9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: nvmet: evitar posible UAF en nvmet_req_complete(). La implementación de la operación nvme target ->queue_response() puede liberar la solicitud pasada como argumento. Esta implementación podría provocar un use after free del puntero de solicitud al llamar a percpu_ref_put() en nvmet_req_complete(). Para evitar este problema, utilice una variable local para guardar el puntero sq antes de llamar a __nvmet_req_complete(), evitando así la desreferenciación del puntero req después de esa llamada.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-53116 changed 2026-10-15CVE Terms of Use
NVDCVE-2023-53116 changed 2026-10-15Public domain