CVE-2024-0564Medium· 5.3▾ SunlitA 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 t…
▾ Sunlit zone — Low / medium · no exploitation signal
impact 29.2 · likelihood 0.1 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Stakeholder-Specific Vulnerability Categorization from CISA's ADP record at CVE.org: whether exploitation is observed, whether an attack can be automated, and how much of the system is at stake. The CVSS score shown above comes from the assigning CNA record, not NVD.
Exploit-prediction probability, daily snapshots since Nov 6.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via CVEORG
Last analysed / modified upstream
0.6%
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.
kernel (all versions)kernelkernelkernel-rtkernel (all versions)kernel-rt (all versions)kernel (all versions)kernel-rt (all versions)Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
The mitigation shown below has a potentially significant impact on system performance and stability. It should be carefully tested prior to deployment:
Deactivating memory deduplication will effectively mitigate all attack vectors. This measure unfortunately eliminates all the highly appreciated benefits of memory deduplication, namely the increase of operational cost-effectiveness through inter-VM memory sharing. This will cause an increase in the amount of memory required and in some situations may adversely impact performance (e.g. due to slower swap space being used). It is recommended that customers test this workaround before using it in production. See https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/virtualization_tuning_and_optimization_guide/sect-ksm-deactivating_ksm for how to disable KSM from Red Hat Enterprise Linux 6 and newer.
The attack uses the response time of services on the system. By limiting access to services an attacker must connect to the service to successful carry out the exploit. Reducing the number of systems that are allowed to connect to the service will prevent an attack from working when launched outside an allowed ranges. While this does not prevent an attack from working, it will reduce the amount of systems that an attacker can launch an attack from.
Connected by shared product, vendor, weakness, or advisory.
CVE-2023-4387High· 7.1Kernel: vmxnet3: use-after-free in vmxnet3_rq_alloc_rx_buf()
CVE-2023-39197Medium· 4.0Kernel: dccp: conntrack out-of-bounds read in nf_conntrack_dccp_packet()
CVE-2023-4147High· 7.8Kernel: netfilter: nf_tables_newrule when adding a rule with nfta_rule_chain_id leads to use-after-free
CVE-2023-4385Medium· 5.5Kernel: jfs: null pointer dereference in dbfree()
CVE-2023-39191High· 8.2Kernel: ebpf: insufficient stack type checks in dynptr
CVE-2023-3108Medium· 6.2Kernel: a race condition in crypto module in the function skcipher_recvmsg