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 条
  • [41] On the Effectiveness of Same-Domain Memory Deduplication
    Costi, Andreas
    Johannesmeyer, Brian
    Bosman, Erik
    Giuffrida, Cristiano
    Bos, Herbert
    PROCEEDINGS OF THE 15TH EUROPEAN WORKSHOP ON SYSTEMS SECURITY (EUROSEC 22), 2022, : 29 - 35
  • [42] Optimizing Power Consumption of Memory Deduplication Scheme
    Ahn, Jinwoo
    Shin, Dongkun
    18TH IEEE INTERNATIONAL SYMPOSIUM ON CONSUMER ELECTRONICS (ISCE 2014), 2014,
  • [43] Exploiting Java']Java objects behavior for memory management and optimizations
    Yu, ZCH
    Lau, FCM
    Wang, CL
    PROGRAMMING LANGUAGES AND SYSTEMS, PROCEEDINGS, 2004, 3302 : 437 - 452
  • [44] Mitigating Disk Energy Management Delays by Exploiting Peer Memory
    Wang, Guanying
    Butt, Ali R.
    Gniady, Chris
    2009 IEEE INTERNATIONAL SYMPOSIUM ON MODELING, ANALYSIS & SIMULATION OF COMPUTER AND TELECOMMUNICATION SYSTEMS (MASCOTS), 2009, : 614 - +
  • [45] VISUAL MEMORY FOR PLACE ON PAGE
    ZECHMEISTER, EB
    MCKILLIP, J
    PASKO, S
    BESPALEC, D
    JOURNAL OF GENERAL PSYCHOLOGY, 1975, 92 (01): : 43 - 52
  • [46] Exploiting non-blocking remote memory access communication in scientific benchmarks
    Tipparaju, V
    Krishnan, M
    Nieplocha, J
    Santhanaraman, G
    Panda, D
    HIGH PERFORMANCE COMPUTING - HIPC 2003, 2003, 2913 : 248 - 258
  • [47] Exploiting locality and tolerating remote memory access latency using thread migration
    Stephen Jenks
    Jean-Luc Gaudiot
    International Journal of Parallel Programming, 1997, 25 : 281 - 304
  • [48] Exploiting locality and tolerating remote memory access latency using thread migration
    Jenks, S
    Gaudiot, JL
    INTERNATIONAL JOURNAL OF PARALLEL PROGRAMMING, 1997, 25 (04) : 281 - 304
  • [49] Memory reservation and shared page management for real-time systems
    Kim, Hyoseung
    Rajkumar, Ragunathan
    JOURNAL OF SYSTEMS ARCHITECTURE, 2014, 60 (02) : 165 - 178
  • [50] Non-volatile Unified Memory Page Management for Improving Performance
    Sharma, Ashok
    Nam, Sang-Jae
    Kim, Cheong-Ghil
    Kim, Shin-Dug
    2014 INTERNATIONAL CONFERENCE ON IT CONVERGENCE AND SECURITY (ICITCS), 2014,