CVE-2024-39472
published high CVSS 3.1 · 7.3xfs: fix log recovery buffer allocation for the legacy h_size fixup
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux0c771b99d6c9a0552fea5cc43669b726dad8f659 to < f754591b17d0ee91c2b45fe9509d0cdc420527cb · 0c771b99d6c9a0552fea5cc43669b726dad8f659 to < 57835c0e7152e36b03875dd6c56dfeed685c1b1f · 0c771b99d6c9a0552fea5cc43669b726dad8f659 to < c2389c074973aa94e34992e7f66dac0de37595b5 · 0c771b99d6c9a0552fea5cc43669b726dad8f659 to < 45cf976008ddef4a9c9a30310c9b4fb2a9a6602a · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.10 (affected) · 0 to < 5.10 (unaffected · semver) · 5.15.165 through 5.15.* (unaffected · semver) · 6.1.105 through 6.1.* (unaffected · semver) · 6.6.46 through 6.6.* (unaffected · semver) · 6.10 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected; No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.15-2025-065 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-864 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | bpftool | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| Debian | bullseye | linux-6.1 | Advisory build | 6.1.119-1~deb11u1 | DLA-4008-1 |
Show 98 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 8 | kernel | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-abi-stablelists | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-core | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-cross-headers | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-debug | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-debug-core | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-debug-devel | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-debug-modules | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-debug-modules-extra | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-devel | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-doc | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-headers | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-modules | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-modules-extra | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-rt | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-core | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-debug | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-debug-core | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-debug-devel | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-debug-kvm | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-debug-modules | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-debug-modules-extra | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-devel | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-kvm | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-modules | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-modules-extra | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-tools | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-tools-libs | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-tools-libs-devel | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-zfcpdump | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-zfcpdump-core | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-zfcpdump-devel | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-zfcpdump-modules | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-zfcpdump-modules-extra | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | perf | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | python3-perf | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 9 | bpftool | Advisory build | 7.3.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-64k | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-64k-core | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-64k-debug | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-64k-debug-core | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-64k-debug-devel | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-64k-debug-devel-matched | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-64k-debug-modules | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-64k-debug-modules-core | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-64k-debug-modules-extra | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-64k-devel | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-64k-devel-matched | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-64k-modules | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-64k-modules-core | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-64k-modules-extra | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-abi-stablelists | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-core | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-cross-headers | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-debug | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-debug-core | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-debug-devel | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-debug-devel-matched | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-debug-modules | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-debug-modules-core | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-debug-modules-extra | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-debug-uki-virt | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-devel | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-devel-matched | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-doc | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-headers | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-modules | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-modules-core | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-modules-extra | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-rt | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-rt-core | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-rt-debug | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-rt-debug-core | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-rt-debug-devel | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-rt-debug-modules | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-rt-debug-modules-core | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-rt-debug-modules-extra | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-rt-devel | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-rt-modules | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-rt-modules-core | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-rt-modules-extra | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-tools | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-tools-libs | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-tools-libs-devel | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-uki-virt | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-zfcpdump | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-zfcpdump-core | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-zfcpdump-devel | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-zfcpdump-devel-matched | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-zfcpdump-modules | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-zfcpdump-modules-core | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | kernel-zfcpdump-modules-extra | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | libperf | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | perf | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | python3-perf | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | rtla | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux | 9 | rv | Advisory build | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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 h_size 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 h_size 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 xlog_logrec_hblks and taking the fixed h_size into account for this calculation.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.3 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:H
- Scenarios
- en: AV:L - The bug is reached only through XFS log recovery at mount time on a locally attached block device or image file; no network or remote-peer data reaches this code. Delivery via removable media still requires the image to be mounted on the local system. AC:L - Every input is attacker-chosen on-disk data — `sb_logsunit` (raises `m_logbsize` to 256K with no mount option needed), and `h_size`/`h_len`/`h_num_logops`/`h_version` in the tail log record — so the undersized `hbp` and the ~224 KB overread happen deterministically on every mount, with no race and no memory layout to groom. PR:N - The attacker needs no account or privilege on the target; they only need to hand over a crafted XFS image (USB stick, disk image, exported LUN) that is then mounted by the victim or by an automounter such as udisks2 on a desktop or kiosk. Equivalently, an unprivileged local user on an automount-enabled system reaches it with PR:L/UI:N, which yields the identical exploitability score. UI:R - A user or automount service must mount the malicious filesystem with a dirty log so that `xlog_do_recovery_pass()` runs; the attacker cannot initiate the mount themselves. S:U - The out-of-bounds access and its consequences stay inside the kernel's own security authority — no hypervisor, IOMMU, or sandbox boundary is crossed. C:H - `xlog_cksum()` and `xlog_unpack_data()` read at 32 KB strides up to ~224 KB past a 512-byte `kvzalloc()` slab object, and on a non-CRC (v4) image the harvested heap dwords are copied into the replayed log data and committed to the filesystem, giving the attacker a large, readable kernel heap disclosure. I:L - There is no out-of-bounds write — `dbp` is sized from the fixed-up `h_size` and `bblks <= BTOBB(h_size)` — but the out-of-bounds kernel heap dwords are spliced into the log record data by `xlog_unpack_data()` and replayed into on-disk metadata, producing limited, attacker-uncontrolled modification of filesystem data. A:H - Reading roughly 224 KB beyond a 512-byte slab allocation readily crosses into unmapped memory, producing a page fault/oops (or a KASAN slab-out-of-bounds panic) during mount, taking down the system.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 0c771b99d6c9a0552fea5cc43669b726dad8f659 to < f754591b17d0ee91c2b45fe9509d0cdc420527cb (affected · git)0c771b99d6c9a0552fea5cc43669b726dad8f659 to < 57835c0e7152e36b03875dd6c56dfeed685c1b1f (affected · git)0c771b99d6c9a0552fea5cc43669b726dad8f659 to < c2389c074973aa94e34992e7f66dac0de37595b5 (affected · git)0c771b99d6c9a0552fea5cc43669b726dad8f659 to < 45cf976008ddef4a9c9a30310c9b4fb2a9a6602a (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.10 (affected)0 to < 5.10 (unaffected · semver)5.15.165 through 5.15.* (unaffected · semver)6.1.105 through 6.1.* (unaffected · semver)6.6.46 through 6.6.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/45cf976008ddef4a9c9a30310c9b4fb2a9a6602a
- https://git.kernel.org/stable/c/57835c0e7152e36b03875dd6c56dfeed685c1b1f
- https://git.kernel.org/stable/c/c2389c074973aa94e34992e7f66dac0de37595b5
- https://git.kernel.org/stable/c/f754591b17d0ee91c2b45fe9509d0cdc420527cb
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
Provider assertions
3Linux · cna
xfs: fix log recovery buffer allocation for the legacy h_size fixup
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 72632b482bff91d3a24ce017db29c2fc6adfe3ca69682b679fd1efe33ea7ced9
- Ingested
- 23 Sep 2026, 08:25:18 UTC
- Source record
- Official CVE record