{
  "id": "CARPO-2026-005",
  "slug": "openssl-dtls-heap-leak-restartless-shared-library-patch",
  "title_en": "OpenSSL DTLS Heap Leak Restartless Shared Library Relink & Hot-Patch",
  "title_fr": "Reliaison Sans Coupure de Bibliothèque Partagée & Hot-Patch OpenSSL DTLS",
  "summary_en": "Restartless dynamic symbol relinking and shared library in-memory hot-patching for telecom Session Border Controllers (SBC) affected by CVE-2026-84782, resolving memory leak without terminating SIP/RTP voice calls.",
  "summary_fr": "Reliaison dynamique de symboles sans redémarrage et hot-patch en mémoire de la bibliothèque partagée pour les contrôleurs SBC télécoms affectés par la CVE-2026-84782, sans couper les appels voix SIP/RTP.",
  "target_cves": [
    "CVE-2026-84782"
  ],
  "target_product": "openssl:openssl",
  "remediation_type": "HOT_PATCH_RESTARTLESS",
  "automation_framework": "bash_cli",
  "zero_downtime": true,
  "estimated_duration_minutes": 12,
  "rollback_supported": true,
  "pre_flight_checks": [
    {
      "name": "Verify Carrier SIP Trunk Call Volume",
      "command": "kamailio-ctl stats | grep 'active_dialogs'",
      "expected_outcome": "Call volume stable; shared memory allocation under 75%."
    }
  ],
  "orchestration_steps": [
    {
      "step_number": 1,
      "phase": "SHARED_OBJECT_HOT_SWAP",
      "action_en": "Compile patched libssl.so.3.3.3 into isolated vendor libdir and update ld.so cache.",
      "action_fr": "Compiler libssl.so.3.3.3 dans un répertoire isolé et mettre à jour le cache ld.so.",
      "code_snippet": "cp libssl.so.3.3.3 /opt/telecom/lib/libssl.so.3 && ldconfig -n /opt/telecom/lib",
      "automation_task": "copy: src=libssl.so.3.3.3 dest=/opt/telecom/lib/libssl.so.3 mode='0755'"
    },
    {
      "step_number": 2,
      "phase": "HOT_PATCH_SYMBOL_RELINK",
      "action_en": "Apply GDB live symbol trampoline to dtls1_retransmit_message in active SBC worker processes.",
      "action_fr": "Appliquer un trampoline GDB sur dtls1_retransmit_message dans les processus workers SBC.",
      "code_snippet": "gdb -p $(pgrep -f sbc-worker) --batch -ex 'call (void)dlopen(\"/opt/telecom/lib/libssl_patch.so\", 2)'",
      "automation_task": "ansible.builtin.shell: apply_hotpatch_dtls.sh"
    }
  ],
  "post_flight_validation": [
    {
      "test_probe": "Inject malformed fragmented DTLS handshake with retransmission timeout",
      "validation_criteria": "Retransmission state cleanly purged without uninitialized heap bytes leaked",
      "success_condition": "Clean Alert 40 received with 0-byte memory disclosure"
    }
  ],
  "rollback_procedure": {
    "trigger_conditions": "Any SIGSEGV detected in dmesg or RTP jitter increases above 20ms.",
    "automated_rollback_code": "gdb -p $(pgrep -f sbc-worker) --batch -ex 'call (void)revert_dtls_trampoline()'",
    "manual_fallback_instructions": "Reload previous shared object from /opt/telecom/lib.backup/ and issue graceful worker reload."
  },
  "audit_compliance": {
    "cisa_bod_alignment": "Carrier Telecommunications High-Availability SLA",
    "nist_sp_800_40_revision": "NIST SP 800-40 Rev 2 Section 4.2",
    "change_ticket_template": "CHG-2026-SSL-8478"
  },
  "methodology_version": "CARPO-1.0"
}