Data memory-dependent prefetcher explained

A data memory-dependent prefetcher (DMP) is a cache prefetcher that looks at cache memory content for possible pointer values, and prefetches the data at those locations into cache if it sees memory access patterns that suggest following those pointers would be useful.[1] [2]

As of 2022, data prefetching was already a common feature in CPUs,[3] but most prefetchers do not inspect the data within the cache for pointers, instead working by monitoring memory access patterns. Data memory-dependent prefetchers take this one step further.

The DMP in Apple's M1 computer architecture was demonstrated to be capable of being used as a memory side-channel in an attack published in early 2024. At that time its authors did not know of any practical way to exploit it.[4] The DMP was subsequently discovered to be even more opportunistic than previously thought, and has now been demonstrated to be able to be used to effectively attack a variety of cryptographic algorithms in work called GoFetch by its authors.[5] [6]

Intel Core processors also have DMP functionality (Intel use the term "Data Dependent Prefetcher") but Intel states that they have features to prevent their DMPs being used for side-channel attacks.[7] The authors of GoFetch state that they were unable to make their exploit work on Intel processors.

Notes and References

  1. Web site: 2022-05-02 . Augury: Using Data Memory-Dependent Prefetchers to Leak Data at Rest . 2024-03-30 . www.prefetchers.info.
  2. Vicarte . Jose Rodrigo Sanchez . Flanders . Michael . Paccagnella . Riccardo . Garrett-Grossman . Grant . Morrison . Adam . Fletcher . Christopher W. . Kohlbrenner . David . May 2022 . Augury: Using Data Memory-Dependent Prefetchers to Leak Data at Rest . 2022 IEEE Symposium on Security and Privacy (SP) . https://ieeexplore.ieee.org/xpl/conhome/9833550/proceeding . San Francisco, CA, USA . IEEE . 1491–1505 . 10.1109/SP46214.2022.9833570 . 978-1-6654-1316-9.
  3. Bakhshalipour . Mohammad . A Survey on Recent Hardware Data Prefetching Approaches with An Emphasis on Servers . 2020-09-01 . 2009.00715 . Shakerinava . Mehran . Golshan . Fatemeh . Ansari . Ali . Lotfi-Karman . Pejman . Sarbazi-Azad . Hamid. cs.AR .
  4. Web site: Goodin . Dan . 2024-03-21 . Unpatchable vulnerability in Apple chip leaks secret encryption keys . 2024-03-21 . Ars Technica . en-us.
  5. Web site: 2024-03-21 . Apple Silicon chip flaw can leak encryption keys, say researchers . 2024-03-22 . AppleInsider . en.
  6. Web site: GoFetch: Breaking Constant-Time Cryptographic Implementations Using Data Memory-Dependent Prefetchers . 2024-03-22 . gofetch.fail . en.
  7. Web site: Data Dependent Prefetcher . 2024-03-21 . Intel . en.