CVE-2025-65497 Details
Description
NULL pointer dereference in coap_dtls_generate_cookie() in src/coap_openssl.c in OISM libcoap 4.3.5 allows remote attackers to cause a denial of service via a crafted DTLS handshake that triggers SSL_get_SSL_CTX() to return NULL.
A NULL pointer dereference vulnerability has been identified in OISM libcoap version 4.3.5. This issue arises in the coap_dtls_generate_cookie() function within the coap_openssl.c file. The vulnerability allows remote attackers to cause a denial-of-service condition by crafting a DTLS handshake that causes the SSL_get_SSL_CTX() function to return NULL. The problem stems from improper handling of OpenSSL's sk_GENERAL_NAME_value() return values during certificate validation, leading libcoap to access a NULL pointer incorrectly.
Users can update to the latest version of OISM libcoap, where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Nov 24, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/obgm/libcoap/issues/1745 | [email protected] | Issue Tracking |
| https://github.com/obgm/libcoap/pull/1750 | [email protected] | Issue TrackingPatch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| libcoap libcoap | 4.3.5 - |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 5, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Dec 1, 2025 | Initial Analysis | [email protected] |
| Nov 24, 2025 | CVE Modified | CISA-ADP |
| Nov 24, 2025 | New CVE Received | [email protected] |