CVE Database›Document archive›CVE-2025-38447

CVE-2025-38447

kernel: mm/rmap: fix potential out-of-bounds page table access during batched unmap

Loading…

Severity

Unknown

Red Hat Product Security

—

CVSS

Review impact separately from score.

Published · July 25, 2025

Updated · October 30, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

mm/rmap: fix potential out-of-bounds page table access during batched unmap

As pointed out by David[1], the batched unmap logic in try_to_unmap_one() may read past the end of a PTE table when a large folio's PTE mappings are not fully contained within a single page table.

While this scenario might be rare, an issue triggerable from userspace must be fixed regardless of its likelihood. This patch fixes the out-of-bounds access by refactoring the logic into a new helper, folio_unmap_pte_batch().

The new helper correctly calculates the safe batch size by capping the scan at both the VMA and PMD boundaries. To simplify the code, it also supports partial batching (i.e., any number of pages from 1 up to the calculated safe maximum), as there is no strong reason to special-case for fully mapped folios.

Statement

This flaw carries no operational security risk for Red Hat Enterprise Linux as the vulnerable batched memory unmapping code is not present in supported product kernels. The issue stems from boundary-checking flaws during large folio unmapping that were introduced only in recent upstream kernel versions. Consequently, enterprise deployments running Red Hat kernels remain unaffected by this out-of-bounds reading vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CWE not specified