Stack-based buffer overflow in FreeBSD - CVE-2022-23093

 

Stack-based buffer overflow in FreeBSD - CVE-2022-23093

Published: November 30, 2022 / Updated: May 2, 2025


Vulnerability identifier: #VU69732
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/U:Amber
CVE-ID: CVE-2022-23093
CWE-ID: CWE-121
Exploitation vector: Remote access
Exploit availability: Public exploit is available
Vendor: FreeBSD Foundation
Affected software:
FreeBSD

Detailed vulnerability description

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.


How to mitigate CVE-2022-23093

Install updates from vendor's website.

Sources