{"id":"CVE-2024-39472","aliases":["CVE-2024-39472"],"related":[],"kind":"vulnerability","state":"published","title":"xfs: fix log recovery buffer allocation for the legacy h_size fixup","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfs: fix log recovery buffer allocation for the legacy h_size fixup\n\nCommit a70f9fe52daa (\"xfs: detect and handle invalid iclog size set by\nmkfs\") added a fixup for incorrect h_size values used for the initial\numount record in old xfsprogs versions.  Later commit 0c771b99d6c9\n(\"xfs: clean up calculation of LR header blocks\") cleaned up the log\nreover buffer calculation, but stoped using the fixed up h_size value\nto size the log recovery buffer, which can lead to an out of bounds\naccess when the incorrect h_size does not come from the old mkfs\ntool, but a fuzzer.\n\nFix this by open coding xlog_logrec_hblks and taking the fixed h_size\ninto account for this calculation.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfs: fix log recovery buffer allocation for the legacy h_size fixup\n\nCommit a70f9fe52daa (\"xfs: detect and handle invalid iclog size set by\nmkfs\") added a fixup for incorrect h_size values used for the initial\numount record in old xfsprogs versions.  Later commit 0c771b99d6c9\n(\"xfs: clean up calculation of LR header blocks\") cleaned up the log\nreover buffer calculation, but stoped using the fixed up h_size value\nto size the log recovery buffer, which can lead to an out of bounds\naccess when the incorrect h_size does not come from the old mkfs\ntool, but a fuzzer.\n\nFix this by open coding xlog_logrec_hblks and taking the fixed h_size\ninto account for this calculation.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: xfs: corrige la asignación del búfer de recuperación de registros para la corrección heredada de h_size. El commit a70f9fe52daa (\"xfs: detecta y maneja el tamaño de iclog no válido establecido por mkfs\") agregó una corrección para los valores incorrectos de h_size usados para el registro desmontaje inicial en versiones antiguas de xfsprogs. Posteriormente, el commit 0c771b99d6c9 (\"xfs: cálculo de limpieza de bloques de encabezado LR\") limpió el cálculo del búfer de recuperación de registros, pero dejó de usar el valor h_size fijo para dimensionar el búfer de recuperación de registros, lo que puede provocar un acceso fuera de los límites cuando el h_size incorrecto no proviene de la antigua herramienta mkfs, sino de un fuzzer. Solucione este problema abriendo la codificación xlog_logrec_hblks y teniendo en cuenta el h_size fijo para este cálculo.","source":"nvd"}],"published":"2024-07-05T06:42:03.495Z","modified":"2026-08-05T11:33:29.670Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:H","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:H","score":7.3,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"type":"git","introduced":"0c771b99d6c9a0552fea5cc43669b726dad8f659","fixed":"f754591b17d0ee91c2b45fe9509d0cdc420527cb","status":"affected"},{"type":"git","introduced":"0c771b99d6c9a0552fea5cc43669b726dad8f659","fixed":"57835c0e7152e36b03875dd6c56dfeed685c1b1f","status":"affected"},{"type":"git","introduced":"0c771b99d6c9a0552fea5cc43669b726dad8f659","fixed":"c2389c074973aa94e34992e7f66dac0de37595b5","status":"affected"},{"type":"git","introduced":"0c771b99d6c9a0552fea5cc43669b726dad8f659","fixed":"45cf976008ddef4a9c9a30310c9b4fb2a9a6602a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.10","status":"unaffected"},{"type":"semver","introduced":"5.15.165","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.105","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.46","lastAffected":"6.6.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.10","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"6.9.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/f754591b17d0ee91c2b45fe9509d0cdc420527cb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/57835c0e7152e36b03875dd6c56dfeed685c1b1f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c2389c074973aa94e34992e7f66dac0de37595b5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/45cf976008ddef4a9c9a30310c9b4fb2a9a6602a","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T17:07:45.783Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-39472","url":"https://www.cve.org/CVERecord?id=CVE-2024-39472","licence":"CVE Terms of Use","modified":"2026-08-05T11:33:29.670Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-39472","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39472","licence":"Public domain","modified":"2026-08-04T11:18:57.440Z"}],"updatedAt":"2026-11-25T22:58:42.515Z","epss":{"score":0.00249,"percentile":0.17425,"date":"2026-12-01T12:00:22.000Z"}}