CWE data temporarily unavailableCWE data is currently experiencing intermittent outages, which may cause incomplete section loading on CVE pages. We are actively working on a fix.

CVE-2024-50250

Description

A buffer overrun exists in the Linux kernel. When pos and len are passed to dax_file_unshare, they are not aligned to an fsblock boundary, and the iteration of pos and length in the _iter function will reflect this.

Statement

A moderate-impact flaw was found in the Linux kernel's filesystem DAX (fsdax) implementation. When the file position and length passed to dax_file_unshare are not aligned to a filesystem block boundary, dax_unshare_iter() copies data using addresses that point to the start of the mapped page rather than to the requested file offset, so user data is copied to the wrong place and corrupted. Additionally, when the copy range does not end on a block boundary, only part of the destination block is populated, which exposes stale persistent-memory contents and results in an information disclosure. A local user with access to a file on a DAX-mounted persistent-memory filesystem could abuse unaligned unshare operations to corrupt data or disclose residual contents of other files. This issue affects the kernel and kernel-rt packages in Red Hat Enterprise Linux 9, where a fix is being pursued through the delegated maintenance process, and in Fedora. Red Hat Enterprise Linux 6, 7, and 8 streams and the hosted OpenShift cluster environments are not affected. Red Hat Product Security has rated this issue as MODERATE impact, lower than the upstream Important severity (NVD CVSS 3.1 score 7.1, CVE.org 7.8), because exploitation requires local access to a system configured with a DAX-enabled filesystem on persistent memory, which is not a common configuration.

Mitigation

Mitigation for this issue is either not available or the currently available options don't 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 Score7.37.17.8
Attack VectorLocalLocalLocal
Attack ComplexityLowLowLow
Privileges RequiredLowLowLow
User InteractionNoneNoneNone
ScopeUnchangedUnchangedUnchanged
ConfidentialityHighHighHigh
Integrity ImpactLowHighHigh
Availability ImpactHighNoneHigh

Vector

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

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

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

Frequently Asked Questions

Want to get errata notifications? Sign up here.