Ferritaas Incident Intelligence
Defect Intelligence Report Bug 0901205 Severity: High (P2)

FortiGate 90G SP5 Hardware Cryptographic Acceleration Failure on AES-GCM-256

Security Processing Unit Gen 5 (SP5) hardware cryptographic coprocessors on FortiGate 90G and 91G appliances fail to latch updated 4-byte salt values following IPsec Phase 2 rekeys, computing invalid AES-GCM-256 ICV authentication tags and silently blackholing tunnel traffic.

Technical Root Cause Analysis

The FortiGate 90G architecture introduces Fortinet's 7nm SP5 processor, combining RISC-V compute cores with hardware encryption offload engines capable of accelerating IPsec at up to 25 Gbps line rate.

In FortiOS 7.4.2 NPI builds, an initialization timing flaw exists between the kernel IPsec driver and the SP5 cryptographic ring buffer. When a Phase 2 Security Association (SA) undergoes scheduled rekeying (typically every 28,800 seconds or 512 MB of transferred data), the SP5 hardware register fails to update the new 4-byte salt key negotiated during the quick mode exchange.

While outbound ESP payload encryption appears successful, the SP5 engine calculates an incorrect 16-byte Galois/Counter Mode Integrity Check Value (ICV) tag. The remote peer decrypts the packet, detects an ICV mismatch, and discards all incoming payload frames with ESP packet auth verification failed.

[sp5_crypto 0] SA 0x05f8100a rekey complete: dir=outbound, algo=AES-GCM-256 [sp5_crypto 0] ERROR: gcm_tag_calc mismatch on SA 0x05f8100a, salt_reg=0x00000000 expected=0xa4b19c8d [kernel] esp_output: crypto coprocessor tag generation fault (npu_flag=0x03) Remote peer syslog: ike 0:Tunnel_HQ:14920: IPsec SA(SPI=0x05f8100a) recv ESP bad ICV tag! drop packet ike 0:Tunnel_HQ:14920: ESP packet auth verification failed: tag_recv=6d2f9a... tag_calc=e14a2b...

Affected Firmware & Blast Radius Matrix

FortiOS Branch Vulnerable Builds Confirmed Clean Build Status & Workaround
FortiOS 7.4 7.4.2 NPI (Build 2571) 7.4.4 GA+ Switch Phase 2 to AES-CBC-256 or upgrade
FortiOS 7.2 Not Supported N/A FG-90G hardware requires FortiOS 7.4+
FortiOS 7.0 Not Supported N/A Legacy branch lacks SP5 hardware driver

Platform Impact: Confined specifically to FortiGate 90G and 91G hardware models equipped with the SP5 ASIC running AES-GCM-128 or AES-GCM-256 on route-based or policy-based IPsec VPN tunnels.

Step 01: Free Verification CLI (Safe Read-Only)

Execute these diagnostic commands to check SP5 hardware cryptographic stats and verify if IPsec tunnels are suffering from post-rekey auth tag drops:

Diagnostic Commands

# 1. Inspect SP5 hardware cryptographic engine counters and drop stats
diagnose npu sp5 ipsec-stats

# 2. Inspect active tunnel SA status and acceleration flags
diagnose vpn tunnel list | grep -E "name|npu_flag|spi"

# 3. Query active IKE Phase 1 security associations
diagnose vpn ike gateway list

# 4. Check real-time IPsec tunnel state
diagnose vpn ipsec status

Remediation & Workaround Steps (Teaser Preview)

Follow the complete step-by-step remediation guide in the Ferrite interactive platform:

Step 02: Identify Tunnels Running SP5 Accelerated AES-GCM Ciphers

Audit Phase 2 proposals across IPsec tunnels for GCM mode ciphers exhibiting npu_flag=03.

🔒 Interactive CLI Available in Ferrite Runbook #16

Step 03: Non-Disruptive Cipher Fallback to AES-CBC-256 + SHA-256

Switch Phase 2 encryption to CBC mode to bypass the hardware salt latching defect without dropping link state.

🔒 Interactive CLI Available in Ferrite Runbook #16

Step 04: Controlled Software Rekey and SA Validation

Flush active Phase 2 SAs to immediately apply the new cipher proposal and confirm zero-drop ESP transmission.

🔒 Interactive CLI Available in Ferrite Runbook #16
⚡ Ferrite Platform Superpowers

Execute the Complete Runbook with Live Browser Automation

Connect your FortiGate via browser console (Web Serial) or local SSH bridge, verify each command in real-time, generate ready-to-run Tera Term scripts, and export sanitized TAC dossiers.

Live Browser Automation Direct terminal connection with live step checkoff.
📟
1-Click Tera Term (.ttl) Generate scripts for air-gapped jumpboxes.
🛡️
Zero-Trust Scrubber Scrub serials and credentials in local browser RAM.
📄
TAC P1 Escalation Dossier Standardized evidence export with SHA-256 seal.

Frequently Asked Questions

Does Bug 0901205 affect NP7 or NP6 models?

No. This defect is strictly isolated to the SP5 ASIC crypto coprocessor microcode introduced in FortiGate 90G and 91G hardware.

Does switching to AES-CBC impact VPN performance?

On the FortiGate 90G, the SP5 chip accelerates AES-CBC-256 and SHA-256 in hardware at multi-gigabit speeds, maintaining wire-rate performance while avoiding the GCM salt latching bug.

What firmware release contains the permanent fix?

The permanent microcode patch is integrated into FortiOS 7.4.4 GA and all subsequent maintenance releases.