Altera Trusted Firmware HPS VAB authentication stack overflow can enable EL3 code execution

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-58004?

CVE-2026-58004 is a vulnerability classified as Out-of-bounds Read, affecting Trusted Firmware (affected versions: ≤ socfpga_v2.14.0). This vulnerability is rated High, with a CVSS score of 8.3. Current sources do not report this vulnerability as exploited.

Overview

Original source data

Out-of-bounds read vulnerability in Altera Trusted Firmware on HPS allows Privilege Escalation and Overflow Buffers. This issue affects Trusted Firmware: through socfpga_v2.14.0.

Affected products and scope

  • Altera Trusted Firmware (TF-A) on Stratix 10 SoC HPS, Agilex 7 SoC HPS, Agilex 5 SoC HPS, Agilex 3 SoC HPS, and N5X SoC HPS is identified by Altera as affected at socfpga_v2.14.0; the listed fixed version is socfpga_v2.14.1.
  • The normalized affected facts express the affected range as 0 through socfpga_v2.14.0, with default_status set to unaffected. Altera's advisory does not enumerate every earlier release separately, so older builds should be verified per branch rather than assumed safe.
  • The status of parallel or later branches should not be inferred solely from the existence of the listed fixed version.

Technical details

Altera identifies the flaw in socfpga_vab_authentication(), which processes VAB firmware-image authentication on HPS. An image length held as size_t is stored in a 32-bit integer, truncating values above 4 GiB. The resulting payload length is then used as both the destination and source size in memcpy_s, preventing its bounds check from detecting the oversized copy. A crafted oversized firmware image can cause approximately 1 GiB to be copied into a 1,023-byte buffer on the HPS EL3 stack, potentially corrupting EL3 control flow and enabling code execution in the EL3 privilege domain. Exploitation requires privileged HPS EL1 or operating-system execution with access to the VAB authentication path. The normalized record describes an out-of-bounds read, but Altera's detailed technical account identifies the primary mechanism as a stack-based buffer overflow; exposure of branches beyond the branch explicitly documented by the advisory remains subject to separate verification.

Exploitability

The issue can be triggered locally on an HPS device with an oversized firmware image during VAB authentication. Exploitation requires privileged HPS EL1 or OS execution, does not require user interaction, and is characterized in the supplied scoring data as low complexity. The available evidence does not establish an independent remote attack path. The supplied record marks public exploit as false and known exploited as null, but provides no further evidence about real-world exploitation activity.

Technical impact

An attacker with privileged HPS EL1 or OS execution may provide a specially crafted firmware image to the VAB authentication path. The length-handling flaw can cause a stack overwrite in EL3, corrupting control data and potentially redirecting execution to attacker-controlled code within the EL3 domain. Consequences may include loss of Trusted Firmware integrity, device crash or denial of service, and privilege escalation from HPS EL1/OS to EL3. Altera limits the described impact: EL3 is not the highest privilege domain, and compromising HPS EL3 alone does not provide SDM access or complete platform control.

Business impact

A successful attack could alter Trusted Firmware control flow at EL3, affecting firmware integrity, device availability, and the security boundary between HPS EL1/OS and EL3. The practical outcome depends on the platform, available mitigations, and the attacker's control of privileged HPS EL1/OS execution. Altera states that the Secure Device Manager operates in a separate, higher-privilege domain, so this issue does not by itself grant SDM access or complete control of the platform. The principal organizational risk is compromise of the HPS security layer, disruption of device operation, or unauthorized privileged code execution within EL3.

Remediation

  1. Update arm-trusted-firmware to socfpga_v2.14.1, which Altera lists as the fixed version.
  2. If a deployment uses another branch, obtain the corresponding vendor-supported fix for that branch. Do not assume that every parallel or other release branch is safe without branch-specific confirmation.
  3. Inventory affected HPS platforms and verify that the firmware artifact actually running on each device was updated, rather than relying only on package or source metadata.
  4. Before updating, reduce exposure to privileged HPS EL1/OS execution and treat externally supplied oversized firmware images as untrusted input where practical. This is precautionary risk reduction, not a vendor-confirmed workaround.

Detection

  1. Inventory devices running Altera Trusted Firmware on Stratix 10 SoC HPS, Agilex 7 SoC HPS, Agilex 5 SoC HPS, Agilex 3 SoC HPS, and N5X SoC HPS, then compare deployed firmware build information with the vendor's fixed release.
  2. Where source, symbols, or build metadata are available, check for socfpga_vab_authentication() and determine whether the firmware belongs to an affected branch. The presence of the function is only a triage signal and does not by itself prove vulnerability.
  3. Review provisioning, update, and boot telemetry for attempts to authenticate unusually large firmware images or for VAB authentication failures. This is precautionary review, not a vendor-confirmed indicator of compromise.
  4. No specific log signature, IOC, or event pattern is provided. The absence of suspicious events does not establish that a system is safe.
Sources (12)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.