CVE-2024-56548

Description

A successful exploitation of this vulnerability requires higher-level privileges such as root, which is why the CVSS has been marked as such.

Statement

A moderate-impact out-of-bounds write flaw was found in the Linux kernel's hfsplus filesystem implementation, as shipped in Red Hat Enterprise Linux and related kernel offerings. When a privileged local user mounts an hfsplus filesystem on a device whose logical block size changes after the initial query (for example, a loop device reconfigured via the LOOP_SET_BLOCK_SIZE ioctl), hfsplus_read_wrapper can allocate a block using one size while hfsplus_submit_bio reads a different io_size, resulting in an out-of-bounds write, observed by KASAN as a slab-use-after-free in hfsplus_read_wrapper. Exploitation requires local access with root or equivalent administrative privileges (mounting a crafted filesystem and controlling device block sizes), which is why Red Hat Product Security rates this issue as moderate impact with CVSS 6.7 (AV:L/AC:L/PR:H) rather than the important severity assigned by upstream and NIST (CVSS 7.8, PR:L). Per the current assessment, the kernel and kernel-rt packages in Red Hat Enterprise Linux 7, 8, and 9, as well as the Hosted OpenShift (ARO and OSD) offerings, are marked not affected; the Red Hat Enterprise Linux 6 Extended Lifecycle Support kernel stream remains recorded with an out-of-support (OOSS) resolution.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score6.77.87.8
Attack VectorLocalLocalLocal
Attack ComplexityLowLowLow
Privileges RequiredHighLowLow
User InteractionNoneNoneNone
ScopeUnchangedUnchangedUnchanged
ConfidentialityHighHighHigh
Integrity ImpactHighHighHigh
Availability ImpactHighHighHigh

Vector

Red Hat: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

NVD: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

cve.org: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Red Hat CVSS v3 Score Explanation

This issue is considered to be a moderate impact flaw, as the exploitation for this will need an ADMIN (or ROOT) privilege (PR:H).

Understanding the Weakness (CWE)

Integrity

Technical Impact: Modify Memory; Execute Unauthorized Code or Commands

Write operations could cause memory corruption. In some cases, an adversary can modify control data such as return addresses in order to execute unexpected code.

Availability

Technical Impact: DoS: Crash, Exit, or Restart

Attempting to access out-of-range, invalid, or unauthorized memory could cause the product to crash.

Other

Technical Impact: Unexpected State

Subsequent write operations can produce undefined or unexpected results.

Frequently Asked Questions

Want to get errata notifications? Sign up here.