PT-2021-8270 · Linux+2 · Linux Kernel+2

Jouni Roivas

·

Published

2021-05-14

·

Updated

2024-11-04

·

CVE-2021-46989

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description The issue is related to the hfsplus file truncate() function in the Linux kernel, which can cause corruption and data loss when shrinking truncate happens to the middle of an extent record. The problem occurs because the call to hfs brec remove() is not properly guarded, leading to the removal of the last matching extent record unconditionally. To reproduce this issue, create a file with at least 10 extents and perform a shrinking truncate into the middle of the last extent record, resulting in the number of remaining extents not being under or divisible by 8. The fix involves checking if the new truncated end is below the start of the extent record, making it safe to remove the full extent record.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Race Condition

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2025-00812
CVE-2021-46989
OESA-2024-1392
OESA-2024-1393
OPENSUSE-SU-2024_0857-1
SUSE-SU-2024:0856-1
SUSE-SU-2024:0857-1
SUSE-SU-2024:0926-1

Affected Products

Astra Linux
Linux Kernel
Suse