{"id":"CVE-2024-39472","published":"2024-07-05T06:42:03Z","modified":"2026-08-05T11:33:29Z","title":"xfs: fix log recovery buffer allocation for the legacy h_size fixup","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00249,"percentile":0.16371,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/f754591b17d0ee91c2b45fe9509d0cdc420527cb","tags":[]},{"url":"https://git.kernel.org/stable/c/57835c0e7152e36b03875dd6c56dfeed685c1b1f","tags":[]},{"url":"https://git.kernel.org/stable/c/c2389c074973aa94e34992e7f66dac0de37595b5","tags":[]},{"url":"https://git.kernel.org/stable/c/45cf976008ddef4a9c9a30310c9b4fb2a9a6602a","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[]}],"priority":{"score":8.4,"factors":[{"name":"EPSS percentile","points":3.27},{"name":"CVSS severity","points":5.11}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 0c771b99d6c9a0552fea5cc43669b726dad8f659, < f754591b17d0ee91c2b45fe9509d0cdc420527cb",">= 0c771b99d6c9a0552fea5cc43669b726dad8f659, < 57835c0e7152e36b03875dd6c56dfeed685c1b1f",">= 0c771b99d6c9a0552fea5cc43669b726dad8f659, < c2389c074973aa94e34992e7f66dac0de37595b5",">= 0c771b99d6c9a0552fea5cc43669b726dad8f659, < 45cf976008ddef4a9c9a30310c9b4fb2a9a6602a"]},{"vendor":"Linux","product":"Linux","versions":["5.10"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T17:07:45.783551Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-37997","exploited":false,"provenance":"source"}}