nvmet: avoid potential UAF in nvmet_req_complete() (Linux Linux)

CVE-2023-53116
CRITICAL 9.8

En bref

Source
NVD
EPSS
EPSS 0.54 % · centile 45 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Modified

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.

Faiblesses (CWE)

  • CWE-416 — Utilisation après libération

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1CRITICAL 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1CRITICAL 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected a07b4970f464f13640e28e16dad6cfa33647cc99 < e5d99b29012bbf0e86929403209723b2806500c1 ; affected a07b4970f464f13640e28e16dad6cfa33647cc99 < fafcb4b26393870c45462f9af6a48e581dbbcf7e ; affected a07b4970f464f13640e28e16dad6cfa33647cc99 < 04c394208831d5e0d5cfee46722eb0f033cd4083 ; affected a07b4970f464f13640e28e16dad6cfa33647cc99 < a6317235da8aa7cb97529ebc8121cc2a4c4c437a ; affected a07b4970f464f13640e28e16dad6cfa33647cc99 < f1d5888a5efe345b63c430b256e95acb0a475642 ; affected a07b4970f464f13640e28e16dad6cfa33647cc99 < bcd535f07c58342302a2cd2bdd8894fe0872c8a9
Linux · Linuxaffected 4.8 ; unaffected 0 < 4.8 ; unaffected 4.14.311 ≤ 4.14.* ; unaffected 4.19.279 ≤ 4.19.* ; unaffected 5.4.238 ≤ 5.4.* ; unaffected 5.10.176 ≤ 5.10.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD