CVE-2022-23093

Vulnérabilité moyenne dans FreeBSD (FreeBSD)

CVSS 6.5 · Moyenne
EPSS 2.4%
FreeBSD•FreeBSD•Versions : 12.3-RELEASE, <p10, 13.1-RELEASE, <p5, <p2, 12.4-RC2

Description

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.

Gravité et risque d'exploitation

CVE-2022-23093 obtient un score CVSS de 6.5/10, soit une gravité moyenne. Selon le modèle EPSS, la probabilité qu'elle soit exploitée dans les 30 prochains jours est de 2.40 %, ce qui la place devant 83.7 % des CVE référencées.

Que faire ?

  • Vérifiez si FreeBSD (versions 12.3-RELEASE, <p10, 13.1-RELEASE, <p5, <p2, 12.4-RC2) est présent sur votre parc.
  • Appliquez le correctif ou la version corrigée indiqués dans les références de l'éditeur.
  • À défaut de correctif, limitez l'exposition (filtrage réseau, désactivation du composant).
  • Automatisez la détection : les agents CVE Heimdall (gratuits, open source) corrèlent l'inventaire de vos serveurs avec la base CVE.

Références