Files
Centos-kernel-stream-9/mm
CKI KWF Bot 71b3c5829b Merge: CVE-2025-68211 kernel: ksm: use range-walk function to jump over holes in scan_get_next_rmap_item
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/8345

An unprivileged local user can mark a huge sparse anonymous mapping (e.g. tens of TiB with only a few pages populated) as MADV_MERGEABLE, which causes ksmd to walk every virtual page address instead of skipping unmapped holes. That pins a CPU for a long time and effectively stalls Kernel Samepage Merging, so it is a local denial-of-service against the system’s page-deduplication path. The fix switches scan_get_next_rmap_item() to walk_page_range() so KSM jumps over holes and only scans mapped pages.

The following commit comes from the 6.6 stable tree.

CVE: CVE-2025-68211

JIRA: https://redhat.atlassian.net/browse/RHEL-189902

Signed-off-by: Nico Pache <npache@redhat.com>

Approved-by: Ricardo Robaina <rrobaina@redhat.com>
Approved-by: Luiz Capitulino <luizcap@redhat.com>
Approved-by: Rafael Aquini <raquini@redhat.com>
Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com>

Merged-by: CKI GitLab Kmaint Pipeline Bot <26919896-cki-kmaint-pipeline-bot@users.noreply.gitlab.com>
2026-08-04 08:11:29 +00:00
..
2026-05-31 15:28:18 -05:00
2026-06-15 18:03:17 +02:00
2025-11-04 10:13:02 -05:00
2026-02-03 18:08:37 -05:00
2025-11-04 10:13:02 -05:00