md/raid10: fix leak of 'r10bio->remaining' for recovery (Linux Linux)

CVE-2023-53299
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 leak of 'r10bio->remaining' for recovery raid10_sync_request() will add 'r10bio->remaining' for both rdev and replacement rdev. However, if the read io fails, recovery_request_write() returns without issuing the write io, in this case, end_sync_request() is only called once and 'remaining' is leaked, cause an io hang. Fix the problem by decreasing 'remaining' according to if 'bio' and 'repl_bio' is valid.

Faiblesses (CWE)

  • CWE-401 — Mémoire non libérée après sa durée de vie utile

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 24afd80d99f80a79d8824d2805114b8b067e9823 < cb827ed2bb34480dc102146d3a1f89fdbcafc028 ; affected 24afd80d99f80a79d8824d2805114b8b067e9823 < 1d2c6c6e37fe5de11fd01a82badf03390e12df7a ; affected 24afd80d99f80a79d8824d2805114b8b067e9823 < 8c5d5d7ffd1e76734811b8ea5417cf0432b9952c ; affected 24afd80d99f80a79d8824d2805114b8b067e9823 < 1697fb124c6d6c5237e9cbd78890310154738084 ; affected 24afd80d99f80a79d8824d2805114b8b067e9823 < 8d09065802c53cc938d162b62f6c4150b392c90e ; affected 24afd80d99f80a79d8824d2805114b8b067e9823 < 11141630f03efffdfe260b3582b2d93d38171b97
Linux · Linuxaffected 3.3 ; unaffected 0 < 3.3 ; unaffected 4.14.315 ≤ 4.14.* ; unaffected 4.19.283 ≤ 4.19.* ; unaffected 5.4.243 ≤ 5.4.* ; unaffected 5.10.180 ≤ 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