CVE-2024-50216
JSON

5.5medium

xfs: fix finding a last resort AG in xfs_filestream_pick_ag

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom f8f1ed1ab3babad46b25e2dbe8de43b33fe7aaa6 before 77ddc732416b017180893cbb2356e9f0a414c575, from f8f1ed1ab3babad46b25e2dbe8de43b33fe7aaa6 before a023408925acd64db5c8980373fcb3e28ec6fd29, from f8f1ed1ab3babad46b25e2dbe8de43b33fe7aaa6 before dc60992ce76fbc2f71c2674f435ff6bde2108028, 6.3
Not affected: before 6.3, from 6.6.60 up to 6.6.*, from 6.11.7 up to 6.11.*, from 6.12 up to *
CVE List
linux linux_kernelfrom 6.3 before 6.6.60, from 6.7 before 6.11.7, 6.12NVD

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: xfs: se corrige la búsqueda de un AG de último recurso en xfs_filestream_pick_ag Cuando el bucle principal en xfs_filestream_pick_ag no puede encontrar un AG adecuado, intenta simplemente elegir el AG en línea. Pero el bucle para eso usa args->pag como iterador de bucle mientras que el código posterior espera que se configure pag. Corrija esto reutilizando el caso max_pag para este último recurso y también agregue una verificación para el caso imposible de que no haya AG solo para asegurarse de que el pag no inicializado ni siquiera escape en teoría.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-50216 changed 2026-05-11CVE Terms of Use
NVDCVE-2024-50216 changed 2026-06-17Public domain