7.8

CVE-2023-53116

nvmet: avoid potential UAF in nvmet_req_complete()

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.
Daten sind bereitgestellt durch National Vulnerability Database (NVD)
LinuxLinux Kernel Version >= 4.8 < 4.14.311
LinuxLinux Kernel Version >= 4.15 < 4.19.279
LinuxLinux Kernel Version >= 4.20 < 5.4.238
LinuxLinux Kernel Version >= 5.5 < 5.10.176
LinuxLinux Kernel Version >= 5.11 < 5.15.104
LinuxLinux Kernel Version >= 5.16 < 6.1.21
LinuxLinux Kernel Version >= 6.2 < 6.2.8
LinuxLinux Kernel Version6.3 Updaterc1
LinuxLinux Kernel Version6.3 Updaterc2
VulnDex Vulnerability Enrichment
Diese Information steht angemeldeten Benutzern zur Verfügung. Login Login
Zu dieser CVE wurde keine Warnung gefunden.
EPSS Metriken
Typ Quelle Score Percentile
EPSS FIRST.org 0.17% 0.071
CVSS Metriken
Quelle Base Score Exploit Score Impact Score Vector String
nvd@nist.gov 7.8 1.8 5.9
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE-416 Use After Free

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.

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