# CVE-2024-6640: pf incorrectly matches different ICMPv6 states in the state table

- Severity: Medium 6.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2024-08-11T02:33:42.590Z
- Modified: 2026-06-17T08:18:23.953Z
- Weaknesses: CWE-276
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: freebsd

## Description

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.

(As written by CVE List.)

## Affected

- FreeBSD FreeBSD: from 14.1-RELEASE before p3; from 14.0-RELEASE before p9; from 13.3-RELEASE before p5

## References

- <https://security.freebsd.org/advisories/FreeBSD-SA-24:05.pf.asc> (vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20240816-0008/>

## Sources

- CVE List: [CVE-2024-6640](https://www.cve.org/CVERecord?id=CVE-2024-6640), CVE Terms of Use, modified 2024-11-26
- NVD: [CVE-2024-6640](https://nvd.nist.gov/vuln/detail/CVE-2024-6640), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-6640 · Whole record: https://cve.day/CVE-2024-6640.json · Rebuilt by cve.day 2026-11-25T22:58:44.186Z
