Skip to content
Misconfiguration Write-up Advanced

PCIe DMA Attack against a secured Jetson Nano (CVE-2022-21819)

The Jetson Nano's PCIe controller was not mapped by the IOMMU because NVIDIA's device tree removed the necessary properties, allowing a malicious PCIe device to perform DMA reads and writes to all system RAM. An attacker with physical access could use an off-the-shelf PCIe FPGA card to dump and modify kernel memory, bypassing secure boot and JTAG protections.

thegoodpenguin.co.uk

Published on thegoodpenguin.co.uk

Congratulations! Your Jetson Nano (T210) product is finished and ready to ship worldwide.

The author, on thegoodpenguin.co.uk

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, NVIDIA's device tree for the Jetson Nano explicitly deleted the IOMMU mapping properties for the PCIe controller, leaving it unmapped and allowing unrestricted DMA.

Impact

An attacker with physical access and a PCIe device could read and write all system RAM, bypassing secure boot and JTAG protections, though secure carveout areas remained protected.

What the attacker needed

Physical access to the device; a PCIe slot (M.2) available; a malicious PCIe device (e.g., PCI Screamer)

The fix

The issue was fixed by removing the device tree entries that deleted the IOMMU properties for PCIe, and NVIDIA released L4T 32.7.1 with the fix.

How it was found

  1. Check IOMMU registers and DebugFS to confirm the PCIe controller (AFI) is not mapped by the IOMMU.
  2. Insert a PCI Screamer card into the M.2 slot and use PCI Leech to dump memory regions.
  3. Observe that memory dumps contain sensitive data such as kernel symbols and command history.
  4. Manually configure the IOMMU to protect the AFI and verify that PCI Leech reads return 0xff for unmapped regions.
  5. Inspect the device tree and kernel source to find that NVIDIA's device tree deletes the iommus, iommu-map, and iommu-map-mask properties.
  6. Rebuild the kernel without those deletions and confirm that the IOMMU now blocks PCIe DMA access.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A DMA attack lets a device plugged into a computer read or write memory directly, bypassing the CPU. The IOMMU is a hardware guard that limits which memory a device can access. Here, the guard was turned off for the PCIe slot, so a malicious card could access all memory.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.