CVE-2024-39472

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-39472
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-39472.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-39472
Downstream
Related
Published
2024-07-05T06:42:03.495Z
Modified
2025-11-28T02:35:18.659985Z
Summary
xfs: fix log recovery buffer allocation for the legacy h_size fixup
Details

In the Linux kernel, the following vulnerability has been resolved:

xfs: fix log recovery buffer allocation for the legacy h_size 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 h_size does not come from the old mkfs tool, but a fuzzer.

Fix this by open coding xloglogrechblks and taking the fixed h_size into account for this calculation.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39472.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0c771b99d6c9a0552fea5cc43669b726dad8f659
Fixed
f754591b17d0ee91c2b45fe9509d0cdc420527cb
Fixed
57835c0e7152e36b03875dd6c56dfeed685c1b1f
Fixed
c2389c074973aa94e34992e7f66dac0de37595b5
Fixed
45cf976008ddef4a9c9a30310c9b4fb2a9a6602a

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.10.0
Fixed
5.15.165
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.105
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.46