Efficient Instruction Cache Attacks via Self-Modifying Code Conflicts

Bulletin ID:     AMD-SB-7024
Potential Impact: N/A
Severity: N/A

Summary

AMD is aware of a paper titled ‘SMaCK: Efficient Instruction Cache Attacks via Self-Modifying Code Conflicts,’ published by researchers from Iowa State University and Google®.

The research paper attempts to extend data-cache-side channels to the instruction cache to expand the attack surface. It discusses the security implications of SMC (Self-Modifying Code) by examining how specific x86 instructions affecting instruction cache lines could lead to measurable timing discrepancies.

The paper describes several attack techniques that leverage these timing variations to enhance existing methods, such as Prime+Probe and Flush+Reload. The researchers claim these techniques could allow adversaries to attack cryptographic keys, create covert channels akin to Spectre, and capture keystrokes across x86 platforms.

AMD has evaluated the paper and determined that it did not identify any novel cache side-channel-based vulnerabilities. Instead, it describes new methods for exploiting existing vulnerabilities. AMD believes the existing recommendations would be applicable    to mitigate the attacks described in the researcher’s paper. 

Mitigation

Please refer to the previous guidance provided on Software Techniques For Managing Speculation On AMD Processors. AMD also recommends that software developers employ existing best practices, including constant-time algorithms and avoid secret-dependent data accesses or control flows where appropriate to help mitigate this potential vulnerability and other potential cache side-channels.

Acknowledgement

AMD thanks Berk Gulmezoglu, Seonghun Son of Iowa State University, and Daniel Moghimi of Google® for reporting these issues to us and engaging in coordinated vulnerability disclosure.

Revisions

Revision Date  

Description  

2024-08-13

Initial publication  

DISCLAIMER

The information contained herein is for informational purposes only and is subject to change without notice. While every precaution has been taken in the preparation of this document, it may contain technical inaccuracies, omissions and typographical errors, and AMD is under no obligation to update or otherwise correct this information. Advanced Micro Devices, Inc. makes no representations or warranties with respect to the accuracy or completeness of the contents of this document, and assumes no liability of any kind, including the implied warranties of noninfringement, merchantability or fitness for particular purposes, with respect to the operation or use of AMD hardware, software or other products described herein. Any computer system has risks of security vulnerabilities that cannot be completely prevented or mitigated. No license, including implied or arising by estoppel, to any intellectual property rights is granted by this document. Terms and limitations applicable to the purchase or use of AMD’s products are as set forth in a signed agreement between the parties or in AMD's Standard Terms and Conditions of Sale.

AMD, the AMD Arrow logo, and combinations thereof are trademarks of Advanced Micro Devices, Inc. CVE and the CVE logo are registered trademarks of The MITRE Corporation. Google is a registered trademark of Google LLC. Other product names used in this publication are for identification purposes only and may be trademarks of their respective companies.

Third party content may be licensed to you directly by the third party that owns the content and is not licensed to you by AMD. ALL LINKED THIRD-PARTY CONTENT IS PROVIDED ‘AS IS’ WITHOUT A WARRANTY OF ANY KIND. USE OF SUCH THIRD-PARTY CONTENT IS DONE AT YOUR SOLE DISCRETION AND UNDER NO CIRCUMSTANCES WILL AMD BE LIABLE TO YOU FOR ANY THIRD-PARTY CONTENT. YOU ASSUME ALL RISK AND ARE SOLELY RESPONSIBILITY FOR ANY DAMAGES THAT MAY ARISE FROM YOUR USE OF THIRD-PARTY CONTENT.

© 2024 Advanced Micro Devices, Inc. All rights reserved.