Security Vulnerability Report
中文
CVE-2025-36935 CVSS 7.8 HIGH

CVE-2025-36935

Published: 2025-12-11 20:15:58
Last Modified: 2026-01-05 21:16:10

Description

In trusty_ffa_mem_reclaim of shared-mem-smcall.c, there is a possible memory corruption due to uninitialized data. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.

CVSS Details

CVSS Score
7.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:o:google:android:-:*:*:*:*:*:*:* - VULNERABLE
Android Trusty固件(受影响的版本未明确列出,需参考Google Pixel安全公告2025-12-01)
使用Trusty TEE的Android设备特定版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-36935 PoC - Android Trusty trusty_ffa_mem_reclaim Uninitialized Data # This PoC demonstrates the vulnerability concept (for research purposes only) import struct import ctypes # Simulated Trusty FF-A message structure class TrustyFFAMessage(ctypes.Structure): _fields_ = [ ("cmd", ctypes.c_uint32), ("flags", ctypes.c_uint32), ("buffer_ptr", ctypes.c_uint64), ("buffer_size", ctypes.c_uint32), ] def exploit_trusty_ffa_mem_reclaim(): """ Simulated exploitation of CVE-2025-36935 The vulnerability exists in trusty_ffa_mem_reclaim() function where memory buffers are not properly initialized before use. """ print("[*] CVE-2025-36935 - Trusty FF-A Uninitialized Memory Exploitation") # Step 1: Create FF-A message for memory reclaim operation msg = TrustyFFAMessage() msg.cmd = 0x84000001 # TRUSTY_FFA_MEM_RECLAIM msg.flags = 0x0 msg.buffer_ptr = 0x0 # Uninitialized pointer msg.buffer_size = 0x1000 # Step 2: Trigger the vulnerable code path # In the vulnerable version, the buffer is not zeroed print("[*] Triggering trusty_ffa_mem_reclaim()...") print("[*] Buffer initialized: NO (vulnerable state)") # Step 3: Memory corruption occurs due to uninitialized data # Attackers can leverage residual data in memory for privilege escalation print("[!] Potential memory corruption detected") print("[!] Uninitialized memory may contain sensitive data") # Step 4: Privilege escalation print("[+] Exploitation successful - Local privilege escalation achieved") print("[+] Attacker can now execute code with elevated privileges") return True if __name__ == "__main__": print("=" * 60) print("CVE-2025-36935 Proof of Concept") print("Android Trusty trusty_ffa_mem_reclaim Uninitialized Data") print("CVSS 3.1: 7.8 (High)") print("=" * 60) try: exploit_trusty_ffa_mem_reclaim() except Exception as e: print(f"[-] Error: {e}") print("\n[*] Note: This is a simulated PoC for security research.") print("[*] Actual exploitation requires physical or ADB access to device.")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-36935", "sourceIdentifier": "[email protected]", "published": "2025-12-11T20:15:58.023", "lastModified": "2026-01-05T21:16:10.110", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "In trusty_ffa_mem_reclaim of shared-mem-smcall.c, there is a possible memory corruption due to uninitialized data. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.9}, {"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-787"}]}, {"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-457"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:google:android:-:*:*:*:*:*:*:*", "matchCriteriaId": "F8B9FEC8-73B6-43B8-B24E-1F7C20D91D26"}]}]}], "references": [{"url": "https://source.android.com/security/bulletin/pixel/2025-12-01", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}