nvmet: avoid potential UAF in nvmet_req_complete()
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- 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
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- 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
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: total
- 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
- stable/c/e5d99b29012bbf0e86929403209723b2806500c1
- stable/c/fafcb4b26393870c45462f9af6a48e581dbbcf7e
- stable/c/04c394208831d5e0d5cfee46722eb0f033cd4083
- stable/c/a6317235da8aa7cb97529ebc8121cc2a4c4c437a
- stable/c/f1d5888a5efe345b63c430b256e95acb0a475642
- stable/c/bcd535f07c58342302a2cd2bdd8894fe0872c8a9
- stable/c/8ed9813871038b25a934b21ab76b5b7dbf44fc3a
- stable/c/6173a77b7e9d3e202bdb9897b23f2a8afe7bf286