CVE-2026-89987

Description

A flaw was found in the Linux kernel's huge memory management. This vulnerability can lead to silent data loss for applications utilizing shared memory segments (MAP_SHARED tmpfs) when Transparent Huge Pages (THP) and swap are active. The system fails to correctly mark modified memory as 'dirty,' causing it to be discarded instead of being written to swap when the memory is unmapped. This can result in the unexpected loss of application data.

Statement

A data integrity flaw in the Linux huge PMD zap path can lose writes to MAP_SHARED tmpfs mappings when shmem THP is enabled and swap backed reclaim later removes the folio. The PMD dirty bit can be the only record that the 2MB folio was written after a read fault installed a writable PMD, but zap_huge_pmd_folio did not transfer that dirty state to the folio before unmapping. A local process can trigger the affected path by using a shared tmpfs mapping under the required configuration and causing unmap or process exit followed by reclaim. For the CVSS the PR:L is used because local user level code is required to create and access the mapping, while administrator setup may be needed to enable shmem THP or the relevant mount mode. The issue is not network reachable. Impact is silent data loss and integrity loss for affected tmpfs data, with possible application disruption, but there is no evidence of memory corruption or privilege escalation.

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 Score3.6N/AN/A
Attack VectorLocalN/AN/A
Attack ComplexityHighN/AN/A
Privileges RequiredLowN/AN/A
User InteractionNoneN/AN/A
ScopeUnchangedN/AN/A
ConfidentialityNoneN/AN/A
Integrity ImpactLowN/AN/A
Availability ImpactLowN/AN/A

Vector

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

Understanding the Weakness (CWE)

Other

Technical Impact: Varies by Context

When code does not follow the instructions for resource management, it can lead to unexpected behaviors and potentially exploitable states.

Frequently Asked Questions

Want to get errata notifications? Sign up here.