CVE-2024-39472: xfs: fix log recovery buffer allocation for the legacy h_size fixup
In the Linux kernel, the following vulnerability has been resolved:
xfs: fix log recovery buffer allocation for the legacy hsize fixup
Commit a70f9fe52daa ("xfs: detect and handle invalid iclog size set by mkfs") added a fixup for incorrect hsize values used for the initial umount record in old xfsprogs versions. Later commit 0c771b99d6c9 ("xfs: clean up calculation of LR header blocks") cleaned up the log reover buffer calculation, but stoped using the fixed up hsize value to size the log recovery buffer, which can lead to an out of bounds access when the incorrect hsize does not come from the old mkfs tool, but a fuzzer.
Fix this by open coding xloglogrechblks and taking the fixed hsize into account for this calculation.
Other sources
In the Linux kernel, the following vulnerability has been resolved:
xfs: fix log recovery buffer allocation for the legacy hsize fixup
The Linux kernel CVE team has assigned CVE-2024-39472 to this issue.
Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024070512-CVE-2024-39472-f977@gregkh/T
— Red Hat
Linux Kernel is vulnerable to a denial of service, caused by incorrect hsize values used for the initial umount record in xfslogrecover.c. A local authenticated attacker could exploit this vulnerability to cause a denial of service.
— IBM
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-39472?
CVE-2024-39472 is classified as a medium severity vulnerability in the Linux kernel.
How do I fix CVE-2024-39472?
To fix CVE-2024-39472, you should upgrade your Linux kernel to the recommended versions provided by your distribution.
Which versions of the Linux kernel are affected by CVE-2024-39472?
CVE-2024-39472 affects multiple versions of the Linux kernel up to 6.9.3 and includes specific Debian and Red Hat kernel versions.
Is there a workaround for CVE-2024-39472?
No specific workaround for CVE-2024-39472 has been documented; updating the kernel is the best approach.
What distribution sources are associated with CVE-2024-39472?
CVE-2024-39472 is relevant to Red Hat and Debian distributions with specific kernel versions that need upgrading.