DaMAgeCard SD Express card vulnerability leverages the privileged access that PCIe provides — bypasses traditional software-based security mechanisms

Lexar Professional SDXC 8.0 Card
(Image credit: Lexar)

A critical vulnerability in SD Express memory cards, called DaMAgeCard, has been uncovered, enabling attackers to exploit the PCIe interface for direct access to system memory. Discovered by Positive Technologies, this flaw can potentially give attackers unauthorized access to system memory, bypassing typical software defenses.

The DaMAgeCard exploit leverages the PCIe interface within SD Express memory cards to perform Direct Memory Access (DMA) attacks. By exploiting the privileged access that PCIe provides, attackers can bypass traditional software-based security mechanisms such as antivirus programs or OS-level protections. Once connected to a vulnerable system, the compromised SD Express card can directly interact with the system's memory.

  • Enable IOMMU: Ensure that Input-Output Memory Management Units (IOMMUs) are activated on all PCIe-capable devices. This adds an additional layer of isolation by managing and restricting direct memory access.
  • Restrict DMA privileges: Configure systems to grant direct memory access only to verified and trusted devices, preventing unauthorized hardware from exploiting DMA capabilities.
  • Keep firmware updated: Apply the latest firmware updates to devices. Updates may include features like secure transitions between SDIO and PCIe modes or mechanisms that validate SD Express cards through cryptographic signatures before allowing DMA operations.
  • Disable hotplugging: If not required for operations, disable the ability to connect new devices while the system is running. This mitigates risks from untrusted devices being plugged in to execute an attack.
  • Avoid unknown devices: It is best to stay away from using unfamiliar SD cards or external memory readers with sensitive systems, as these may be tampered with or designed to exploit vulnerabilities.
  • Regular device inspections: In environments where devices are shared or left unattended, regularly inspect hardware for signs of tampering or unauthorized modifications.

The discovery of DaMAgeCard highlights a broader concern in hardware development: the balance between performance optimization and robust security measures. As PCIe technology becomes more common in consumer electronics, similar vulnerabilities could emerge, exposing users to potential attacks.

Kunal Khullar
News Contributor

Kunal Khullar is a contributing writer at Tom’s Hardware.  He is a long time technology journalist and reviewer specializing in PC components and peripherals, and welcomes any and every question around building a PC.