Vulnerability in hfsplus package: Prevent Corruption in Shrinking Truncate
Summary
GSD-2021-1000320: hfsplus: prevent corruption in shrinking truncate. Affects Kernel versions >= 31651c607151f1034cfb57e5a78678bea54c362b, < adbd8a2a8cc05d9e501f93e5c95c59307874cc99. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The hfsplus package is a file system driver used in the Linux Kernel. It provides support for the HFS+ file system, which is commonly used by macOS. The package allows Linux systems to read and write data on HFS+ formatted drives. However, a vulnerability has been discovered in the package that can lead to corruption when performing a shrinking truncate operation.
Vulnerability Detail
The vulnerability in the hfsplus package occurs during a shrinking truncate operation. When this operation is performed on a file system, it reduces the size of a file. However, due to a flaw in the hfsplus package, this operation can result in corruption of the file system. This corruption can lead to data loss or the inability to access files on the affected drive. The vulnerability was introduced in version v4.19 of the Linux Kernel and has been fixed in version v5.10.38.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no known workaround for this vulnerability. It is essential to update the Linux Kernel to the fixed version to mitigate the risk of file system corruption.
Conclusion
The hfsplus package in the Linux Kernel is vulnerable to corruption during shrinking truncate operations. To mitigate this vulnerability, it is crucial to update the Linux Kernel to version v5.10.38 or later. This update includes the necessary fix to prevent file system corruption. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The hfsplus package is a file system driver used in the Linux Kernel to provide support for the HFS+ file system, commonly used by macOS.
A shrinking truncate operation is a file system operation that reduces the size of a file. It is typically used to reclaim disk space by removing unused portions of a file.
The vulnerability can lead to corruption of the file system, resulting in data loss or the inability to access files on the affected drive.
The vulnerability was introduced in version v4.19 of the Linux Kernel. All versions between v4.19 and v5.10.37 are affected.
You can use Vulert's playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it for any open-source vulnerabilities, including this one.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.