Tag: dma

Preboot DMA vulnerability – CVE-2023-5410

DMA is direct memory access, used by lot of peripherals to transfer to and fro data without CPU involvement. Recent servers and consumer products increased the security of DMA. Recent OS enables secure DMA transfer. A potential security vulnerability has been reported in the system BIOS , which might allow memory tampering when the BIOS is in POST. Recent BIOS provide an option to disable Preboot DMA in their setup to allow older peripherals which has older firmware to service and not secure DMA capable. CVE ID is CVE-2023-5410.

Applying the firmware patches and enabling the preboot DMA security is much relevant in server and consumer products for the below reasons.

  1. This can be part of a NIST compliance in future products. Certain customer segments may not buy a product if it is not NIST compliant to the latest NIST version. e.g:- Government and finance organizations.
  2. Operating systems like Windows and Linux may add dependency on preboot DMA security as a prerequisite for enabling DMA security. Right now no valid way to relate between the Preboot and OS DMA security. Future it can be a requirement in operating systems installation and use.

Source: NVD – CVE-2023-5410

Source: HP PC BIOS Pre-boot DMA Protection Security Update

Kernel and pre-boot DMA Protection

Kernel Direct Memory Access (DMA) Protection is a Windows security feature that protects against external peripherals from gaining unauthorized access to memory. PCIe hot plug devices attach classes of external peripherals, including graphics cards, to their devices with the plug-and-play ease of USB. These devices are DMA-capable, and can access system memory and perform read and write operations without the need for the system processor’s involvement. This makes them susceptible to drive-by DMA attacks.

pre-boot DMA Protection enables equivalent DMA protection at the system BIOS level.

When DMA Protection is enabled
1. No devices can do DMA to the DMA protected device between BIOS POST complete and OS driver load.
2. During BIOS POST also the EFI device driver will make sure the device will work on a DMA remapped region.
3. Some OS will make sure the driver is loaded only when the system is unlocked.

Drive-by DMA attacks are attacks that occur while the owner of the system isn’t present and usually take just a few minutes, with simple-to-moderate attacking tools (affordable, off-the-shelf hardware and software), that don’t require the disassembly of the device. In supply chain the attacker can install a temporary off-the-shelf hardware and exploit the system BIOS.

Source: Kernel DMA Protection – Windows Security