CVE-2023-35784
📋 TL;DR
This vulnerability in OpenBSD and LibreSSL allows memory corruption through double-free or use-after-free conditions in SSL_clear function. Attackers could potentially execute arbitrary code or cause denial of service. Only OpenBSD and LibreSSL installations are affected; OpenSSL is not vulnerable.
💻 Affected Systems
- OpenBSD
- LibreSSL
📦 What is this software?
Libressl by Openbsd
Libressl by Openbsd
Openbsd by Openbsd
Openbsd by Openbsd
⚠️ Risk & Real-World Impact
Worst Case
Remote code execution leading to complete system compromise, data theft, or persistent backdoor installation
Likely Case
Denial of service causing SSL/TLS service crashes and service disruption
If Mitigated
Limited impact with proper network segmentation and minimal exposure
🎯 Exploit Status
Memory corruption vulnerabilities in SSL/TLS libraries are frequently targeted due to their critical network exposure
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: OpenBSD 7.2 errata 026, OpenBSD 7.3 errata 004, LibreSSL 3.6.3, LibreSSL 3.7.3
Vendor Advisory: https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.6.3-relnotes.txt
Restart Required: Yes
Instructions:
1. Apply OpenBSD patches: syspatch for 7.2 or 7.3. 2. Update LibreSSL: pkg_add -u libressl. 3. Restart affected SSL/TLS services. 4. Reboot system if kernel components affected.
🔧 Temporary Workarounds
Disable vulnerable SSL/TLS services
allTemporarily disable SSL/TLS services using affected libraries until patching
systemctl stop [service-name]
rcctl stop [service-name]
🧯 If You Can't Patch
- Implement strict network segmentation to isolate vulnerable systems
- Deploy web application firewall with SSL/TLS inspection capabilities
🔍 How to Verify
Check if Vulnerable:
Check OpenBSD version: uname -a. Check LibreSSL version: openssl version. Compare against affected versions.
Check Version:
openssl version
Verify Fix Applied:
Verify patch applied: syspatch -l shows 026_ssl or 004_ssl. Confirm LibreSSL version >= 3.6.3 or >= 3.7.3.
📡 Detection & Monitoring
Log Indicators:
- SSL/TLS service crashes
- Memory corruption errors in system logs
- Unexpected process termination
Network Indicators:
- Abnormal SSL/TLS handshake failures
- Connection resets during SSL negotiation
SIEM Query:
source="system_logs" AND ("SSL_clear" OR "libressl" OR "openssl") AND ("crash" OR "segfault" OR "memory")
🔗 References
- https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.6.3-relnotes.txt
- https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.7.3-relnotes.txt
- https://ftp.openbsd.org/pub/OpenBSD/patches/7.2/common/026_ssl.patch.sig
- https://ftp.openbsd.org/pub/OpenBSD/patches/7.3/common/004_ssl.patch.sig
- https://github.com/libressl/openbsd/commit/e42d8f4b21a8a498e2eabbffe4c7b7d4ef7cec54
- https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.6.3-relnotes.txt
- https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.7.3-relnotes.txt
- https://ftp.openbsd.org/pub/OpenBSD/patches/7.2/common/026_ssl.patch.sig
- https://ftp.openbsd.org/pub/OpenBSD/patches/7.3/common/004_ssl.patch.sig
- https://github.com/libressl/openbsd/commit/e42d8f4b21a8a498e2eabbffe4c7b7d4ef7cec54