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

- Severity: Medium 5.3 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.63%, higher than 51% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-01-30T15:01:08.057Z
- Modified: 2026-11-25T14:17:05.233Z
- Weaknesses: CWE-203
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- kernel: no versions given (not affected: before 4.4.0-96.119)
- kernel-rt: no versions given
- linux linux_kernel: from 4.4.0-96.119 up to 5.15.0-58
- redhat enterprise_linux: 8.0; 9.0

## Every score

- redhat: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1680513> (exploit, issue-tracking)
- <https://access.redhat.com/security/cve/CVE-2024-0564> (third-party-advisory, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2258514> (issue-tracking)
- <https://link.springer.com/conference/wisa> (not-applicable)
- <https://wisa.or.kr/accepted> (not-applicable)

## Sources

- CVE List: [CVE-2024-0564](https://www.cve.org/CVERecord?id=CVE-2024-0564), CVE Terms of Use, modified 2026-11-25
- NVD: [CVE-2024-0564](https://nvd.nist.gov/vuln/detail/CVE-2024-0564), Public domain, modified 2026-11-25

---

Page: https://cve.day/CVE-2024-0564 · Whole record: https://cve.day/CVE-2024-0564.json · Rebuilt by cve.day 2026-11-25T23:17:35.926Z
