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

Medium 5.3 Published Updated

A local attacker on the same host can leak victim memory pages via a timing side channel in Linux kernel KSM memory deduplication.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-0564?

CVE-2024-0564 is a medium-severity vulnerability in Linux kernel, published on 30 Jan 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-203

Which versions are affected by CVE-2024-0564?

It affects 2 products.

Products include Linux kernel, Redhat Enterprise Linux.

How do I fix CVE-2024-0564?

Apply the vendor's patch.

Is CVE-2024-0564 being exploited?

There is no known exploitation of CVE-2024-0564 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-110412, DEBIAN-CVE-2024-0564, GHSA-5m9g-m2vj-47r4, ROOT-OS-DEBIAN-12-CVE-2024-0564, ROOT-OS-DEBIAN-13-CVE-2024-0564, ROOT-OS-UBUNTU-2204-CVE-2024-0564 and 2 more.

Is CVE-2024-0564 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free