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 |
---|---|---|
>=4.4.0-96.119<=5.15.0-58 | ||
=8.0 | ||
=9.0 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.