Skip to main content
← All vulnerabilities
CVE-2023-53116

nvmet: avoid potential UAF in nvmet_req_complete()

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.14.311, 4.19.279, 5.4.238, 5.10.176, 5.15.104, and 2 more
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • Linux Linux

    From a07b4970f464f13640e28e16dad6cfa33647cc99 · fixed in e5d99b29012bbf0e86929403209723b2806500c1; From a07b4970f464f13640e28e16dad6cfa33647cc99 · fixed in fafcb4b26393870c45462f9af6a48e581dbbcf7e; From a07b4970f464f13640e28e16dad6cfa33647cc99 · fixed in 04c394208831d5e0d5cfee46722eb0f033cd4083; From a07b4970f464f13640e28e16dad6cfa33647cc99 · fixed in a6317235da8aa7cb97529ebc8121cc2a4c4c437a; From a07b4970f464f13640e28e16dad6cfa33647cc99 · fixed in f1d5888a5efe345b63c430b256e95acb0a475642; From a07b4970f464f13640e28e16dad6cfa33647cc99 · fixed in bcd535f07c58342302a2cd2bdd8894fe0872c8a9; From a07b4970f464f13640e28e16dad6cfa33647cc99 · fixed in 8ed9813871038b25a934b21ab76b5b7dbf44fc3a; From a07b4970f464f13640e28e16dad6cfa33647cc99 · fixed in 6173a77b7e9d3e202bdb9897b23f2a8afe7bf286

  • Linux Linux

    4.8

  • KernelLinux

    From 4.8.0 · fixed in 4.14.311; From 4.15.0 · fixed in 4.19.279; From 4.20.0 · fixed in 5.4.238; From 5.5.0 · fixed in 5.10.176; From 5.11.0 · fixed in 5.15.104; From 5.16.0 · fixed in 6.1.21; From 6.2.0 · fixed in 6.2.8

References 8

git.kernel.org