cve.bz

CVE-2025-68211 linux linux kernel

5.5 mediumEPSS 0.1%Fix available

Medium (5.5) in linux linux kernel. EPSS 0.1% estimated probability of exploitation activity in the next 30 days.

On this page
In the Linux kernel, the following vulnerability has been resolved: ksm: use range-walk function to jump over holes in scan_get_next_rmap_item Currently, scan_get_next_rmap_item() walks every page address in a VMA to locate mergeable pages. This becomes highly inefficient when scanning large virtual memory areas that contain mostly unmapped regions, causing ksmd to use large amount of cpu without deduplicating much pages. This patch replaces the per-address lookup with a range walk using walk_page_range(). The range walker allows KSM to skip over entire unmapped holes in a VMA, avoiding unnecessary lookups. This problem was previously discussed in [1]. Consider the following test program which creates a 32 TiB mapping in the virtual address space but only populates a single page: #include <unistd.h> #include <stdio.h> #include <sys/mman.h> /* 32 TiB */ const size_t size = 32ul * 1024 * 1024 * 1024 * 1024; int main() { char *area = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_NORESERVE | MAP_PRIVATE | MAP_ANON, -1, 0); if (area == MAP_FAILED) { perror("mmap() failed\n"); return -1; } /* Populate a single page such that we get an anon_vma. */ *area = 0; /* Enable KSM. */ madvise(area, size, MADV_MERGEABLE); pause(); return 0; } $ ./ksm-sparse & $ echo 1 > /sys/kernel/mm/ksm/run Without this patch ksmd uses 100% of the cpu for a long time (more then 1 hour in my test machine) scanning all the 32 TiB virtual address space that contain only one mapped page. This makes ksmd essentially deadlocked not able to deduplicate anything of value. With this patch ksmd walks only the one mapped page and skips the rest of the 32 TiB virtual address space, making the scan fast using little cpu.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.1% (unchanged from 0.1% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 4th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-06-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-68211 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-68211?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-68211?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-68211 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2025-68211

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2025-68211](https://cve.bz/cve/badge/CVE-2025-68211.svg)](https://cve.bz/cve/CVE-2025-68211)

HTML:

<a href="https://cve.bz/cve/CVE-2025-68211"><img src="https://cve.bz/cve/badge/CVE-2025-68211.svg" alt="CVE-2025-68211"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux2.6.32 and later

Fixed in

ProductRelease lineFixed in
Linux5.105.10.249
Linux5.155.15.199
Linux6.16.1.161
Linux6.66.6.121
Linux6.126.12.59
Linux6.176.17.9
Linuxlater releases6.18

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11linux5.10.249-1DLA-4475-1
Debian11linux-6.16.1.162-1~deb11u1DLA-4476-1
Debian12linux6.1.162-1DEBIAN-CVE-2025-68211 DSA-6127-1
Debian13linux6.12.63-1DEBIAN-CVE-2025-68211
Debian14linux6.17.9-1DEBIAN-CVE-2025-68211
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2025-68211
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2025-68211
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2025-68211
Ubuntu22.04:LTSlinux5.15.0-176.186UBUNTU-CVE-2025-68211 USN-8180-1
Ubuntu22.04:LTSlinux-aws5.15.0-1105.112UBUNTU-CVE-2025-68211 USN-8180-1
Ubuntu22.04:LTSlinux-azure5.15.0-1110.119UBUNTU-CVE-2025-68211 USN-8180-3
Ubuntu22.04:LTSlinux-azure-fde5.15.0-1114.123UBUNTU-CVE-2025-68211
Ubuntu22.04:LTSlinux-gcp5.15.0-1105.114UBUNTU-CVE-2025-68211 USN-8180-1
Ubuntu22.04:LTSlinux-gke5.15.0-1101.107UBUNTU-CVE-2025-68211 USN-8180-1
Ubuntu22.04:LTSlinux-gkeop5.15.0-1088.96UBUNTU-CVE-2025-68211 USN-8180-1
Ubuntu22.04:LTSlinux-ibm, linux-raspi5.15.0-1099.102UBUNTU-CVE-2025-68211 USN-8180-5 USN-8180-6
Ubuntu22.04:LTSlinux-intel-iotg5.15.0-1100.106UBUNTU-CVE-2025-68211 USN-8180-3
46 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 29 more0:5.14.0-687.42.1.el9_8RHSA-2026:59723
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 45 more0:5.14.0-687.42.1.el9_8RHSA-2026:59723
Red Hatenterprise_linux:9::crblibperf, perf-debuginfo, kernel-debuginfo and 16 more0:5.14.0-687.42.1.el9_8RHSA-2026:59723
Red Hatenterprise_linux:9::nfvkernel-rt, kernel-rt-core, perf-debuginfo and 18 more0:5.14.0-687.42.1.el9_8RHSA-2026:59723
Red Hatenterprise_linux:9::realtimekernel-rt, kernel-rt-64k, kernel-rt-core and 35 more0:5.14.0-687.42.1.el9_8RHSA-2026:59723
Red Hatenterprise_linux:10.2rv, perf, rtla and 87 more0:6.12.0-211.42.1.el10_2RHSA-2026:49211
Red Hatrhel_eus:9.6::appstreamrv, perf, rtla and 29 more0:5.14.0-570.138.1.el9_6RHSA-2026:62568
Red Hatrhel_eus:9.6::baseoskernel, kernel-64k, kernel-core and 45 more0:5.14.0-570.138.1.el9_6RHSA-2026:62568
Red Hatrhel_eus:9.6::crblibperf, perf-debuginfo, kernel-debuginfo and 16 more0:5.14.0-570.138.1.el9_6RHSA-2026:62568
Red Hatrhel_eus:9.6::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 20 more0:5.14.0-570.138.1.el9_6RHSA-2026:62568
Red Hatrhel_eus:9.6::realtimekernel-rt, kernel-rt-64k, kernel-rt-core and 35 more0:5.14.0-570.138.1.el9_6RHSA-2026:62568
SUSELinux Enterprise High Availability Extension 16.0kernel-default6.12.0-160000.26.1SUSE-SU-2026:20615-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0kernel-64kb, kernel-docs, kernel-syms and 6 more6.12.0-160000.26.1SUSE-SU-2026:20599-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0kernel-default-base6.12.0-160000.26.1.160000.2.7SUSE-SU-2026:20599-1
SUSELinux Micro 6.2kernel-default-base6.12.0-160000.26.1.160000.2.7SUSE-SU-2026:20555-1
SUSELinux Micro 6.2kernel-rt, kernel-64kb, kernel-source and 1 more6.12.0-160000.26.1SUSE-SU-2026:20555-1
SUSELinux Micro Extras 6.2kernel-syms, kernel-obs-build6.12.0-160000.26.1SUSE-SU-2026:20570-1
openSUSELeap 16.0kernel-default-base6.12.0-160000.26.1.160000.2.7openSUSE-SU-2026:20287-1
openSUSELeap 16.0kernel-rt, dtb-aarch64, kernel-64kb and 9 more6.12.0-160000.26.1openSUSE-SU-2026:20287-1
AlmaLinux9rv, perf, rtla and 71 more5.14.0-687.42.1.el9_8ALSA-2026:59723
AlmaLinux10rv, perf, rtla and 72 more6.12.0-211.42.1.el10_2ALSA-2026:49211
Rocky Linux9kernel0:5.14.0-687.42.1.el9_8RLSA-2026:59723
Rocky Linux10kernel0:6.12.0-211.42.1.el10_2RLSA-2026:49211
Azure Linux2kernel5.15.200.1-1AZL-78398
Azure Linux3kernel6.6.121.1-1AZL-72419
Alpaquita23linux-lts6.1.161-r0BELL-CVE-2025-68211
Alpaquita25linux-lts6.12.61-r0BELL-CVE-2025-68211
Alpaquitastreamlinux-lts6.18.35-r1BELL-CVE-2025-68211

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Any process can create large sparse mappings with MADV_MERGEABLE, causing ksmd to waste CPU cycles. This is a denial of service against the KSM deduplication daemon rather than a memory corruption issue.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10kernel-0:6.12.0-211.42.1.el10_2Fixed 2026-07-31RHSA-2026:49211
Red Hat Enterprise Linux 9kernel-0:5.14.0-687.42.1.el9_8Fixed 2026-08-26RHSA-2026:59723
Red Hat Enterprise Linux 9.6 Extended Update Supportkernel-0:5.14.0-570.138.1.el9_6Fixed 2026-09-02RHSA-2026:62568
Red Hat Enterprise Linux 6kernelOut of support scope
Red Hat Enterprise Linux 7kernelFix deferred
Red Hat Enterprise Linux 7kernel-rtFix deferred
Red Hat Enterprise Linux 8kernelFix deferred
Red Hat Enterprise Linux 8kernel-rtFix deferred
Red Hat Enterprise Linux 9kernel-rtFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-68211.

References

Check your stackJSON