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 条
  • [21] Representing Contiguity in Page Table for Memory Management Units
    Jae Young Hur
    2017 IEEE 11TH INTERNATIONAL SYMPOSIUM ON EMBEDDED MULTICORE/MANY-CORE SYSTEMS-ON-CHIP (MCSOC 2017), 2017, : 21 - 28
  • [22] Contiguity Representation in Page Table for Memory Management Units
    Hur, Jae Young
    IEEE TRANSACTIONS ON VERY LARGE SCALE INTEGRATION (VLSI) SYSTEMS, 2019, 27 (01) : 147 - 158
  • [23] Memory Deduplication for Serverless Computing with Medes
    Saxena, Divyanshu
    Ji, Tao
    Singhvi, Arjun
    Khalid, Junaid
    Akella, Aditya
    PROCEEDINGS OF THE SEVENTEENTH EUROPEAN CONFERENCE ON COMPUTER SYSTEMS (EUROSYS '22), 2022, : 714 - 729
  • [24] Exploiting single-usage for effective memory management
    Piquet, Thomas
    Rochecouste, Olivier
    Seznec, Andre
    ADVANCES IN COMPUTER SYSTEMS ARCHITECTURE, PROCEEDINGS, 2007, 4697 : 90 - +
  • [25] EXPLOITING TEMPORAL LOCALITY FOR ENERGY EFFICIENT MEMORY MANAGEMENT
    Seo, Euiseong
    Maeng, Seungryoul
    Lim, Donghyouk
    Lee, Joonwon
    JOURNAL OF CIRCUITS SYSTEMS AND COMPUTERS, 2008, 17 (05) : 929 - 941
  • [26] Memory Management Techniques for Exploiting RDMA in PGAS Languages
    Dalton, Barnaby
    Tanase, Gabriel
    Alvanos, Michail
    Almasi, Gheorghe
    Tiotto, Ettore
    LANGUAGES AND COMPILERS FOR PARALLEL COMPUTING (LCPC 2014), 2015, 8967 : 193 - 207
  • [27] Multiprocessor memory management: Integrating four-address virtual memory and aliased page tables
    Hunt, B
    Johnson, EE
    CONFERENCE PROCEEDINGS OF THE 1996 IEEE FIFTEENTH ANNUAL INTERNATIONAL PHOENIX CONFERENCE ON COMPUTERS AND COMMUNICATIONS, 1996, : 262 - 267
  • [28] Page Overlays: An Enhanced Virtual Memory Framework to Enable Fine-grained Memory Management
    Seshadri, Vivek
    Pekhimenko, Gennady
    Ruwase, Olatunji
    Mutlu, Onur
    Gibbons, Phillip B.
    Kozuch, Michael A.
    Mowry, Todd C.
    Chilimbi, Trishul
    2015 ACM/IEEE 42ND ANNUAL INTERNATIONAL SYMPOSIUM ON COMPUTER ARCHITECTURE (ISCA), 2015, : 79 - 91
  • [29] EXPLOITING OPERATING SYSTEM SUPPORT FOR DYNAMIC PAGE PLACEMENT ON A NUMA SHARED MEMORY MULTIPROCESSOR
    LAROWE, RP
    WILKES, JT
    ELLIS, CS
    SIGPLAN NOTICES, 1991, 26 (07): : 122 - 132
  • [30] A memory management technique for remote sensing data
    Akkarajitsakul, Khajonpong
    Achalakul, Tiranee
    TENCON 2006 - 2006 IEEE REGION 10 CONFERENCE, VOLS 1-4, 2006, : 922 - +