Kernel: max page sharing of kernel samepage merging (ksm) may cause memory deduplication
Summary
A flaw was found in the Linux kernel's memory deduplication mechanism. The max page sharing of Kernel Samepage Merging (KSM), added in Linux kernel version 4.4.0-96.119, can create a side channel. When the attacker and the victim share the same host and the default setting of KSM is "max page sharin...
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2024-0564 linux No fixed version in this record
- Ubuntu UBUNTU-CVE-2024-0564 linux-xilinx-zynqmp, linux-xilinx, linux-vmware +167 more No fixed version in this record
Original description The description as published by the source.
A flaw was found in the Linux kernel's memory deduplication mechanism. The max page sharing of Kernel Samepage Merging (KSM), added in Linux kernel version 4.4.0-96.119, can create a side channel. When the attacker and the victim share the same host and the default setting of KSM is "max page sharing=256", it is possible for the attacker to time the unmap to merge with the victim's page. The unmapping time depends on whether it merges with the victim's page and additional physical pages are created beyond the KSM's "max page share". Through these operations, the attacker can leak the victim's page.
Source: CVE.org (CVE Program・cvelistV5) NVD
References
- advisory access.redhat.com
- exploit bugs.launchpad.net
- issue bugzilla.redhat.com
- web link.springer.com
- web wisa.or.kr