Exploiting Memory Page Management in KSM for Remote Memory Deduplication Attack

被引:0
|
作者
Bae, Seungyeon [1 ]
Kim, Taehun [1 ]
Lee, Woomin [1 ]
Shin, Youngjoo [1 ]
机构
[1] Korea Univ, Sch Cybersecur, Seoul, South Korea
来源
INFORMATION SECURITY APPLICATIONS, WISA 2023 | 2024年 / 14402卷
基金
新加坡国家研究基金会;
关键词
Memory deduplication; Side-channel attack; Linux KSM;
D O I
10.1007/978-981-99-8024-6_19
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In virtualized environments, modern operating systems take advantage of memory deduplication feature to efficiently manage physical memory. However, the adoption of this technique has given rise to memory deduplication attacks that disclose memory pages used by a victim VM. All these attacks rely on the latency of the memory write operation to distinguish deduplicated pages from other pages. While performing such attacks in a cross-VM attack scenario is relatively straightforward, implementing a remote memory deduplication attack is not trivial due to the limitations in issuing memory write requests to the desired physical page on the remote machine. In this paper, we present a novel memory deduplication attack that exploits the memory page management mechanism in Kernel Samepage Merging (KSM). Modern implementation of KSM enforces the maximum number of shared pages for performance reasons. Therefore, if the number of pages with the same content exceeds the maximum page limit, they can refer to different physical pages despite having the same content. We exploit this property by intentionally mapping the maximum number of pages, causing two physical pages with the same content to exist in the physical memory. Unlike the previous work, our attack measures the latency for the memory unmap operation to figure out the victim VM's memory page. This novel type of attack allows an attacker to infer other applications' memory pages, such as the Nginx web server, without relying on the memory write operation.
引用
收藏
页码:244 / 256
页数:13
相关论文
共 50 条
  • [1] Leveraging Array Mapped Tries in KSM for Lightweight Memory Deduplication
    You, Lingjing
    Li, Yongkun
    Guo, Fan
    Xu, Yinlong
    Chen, Jinzhong
    Yuan, Liu
    2019 IEEE INTERNATIONAL CONFERENCE ON NETWORKING, ARCHITECTURE AND STORAGE (NAS), 2019, : 99 - 106
  • [2] Implementation of a Memory Disclosure Attack on Memory Deduplication of Virtual Machines
    Suzaki, Kuniyasu
    Iijima, Kengo
    Yagi, Toshiki
    Artho, Cyrille
    IEICE TRANSACTIONS ON FUNDAMENTALS OF ELECTRONICS COMMUNICATIONS AND COMPUTER SCIENCES, 2013, E96A (01) : 215 - 224
  • [3] MDedup++: Exploiting Temporal and Spatial Page-Sharing Behaviors for Memory Deduplication Enhancement
    Veni, T. (406111001@nitt.edu), 1600, Oxford University Press (59):
  • [4] Predicting Memory Page Stability and its Application to Memory Deduplication and Live Migration
    Elghamrawy, Karim
    Franklin, Diana
    Chong, Frederic T.
    2017 IEEE INTERNATIONAL SYMPOSIUM ON PERFORMANCE ANALYSIS OF SYSTEMS AND SOFTWARE (ISPASS), 2017, : 125 - 126
  • [5] MDedup plus plus : Exploiting Temporal and Spatial Page-Sharing Behaviors for Memory Deduplication Enhancement
    Veni, T.
    Bhanu, S. Mary Saira
    COMPUTER JOURNAL, 2016, 59 (03): : 353 - 370
  • [6] PageCmp: Bandwidth Efficient Page Deduplication through In-memory Page Comparison
    Raoufi, Mehrnoosh
    Deng, Quan
    Zhang, Youtao
    Yang, Jun
    2019 IEEE COMPUTER SOCIETY ANNUAL SYMPOSIUM ON VLSI (ISVLSI 2019), 2019, : 82 - 87
  • [7] Exploiting ILP in page-based intelligent memory
    Oskin, M
    Hensley, J
    Keen, D
    Chong, FT
    Farrens, M
    Chopra, A
    32ND ANNUAL INTERNATIONAL SYMPOSIUM ON MICROARCHITECTURE, (MICRO-32), PROCEEDINGS, 1999, : 208 - 218
  • [8] Exploiting page write pattern for power management of hybrid DRAM/PRAM memory system
    School of Computer Science and Information Engineering, Zhejiang Gongshang University, Hangzhou
    310018, China
    不详
    310027, China
    J. Inf. Sci. Eng., 5 (1633-1646):
  • [9] Exploiting Page Write Pattern for Power Management of Hybrid DRAM/PRAM Memory System
    Zhang, Tiefei
    Xing, Jianguo
    Zhu, Jixiang
    Chen, Tianzhou
    JOURNAL OF INFORMATION SCIENCE AND ENGINEERING, 2015, 31 (05) : 1633 - 1646
  • [10] Sparrow: Flexible Memory Deduplication in Android Systems with Similar-Page Awareness
    Wei, Guangyu
    Li, Changlong
    Xu, Rui
    Zhuge, Qingfeng
    Sha, Edwin H-M
    2024 DESIGN, AUTOMATION & TEST IN EUROPE CONFERENCE & EXHIBITION, DATE, 2024,