md/raid10: fix null-ptr-deref of mreplace in raid10_sync_request (Linux Linux)

CVE-2023-53380
MEDIUM 5.5

En bref

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

Description

In the Linux kernel, the following vulnerability has been resolved: md/raid10: fix null-ptr-deref of mreplace in raid10_sync_request There are two check of 'mreplace' in raid10_sync_request(). In the first check, 'need_replace' will be set and 'mreplace' will be used later if no-Faulty 'mreplace' exists, In the second check, 'mreplace' will be set to NULL if it is Faulty, but 'need_replace' will not be changed accordingly. null-ptr-deref occurs if Faulty is set between two check. Fix it by merging two checks into one. And replace 'need_replace' with 'mreplace' because their values are always the same.

Faiblesses (CWE)

  • CWE-476 — Déréférencement de pointeur nul

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected ee37d7314a32ab6809eacc3389bad0406c69a81f < 45fa023b3334a7ae6f6c4eb977295804222dfa28 ; affected ee37d7314a32ab6809eacc3389bad0406c69a81f < 2990e2ece18dd4cca71b3109c80517ad94adb065 ; affected ee37d7314a32ab6809eacc3389bad0406c69a81f < f4368a462b1f9a8ecc2fdb09a28c3d4cad302a4f ; affected ee37d7314a32ab6809eacc3389bad0406c69a81f < 222cc459d59857ee28a5366dc225ab42b22f9272 ; affected ee37d7314a32ab6809eacc3389bad0406c69a81f < b5015b97adda6a24dd3e713c63e521ecbeff25c6 ; affected ee37d7314a32ab6809eacc3389bad0406c69a81f < 144c7fd008e0072b0b565f1157eec618de54ca8a
Linux · Linuxaffected 4.20 ; unaffected 0 < 4.20 ; unaffected 5.4.251 ≤ 5.4.* ; unaffected 5.10.188 ≤ 5.10.* ; unaffected 5.15.121 ≤ 5.15.* ; unaffected 6.1.39 ≤ 6.1.*

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