pf incorrectly matches different ICMPv6 states in the state table
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA.
Summary
In ICMPv6 Neighbor Discovery (ND), the ID is always 0. When pf is configured to allow ND and block incoming Echo Requests, a crafted Echo Request packet after a Neighbor Solicitation (NS) can trigger an Echo Reply. The packet has to come from the same host as the NS and have a zero as identifier to match the state created by the Neighbor Discovery and allow replies to be generated. ICMPv6 packets with identifier value of zero bypass firewall rules written on the assumption that the incoming packets are going to create a state in the state table.
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 | 14.1-RELEASE to before p3; 14.0-RELEASE to before p9; 13.3-RELEASE to before p5 | p3, p9, p5 | Patch available | CNA |
- FreeBSD VendorFreeBSD Affected 14.1-RELEASE to before p3; 14.0-RELEASE to before p9; 13.3-RELEASE to before p5 Fixed in p3, p9, p5 Patch available CNA
Remediation
- Fix · CNA FreeBSD (FreeBSD) Fixed in p3, p9, p5
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
FreeBSD p3, p5, p9
4 records Highest priority Priority MEDIUM 1 MEDIUM, 3 LOW
Other records, highest priority first
- TI-2024-07034 OpenSSH pre-authentication async signal safety issuePriority MEDIUM 41
- TI-2024-06267 ktrace(2) fails to detach when executing a setuid binaryPriority LOW 34
- TI-2024-06266 NFS client accepts file names containing path separatorsPriority LOW 31
Timeline
- 2026-10-02 Threatist record created from CVE-2024-6640
- 2026-10-03 Alias added: GHSA-57cg-pmv4-v925
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-2024-6640 · CVE Program
- CVE-2024-6640 · NVD
- FIRST EPSS
- GHSA-57cg-pmv4-v925 · 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