First published: Mon Jan 15 2024(Updated: )
A flaw has been discovered in the Linux kernel memory deduplication mechanism. Previous research has shown that memory deduplication can be attacked by exploiting the Copy-on-Write (COW) mechanism. However, the max page sharing[1] of Kernel Samepage Merging (KSM), added in Linux kernel version 4.4.0-96.119, can create another side channel. When the attacker and the victim share the same host and the default setting of KSM is "max page sharing=256", the attacker maps 256 memory of the same pages it wants to learn and waits. He can then time the unmap to see if it merges with the victim's page. The reason the unmapping time depends on whether it merges with the victim's page is that additional physical pages are created beyond the KSM's "max page share". Through these operations, the attacker leaks the victim's page. We have confirmed that the target Linux kernel versions are 4.4.0-96.119 through 5.15.0-58-generic, and we expect later versions to be possible. The research, titled "Exploiting Memory Page Management in KSM for Remote Memory Deduplication Attack," was presented at The 24th World Conference on Information Security Applications (WISA), 2023 [2] and will be published by Springer this year [3]. - Reference - [1] <a href="https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1680513">https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1680513</a> [2] <a href="https://wisa.or.kr/accepted">https://wisa.or.kr/accepted</a> [3] <a href="https://link.springer.com/conference/wisa">https://link.springer.com/conference/wisa</a>
Credit: secalert@redhat.com
Affected Software | Affected Version | How to fix |
---|---|---|
Linux Kernel | >=4.4.0-96.119<=5.15.0-58 | |
Red Hat Enterprise Linux | =8.0 | |
Red Hat Enterprise Linux | =9.0 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2024-0564 is considered a high severity vulnerability due to its potential to exploit the memory deduplication mechanism in the Linux kernel.
CVE-2024-0564 can potentially allow an attacker to exploit the Copy-on-Write (COW) mechanism to gain unauthorized access or execute arbitrary code.
To fix CVE-2024-0564, it is recommended to update the Linux kernel to version 5.15.0-58 or later, or ensure you are using the latest patches provided by your distribution.
CVE-2024-0564 impacts multiple Linux distributions, specifically those using Linux kernel versions from 4.4.0-96.119 up to 5.15.0-58, including Red Hat Enterprise Linux 8.0 and 9.0.
Currently, there are no specific workarounds for CVE-2024-0564 aside from applying the recommended kernel updates as they become available.