Stack overflow in ping(8)
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA. Impact type from CWE-120 and the CVSS impact.
Summary
ping reads raw IP packets from the network to process responses in the pr_pack() function. As part of processing a response ping has to reconstruct the IP header, the ICMP header and if present a "quoted packet," which represents the packet that generated an ICMP error. The quoted packet again has an IP header and an ICMP header. The pr_pack() copies received IP and ICMP headers into stack buffers for further processing. In so doing, it fails to take into account the possible presence of IP option headers following the IP header in either the response or the quoted packet. When IP options are present, pr_pack() overflows the destination buffer by up to 40 bytes. The memory safety bugs described above can be triggered by a remote host, causing the ping program to crash. The ping process runs in a capability mode sandbox on all affected versions of FreeBSD and is thus very constrained in how it can interact with the rest of the system at the point where the bug can occur.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| FreeBSD | FreeBSD | 13.1-RELEASE to before p5; 12.4-RC2 to before p2; 12.3-RELEASE to before p10 | p5, p2, p10 | Patch available | CNA |
- FreeBSD VendorFreeBSD Affected 13.1-RELEASE to before p5; 12.4-RC2 to before p2; 12.3-RELEASE to before p10 Fixed in p5, p2, p10 Patch available CNA
CPE configurations NVD · 18
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:freebsd:freebsd:12.3:beta1:*:*:*:*:*:* | 12.3 beta1 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:12.3:p1:*:*:*:*:*:* | 12.3 p1 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:12.3:p2:*:*:*:*:*:* | 12.3 p2 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:12.3:p3:*:*:*:*:*:* | 12.3 p3 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:12.3:p4:*:*:*:*:*:* | 12.3 p4 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:12.3:p5:*:*:*:*:*:* | 12.3 p5 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:12.3:p6:*:*:*:*:*:* | 12.3 p6 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:12.3:p7:*:*:*:*:*:* | 12.3 p7 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:12.3:p8:*:*:*:*:*:* | 12.3 p8 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:12.3:p9:*:*:*:*:*:* | 12.3 p9 | Vulnerable | FreeBSD |
- cpe:2.3:o:freebsd:freebsd:12.3:beta1:*:*:*:*:*:* Versions 12.3 beta1 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:12.3:p1:*:*:*:*:*:* Versions 12.3 p1 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:12.3:p2:*:*:*:*:*:* Versions 12.3 p2 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:12.3:p3:*:*:*:*:*:* Versions 12.3 p3 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:12.3:p4:*:*:*:*:*:* Versions 12.3 p4 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:12.3:p5:*:*:*:*:*:* Versions 12.3 p5 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:12.3:p6:*:*:*:*:*:* Versions 12.3 p6 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:12.3:p7:*:*:*:*:*:* Versions 12.3 p7 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:12.3:p8:*:*:*:*:*:* Versions 12.3 p8 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:12.3:p9:*:*:*:*:*:* Versions 12.3 p9 Vulnerable ·FreeBSD
Show 8 more CPE
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:freebsd:freebsd:12.4:rc2-p1:*:*:*:*:*:* | 12.4 rc2-p1 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:13.1:b1-p1:*:*:*:*:*:* | 13.1 b1-p1 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:13.1:b2-p2:*:*:*:*:*:* | 13.1 b2-p2 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:13.1:p1:*:*:*:*:*:* | 13.1 p1 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:13.1:p2:*:*:*:*:*:* | 13.1 p2 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:13.1:p3:*:*:*:*:*:* | 13.1 p3 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:13.1:p4:*:*:*:*:*:* | 13.1 p4 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:13.1:rc1-p1:*:*:*:*:*:* | 13.1 rc1-p1 | Vulnerable | FreeBSD |
- cpe:2.3:o:freebsd:freebsd:12.4:rc2-p1:*:*:*:*:*:* Versions 12.4 rc2-p1 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:13.1:b1-p1:*:*:*:*:*:* Versions 13.1 b1-p1 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:13.1:b2-p2:*:*:*:*:*:* Versions 13.1 b2-p2 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:13.1:p1:*:*:*:*:*:* Versions 13.1 p1 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:13.1:p2:*:*:*:*:*:* Versions 13.1 p2 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:13.1:p3:*:*:*:*:*:* Versions 13.1 p3 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:13.1:p4:*:*:*:*:*:* Versions 13.1 p4 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:13.1:rc1-p1:*:*:*:*:*:* Versions 13.1 rc1-p1 Vulnerable ·FreeBSD
Remediation
- Fix · CNA FreeBSD (FreeBSD) Fixed in p5, p2, p10
Timeline
- 2026-10-02 Threatist record created from CVE-2022-23093
- 2026-10-03 Alias added: GHSA-7p28-5p54-rq49
References
More Freebsd vulnerabilities
- TI-2011-04182 Buffer overflow in libtelnet/encrypt.c in telnetd in FreeBSD 7.3 through 9.0, MIT… CVSS 2.0HIGH 10.0
- TI-2007-03684 Integer overflow in print-bgp.c in the BGP dissector in tcpdump 3.9.6 and earlier allows… CVSS 3.1CRITICAL 9.8
- TI-2002-00376 Integer overflow in xdr_array function in RPC servers for operating systems that use… CVSS 3.1CRITICAL 9.8
- TI-2024-05929 Openssh: regresshion - race condition in ssh allows rce/dos CVSS 3.1HIGH 8.1
- TI-2003-00437 Off-by-one error in the fb_realpath() function, as derived from the realpath function in… CVSS 3.1CRITICAL 9.8
- TI-2003-00642 The prescan function in Sendmail 8.12.9 allows remote attackers to execute arbitrary code… CVSS 2.0HIGH 10.0
Sources
- CVE-2022-23093 · CVE Program
- CVE-2022-23093 · NVD
- FIRST EPSS
- GHSA-7p28-5p54-rq49 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences