AI Tensor Engine for ROCm (AITER) through 0.1.14 contains an unauthenticated remote code execution vulnerability in the MessageQueue.recv() function within shm_broadcast.py that allows unauthenticated remote attackers to execute arbitrary code by sending a malicious pickle payload to a ZMQ SUB socket with no authentication, HMAC, or format validation. Attackers who can reach the writer XPUB endpoint on the cluster network or supply a forged Handle with an attacker-controlled remote_subscribe_addr can deliver a crafted pickle payload that executes arbitrary code simultaneously as the inference worker process on every remote reader worker.
The MessageQueue.recv() function in the shm_broadcast.py file deserializes incoming data through a ZMQ SUB socket without any authentication verification, HMAC signature, or format validation. An attacker who can reach the writer XPUB endpoint on the cluster network or provide a forged Handle object with a controlled remote_subscribe_addr can send a crafted pickle payload. Python's pickle library by design allows arbitrary code execution during the deserialization process, making this vector exceptionally dangerous. The malicious payload is then executed in the context of the inference worker process on each remote node reading the data.
An attacker can remotely execute arbitrary code (RCE) without any authentication, while simultaneously gaining control over all worker nodes in the cluster, which can lead to complete breach of confidentiality, integrity, and availability of processed data and systems.
Patches available from the manufacturer should be applied in accordance with the references (pull request available at https://github.com/ROCm/aiter/pull/3170). Until the fix is implemented, it is recommended to isolate the cluster network and block access to ZMQ XPUB/SUB endpoints from untrusted networks using firewalls or network rules.
AI Tensor Engine for ROCm (AITER) in versions from the beginning up to and including 0.1.14
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XAmd Aiter
APPAmd≤ 0.1.14
Related vulnerabilities
Błąd kontroli dostępu w SMM AMD umożliwiający zapis do SPI ROM i RCE
Błąd walidacji danych wejściowych w SMM Supervisor procesorów AMD Ryzen
Privilege escalation w AMD Radeon Software Crimson ReLive Edition
Niewystarczająca walidacja danych wejściowych w bootloaderze AMD ASP
AMD EPYC SMU — nieprawidłowa walidacja danych mailbox prowadzi do korupcji SMRAM