CVE-2021-46989
published high CVSS 3.1 · 7.1hfsplus: prevent corruption in shrinking truncate
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux31651c607151f1034cfb57e5a78678bea54c362b to < 52dde855663e5db824af51db39b5757d2ef3e28a · 31651c607151f1034cfb57e5a78678bea54c362b to < c451a6bafb5f422197d31536f82116aed132b72c · 31651c607151f1034cfb57e5a78678bea54c362b to < adbd8a2a8cc05d9e501f93e5c95c59307874cc99 · 31651c607151f1034cfb57e5a78678bea54c362b to < c477f62db1a0c0ecaa60a29713006ceeeb04b685 · 31651c607151f1034cfb57e5a78678bea54c362b to < 97314e45aa1223a42d60256a62c5d9af54baf446 · 31651c607151f1034cfb57e5a78678bea54c362b to < c3187cf32216313fb316084efac4dab3a8459b1d · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.19 (affected) · 0 to < 4.19 (unaffected · semver) · 4.19.191 through 4.19.* (unaffected · semver) · 5.4.120 through 5.4.* (unaffected · semver) · 5.10.38 through 5.10.* (unaffected · semver) · 5.11.22 through 5.11.* (unaffected · semver) · 5.12.5 through 5.12.* (unaffected · semver) · 5.13 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.4-2022-004 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP2 | cluster-md-kmp-defaultaarch64 | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | cluster-md-kmp-defaultppc64le | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | cluster-md-kmp-defaults390x | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP2 | cluster-md-kmp-defaultx86_64 | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | dlm-kmp-defaultaarch64 | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | dlm-kmp-defaultppc64le | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | dlm-kmp-defaults390x | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | dlm-kmp-defaultx86_64 | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | gfs2-kmp-defaultaarch64 | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | gfs2-kmp-defaultppc64le | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | gfs2-kmp-defaults390x | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | gfs2-kmp-defaultx86_64 | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-defaultaarch64 | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-defaultppc64le | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-defaults390x | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-defaultx86_64 | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-baseaarch64 | Advisory build | 5.3.18-150200.24.183.1.150200.9.93.2 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-baseppc64le | Advisory build | 5.3.18-150200.24.183.1.150200.9.93.2 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-bases390x | Advisory build | 5.3.18-150200.24.183.1.150200.9.93.2 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-basex86_64 | Advisory build | 5.3.18-150200.24.183.1.150200.9.93.2 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-develaarch64 | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-develppc64le | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-devels390x | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-develx86_64 | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-livepatchppc64le | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-livepatchs390x | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-livepatchx86_64 | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-livepatch-develppc64le | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-livepatch-devels390x | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-livepatch-develx86_64 | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-develnoarch | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-docsnoarch | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-livepatch-5_3_18-150200_24_183-defaultppc64le | Advisory build | 1-150200.5.3.2 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-livepatch-5_3_18-150200_24_183-defaults390x | Advisory build | 1-150200.5.3.2 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-livepatch-5_3_18-150200_24_183-defaultx86_64 | Advisory build | 1-150200.5.3.2 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-macrosnoarch | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-obs-buildaarch64 | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-obs-buildppc64le | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-obs-builds390x | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-obs-buildx86_64 | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-preemptaarch64 | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-preemptx86_64 | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-preempt-develaarch64 | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-preempt-develx86_64 | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-sourcenoarch | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-symsaarch64 | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-symsppc64le | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-symss390x | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-symsx86_64 | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | ocfs2-kmp-defaultaarch64 | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | ocfs2-kmp-defaultppc64le | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | ocfs2-kmp-defaults390x | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | ocfs2-kmp-defaultx86_64 | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | reiserfs-kmp-defaultaarch64 | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | reiserfs-kmp-defaultppc64le | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | reiserfs-kmp-defaults390x | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP2 | reiserfs-kmp-defaultx86_64 | Advisory build | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE / openSUSE | SLE-15-SP3 | cluster-md-kmp-defaultaarch64 | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | cluster-md-kmp-defaultppc64le | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | cluster-md-kmp-defaults390x | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | cluster-md-kmp-defaultx86_64 | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | dlm-kmp-defaultaarch64 | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | dlm-kmp-defaultppc64le | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | dlm-kmp-defaults390x | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | dlm-kmp-defaultx86_64 | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | gfs2-kmp-defaultaarch64 | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | gfs2-kmp-defaultppc64le | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | gfs2-kmp-defaults390x | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | gfs2-kmp-defaultx86_64 | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-64kbaarch64 | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-64kb-develaarch64 | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-defaultaarch64 | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-defaultppc64le | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-defaults390x | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-defaultx86_64 | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-baseaarch64 | Advisory build | 5.3.18-150300.59.153.2.150300.18.90.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-baseppc64le | Advisory build | 5.3.18-150300.59.153.2.150300.18.90.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-bases390x | Advisory build | 5.3.18-150300.59.153.2.150300.18.90.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-basex86_64 | Advisory build | 5.3.18-150300.59.153.2.150300.18.90.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-develaarch64 | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-develppc64le | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-devels390x | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-develx86_64 | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatchppc64le | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatchs390x | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatchx86_64 | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatch-develppc64le | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatch-devels390x | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatch-develx86_64 | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-develnoarch | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-docsnoarch | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_153-defaultppc64le | Advisory build | 1-150300.7.3.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_153-defaults390x | Advisory build | 1-150300.7.3.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_153-defaultx86_64 | Advisory build | 1-150300.7.3.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-macrosnoarch | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-obs-buildaarch64 | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-obs-buildppc64le | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-obs-builds390x | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-obs-buildx86_64 | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-preemptaarch64 | Advisory build | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: hfsplus: prevent corruption in shrinking truncate I believe there are some issues introduced by commit 31651c607151 ("hfsplus: avoid deadlock on file truncation") HFS+ has extent records which always contains 8 extents. In case the first extent record in catalog file gets full, new ones are allocated from extents overflow file. In case shrinking truncate happens to middle of an extent record which locates in extents overflow file, the logic in hfsplus_file_truncate() was changed so that call to hfs_brec_remove() is not guarded any more. Right action would be just freeing the extents that exceed the new size inside extent record by calling hfsplus_free_extents(), and then check if the whole extent record should be removed. However since the guard (blk_cnt > start) is now after the call to hfs_brec_remove(), this has unfortunate effect that the last matching extent record is removed unconditionally. To reproduce this issue, create a file which has at least 10 extents, and then perform shrinking truncate into middle of the last extent record, so that the number of remaining extents is not under or divisible by 8. This causes the last extent record (8 extents) to be removed totally instead of truncating into middle of it. Thus this causes corruption, and lost data. Fix for this is simply checking if the new truncated end is below the start of this extent record, making it safe to remove the full extent record. However call to hfs_brec_remove() can't be moved to it's previous place since we're dropping ->tree_lock and it can cause a race condition and the cached info being invalidated possibly corrupting the node data. Another issue is related to this one. When entering into the block (blk_cnt > start) we are not holding the ->tree_lock. We break out from the loop not holding the lock, but hfs_find_exit() does unlock it. Not sure if it's possible for someone else to take the lock under our feet, but it can cause hard to debug errors and premature unlocking. Even if there's no real risk of it, the locking should still always be kept in balance. Thus taking the lock now just before the check.
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.1 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable path is reached via local VFS truncate/setattr (ftruncate/truncate → notify_change → hfsplus_setattr → hfsplus_file_truncate) on a mounted HFS+ volume, not via network packet processing or an in-kernel network filesystem server. AC:L - An attacker who can write can create a file with ≥10 extents and shrink-truncate into the middle of the last overflow extent record; the incorrect hfs_brec_remove() and the tree_lock unlock imbalance both occur deterministically with no attacker-uncontrollable race or layout requirement. PR:L - Triggering requires only write access to a file on an already-mounted writable HFS+ filesystem (MAY_WRITE / writable fd); mounting HFS+ is an admin/deployment precondition, not an attacker privilege, matching prior local filesystem scoring. UI:N - The attacker drives fragmentation and the shrinking truncate on their own files; no separate victim action such as mounting a crafted image or opening a malicious file is required. S:U - Impact is confined to the host kernel and the mounted HFS+ filesystem authority (metadata corruption and lock imbalance); it does not cross a VM, IOMMU, or other security boundary. C:N - The defect wrongly removes extent overflow records and imbalances tree_lock, causing data loss and possible concurrent btree races, but does not provide an OOB/UAF read or other established information-disclosure primitive. I:H - Unconditional hfs_brec_remove() deletes an entire overflow extent record that should only be partially truncated, corrupting on-disk extent metadata and losing file data as described in the fix; the same path can also unlock tree_lock while another inode’s extent ops hold it, enabling concurrent btree modification. A:H - Breaking out of the truncate loop without re-acquiring tree_lock causes hfs_find_exit() to mutex_unlock an already-unlocked lock (kernel WARN/oops or hang under contention), and the resulting filesystem corruption denies access to affected data/volume.
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.5 | medium | CISA-ADP · adp | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 31651c607151f1034cfb57e5a78678bea54c362b to < 52dde855663e5db824af51db39b5757d2ef3e28a (affected · git)31651c607151f1034cfb57e5a78678bea54c362b to < c451a6bafb5f422197d31536f82116aed132b72c (affected · git)31651c607151f1034cfb57e5a78678bea54c362b to < adbd8a2a8cc05d9e501f93e5c95c59307874cc99 (affected · git)31651c607151f1034cfb57e5a78678bea54c362b to < c477f62db1a0c0ecaa60a29713006ceeeb04b685 (affected · git)31651c607151f1034cfb57e5a78678bea54c362b to < 97314e45aa1223a42d60256a62c5d9af54baf446 (affected · git)31651c607151f1034cfb57e5a78678bea54c362b to < c3187cf32216313fb316084efac4dab3a8459b1d (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.19 (affected)0 to < 4.19 (unaffected · semver)4.19.191 through 4.19.* (unaffected · semver)5.4.120 through 5.4.* (unaffected · semver)5.10.38 through 5.10.* (unaffected · semver)5.11.22 through 5.11.* (unaffected · semver)5.12.5 through 5.12.* (unaffected · semver)5.13 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-noinfo Not enough information
References
6- https://git.kernel.org/stable/c/52dde855663e5db824af51db39b5757d2ef3e28a
- https://git.kernel.org/stable/c/97314e45aa1223a42d60256a62c5d9af54baf446
- https://git.kernel.org/stable/c/adbd8a2a8cc05d9e501f93e5c95c59307874cc99
- https://git.kernel.org/stable/c/c3187cf32216313fb316084efac4dab3a8459b1d
- https://git.kernel.org/stable/c/c451a6bafb5f422197d31536f82116aed132b72c
- https://git.kernel.org/stable/c/c477f62db1a0c0ecaa60a29713006ceeeb04b685
Provider assertions
3Linux · cna
hfsplus: prevent corruption in shrinking truncate
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0307e203cea29bb1aacd1f00994f2ec6cd30ab849dc03347aeb418d2df277621
- Ingested
- 23 Sep 2026, 07:57:04 UTC
- Source record
- Official CVE record