Stack-based buffer overflow in FreeBSD - CVE-2022-23093
Published: November 30, 2022 / Updated: May 2, 2025
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error within the pr_pack() function in ping(8) when processing IP option headers following the IP header in either the response or the quoted packet. A remote attacker can send a specially crafted ICMP response to the affected system, trigger a stack-based buffer overflow and potentially execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system but requires the victim to ping a malicious host.
Affected software
How to mitigate CVE-2022-23093
Links to Public Exploits and PoC-codes
- Exploit #11350 - CVE-2022-23093 (The FreeBSD ICMP buffer overflow, freebsd buffer overflow poc) (May 2, 2025)
- Exploit #9610 - DrayTek-Exploit (CVE-2022-23093 FreeBSD Stack-Based Overflow) (March 22, 2024)
- Exploit #8882 - CVE-2022-23093 (The FreeBSD ICMP buffer overflow, freebsd buffer overflow poc) (March 3, 2023)