Clarification on FreeBSD-SA-22:15.ping / CVE-2022-23093 ping(8) stack overflow

Ed Maste <[email protected]>
Newsgroups gmane.os.freebsd.security.general
Message-ID <CAPyFy2AMKEorH6v2VLG_g0UOyZdcpXb0YjZbc+-0=-d=MiHckw@mail.gmail.com>
We've seen many blog posts and news articles about this issue and
unfortunately most of them get the details wrong. So, to clarify:

- This issue affects only /sbin/ping, not kernel ICMP handling.
- The issue relies on receipt of malicious packet(s) while the ping
  utility is running (i.e., while pinging a host).
- ping(8) is setuid root, but drops privilege (to that of the user
  executing it) after opening sockets but before sending or receiving
  data.
- ping(8) runs in a Capsicum capability sandbox, such that even in the
  event of a compromise the attacker is quite limited (has no access to
  global namespaces, such as the filesystem).
- It is believed that exploitation is not possible due to the stack
  layout on affected platforms.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.