Missing DMA master security configuration allows Non-secure access to Secure memory in TF-M
Trusted Firmware-M (TF-M) contains an incorrect DMA security configuration in the Arm MPS2 AN519 and AN521 platforms implementation. During platform initialization, TF-M grants Non-secure software access to the DMA controller register interfaces but does not configure the corresponding DMA Master Security Controllers to issue Non-secure transactions. Consequently, a privileged Non-secure application can program the DMA controllers to perform Secure-attributed memory transactions, bypassing the intended TrustZone isolation boundary. Successful exploitation allows an attacker to read and modify arbitrary accessible Secure memory, potentially exposing cryptographic keys and compromising Secure services.