xfs: fix finding a last resort AG in xfs_filestream_pick_ag (Linux Linux)

CVE-2024-50216
MEDIUM 5.5

En bref

Source
NVD
EPSS
EPSS 0.23 % · centile 14 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: xfs: fix finding a last resort AG in xfs_filestream_pick_ag When the main loop in xfs_filestream_pick_ag fails to find a suitable AG it tries to just pick the online AG. But the loop for that uses args->pag as loop iterator while the later code expects pag to be set. Fix this by reusing the max_pag case for this last resort, and also add a check for impossible case of no AG just to make sure that the uninitialized pag doesn't even escape in theory.

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: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 f8f1ed1ab3babad46b25e2dbe8de43b33fe7aaa6 < 77ddc732416b017180893cbb2356e9f0a414c575 ; affected f8f1ed1ab3babad46b25e2dbe8de43b33fe7aaa6 < a023408925acd64db5c8980373fcb3e28ec6fd29 ; affected f8f1ed1ab3babad46b25e2dbe8de43b33fe7aaa6 < dc60992ce76fbc2f71c2674f435ff6bde2108028
Linux · Linuxaffected 6.3 ; unaffected 0 < 6.3 ; unaffected 6.6.60 ≤ 6.6.* ; unaffected 6.11.7 ≤ 6.11.* ; unaffected 6.12 ≤ *

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