# CVE-2024-40765: Integer-based buffer overflow in SonicOS

- Vendor: SonicWall, SonicOS
- Severity: CRITICAL (CVSS 3.1 9.8)
- Exploited (CISA KEV): not listed
- EPSS: 0.8% on 2026-12-02
- Public exploit: not checked
- Patch available: no or unknown
- Vendor advisory: SNWLID-2024-0013, https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0013
- Published: 2025-01-08; updated: 2025-01-09
- Page: https://patchtonight.com/cve/CVE-2024-40765/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| SonicOS (Gen6 NSv, Gen7 Hardware, Gen7 NSv) 6.5 | See the advisory |
| SonicOS (Gen6 NSv, Gen7 Hardware, Gen7 NSv) 7.0 | See the advisory |
| SonicOS (Gen6 NSv, Gen7 Hardware, Gen7 NSv) 7.1 | See the advisory |

## The vendor's description

An Integer-based buffer overflow vulnerability in the SonicOS via IPSec allows a remote attacker in specific conditions to cause Denial of Service (DoS) and potentially execute arbitrary code by sending a specially crafted IKEv2 payload.

## Sources

- [SonicWall advisory](https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0013)

---

Data from PatchTonight (https://patchtonight.com), compiled from vendor advisories, CISA KEV and FIRST EPSS. Please credit PatchTonight and link to the CVE page when you use it.
