Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2021-46989

7.1 · HIGH
Published Feb 28, 2024 linux EPSS 0.24% (15th pctl)

Overview

CVE-2021-46989 is a high-severity vulnerability affecting linux linux_kernel. It was published on February 28, 2024 and has a CVSS 3.1 base score of 7.1 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.1, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical 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

Remediation

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
linux linux_kernel >= 4.19, < 4.19.191 Affected

Frequently Asked Questions

What is CVE-2021-46989?

CVE-2021-46989 is a high-severity vulnerability affecting linux linux_kernel. It was published on February 28, 2024 and has a CVSS 3.1 base score of 7.1 (HIGH).

How severe is CVE-2021-46989?

This vulnerability has a CVSS 3.1 base score of 7.1, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2021-46989?

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-46989?

CyberStrike's AI-powered security agents can automatically detect CVE-2021-46989 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.