CWE
203 99
EPSS
0.045%
Advisory Published
CVE Published
Updated

CVE-2024-0564: Kernel: max page sharing of kernel samepage merging (ksm) may cause memory deduplication

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 SoftwareAffected VersionHow 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

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-0564?

    CVE-2024-0564 is considered a high severity vulnerability due to its potential to exploit the memory deduplication mechanism in the Linux kernel.

  • How does the CVE-2024-0564 vulnerability affect systems?

    CVE-2024-0564 can potentially allow an attacker to exploit the Copy-on-Write (COW) mechanism to gain unauthorized access or execute arbitrary code.

  • How do I fix CVE-2024-0564?

    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.

  • Which Linux distributions are affected by CVE-2024-0564?

    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.

  • Is there a workaround for CVE-2024-0564?

    Currently, there are no specific workarounds for CVE-2024-0564 aside from applying the recommended kernel updates as they become available.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203