{"id":"CVE-2023-53116","aliases":["CVE-2023-53116"],"related":[],"kind":"vulnerability","state":"published","title":"nvmet: avoid potential UAF in nvmet_req_complete()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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 -&gt;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.","source":"nvd"}],"published":"2025-05-02T15:55:54.858Z","modified":"2026-10-15T22:17:38.293Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"a07b4970f464f13640e28e16dad6cfa33647cc99","fixed":"e5d99b29012bbf0e86929403209723b2806500c1","status":"affected"},{"type":"git","introduced":"a07b4970f464f13640e28e16dad6cfa33647cc99","fixed":"fafcb4b26393870c45462f9af6a48e581dbbcf7e","status":"affected"},{"type":"git","introduced":"a07b4970f464f13640e28e16dad6cfa33647cc99","fixed":"04c394208831d5e0d5cfee46722eb0f033cd4083","status":"affected"},{"type":"git","introduced":"a07b4970f464f13640e28e16dad6cfa33647cc99","fixed":"a6317235da8aa7cb97529ebc8121cc2a4c4c437a","status":"affected"},{"type":"git","introduced":"a07b4970f464f13640e28e16dad6cfa33647cc99","fixed":"f1d5888a5efe345b63c430b256e95acb0a475642","status":"affected"},{"type":"git","introduced":"a07b4970f464f13640e28e16dad6cfa33647cc99","fixed":"bcd535f07c58342302a2cd2bdd8894fe0872c8a9","status":"affected"},{"type":"git","introduced":"a07b4970f464f13640e28e16dad6cfa33647cc99","fixed":"8ed9813871038b25a934b21ab76b5b7dbf44fc3a","status":"affected"},{"type":"git","introduced":"a07b4970f464f13640e28e16dad6cfa33647cc99","fixed":"6173a77b7e9d3e202bdb9897b23f2a8afe7bf286","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.8","status":"unaffected"},{"type":"semver","introduced":"4.14.311","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.279","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.238","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.176","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.104","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.21","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.2.8","lastAffected":"6.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.8","fixed":"4.14.311"},{"status":"affected","introduced":"4.15","fixed":"4.19.279"},{"status":"affected","introduced":"4.20","fixed":"5.4.238"},{"status":"affected","introduced":"5.5","fixed":"5.10.176"},{"status":"affected","introduced":"5.11","fixed":"5.15.104"},{"status":"affected","introduced":"5.16","fixed":"6.1.21"},{"status":"affected","introduced":"6.2","fixed":"6.2.8"},{"status":"affected","version":"6.3"},{"status":"affected","version":"6.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/e5d99b29012bbf0e86929403209723b2806500c1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fafcb4b26393870c45462f9af6a48e581dbbcf7e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/04c394208831d5e0d5cfee46722eb0f033cd4083","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a6317235da8aa7cb97529ebc8121cc2a4c4c437a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f1d5888a5efe345b63c430b256e95acb0a475642","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bcd535f07c58342302a2cd2bdd8894fe0872c8a9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8ed9813871038b25a934b21ab76b5b7dbf44fc3a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6173a77b7e9d3e202bdb9897b23f2a8afe7bf286","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-10-15T21:34:05.995Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-53116","url":"https://www.cve.org/CVERecord?id=CVE-2023-53116","licence":"CVE Terms of Use","modified":"2026-10-15T21:41:27.153Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-53116","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53116","licence":"Public domain","modified":"2026-10-15T22:17:38.293Z"}],"updatedAt":"2026-11-25T22:58:34.678Z","epss":{"score":0.008,"percentile":0.53337,"date":"2026-11-30T12:00:22.000Z"}}