CVE-2026-4748 PUBLISHED

pf silently ignores certain rules

Assigner: freebsd
Reserved: 24.03.2026 Published: 01.04.2026 Updated: 01.04.2026

A regression in the way hashes were calculated caused rules containing the address range syntax (x.x.x.x - y.y.y.y) that only differ in the address range(s) involved to be silently dropped as duplicates. Only the first of such rules is actually loaded into pf. Ranges expressed using the address[/mask-bits] syntax were not affected.

Some keywords representing actions taken on a packet-matching rule, such as 'log', 'return tll', or 'dnpipe', may suffer from the same issue. It is unlikely that users have such configurations, as these rules would always be redundant.

Affected rules are silently ignored, which can lead to unexpected behaviour including over- and underblocking.

Product Status

Vendor FreeBSD
Product FreeBSD
Versions Default: unknown
  • affected from 15.0-RELEASE to p5 (excl.)
  • affected from 14.4-RELEASE to p1 (excl.)
  • affected from 14.3-RELEASE to p10 (excl.)

Credits

  • Michael Gmelin finder

References

Problem Types

  • CWE-480: Use of Incorrect Operator CWE
  • CWE-754: Improper Check for Unusual or Exceptional Conditions CWE
  • CWE-1023: Incomplete Comparison with Missing Factors CWE