Page MenuHomeFreeBSD

pf: fix another endpoint-independent crash
ClosedPublic

Authored by kp on Nov 21 2025, 1:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 3, 11:30 PM
Unknown Object (File)
Wed, Sep 2, 8:28 PM
Unknown Object (File)
Wed, Sep 2, 11:51 AM
Unknown Object (File)
Tue, Sep 1, 9:16 AM
Unknown Object (File)
Mon, Aug 24, 12:53 PM
Unknown Object (File)
Fri, Aug 21, 4:24 AM
Unknown Object (File)
Tue, Aug 18, 5:45 AM
Unknown Object (File)
Aug 13 2026, 8:54 PM

Details

Summary

In c12013f5bb38 we fixed udp_mapping cleanup issues in pf_get_sport(), but
missed the static-port case (i.e. low == 0 && high == 0). We could still exit
pf_get_sport() without either inserting the udp_mapping or freeing it.

Address this and add a test case to provoke the problem.

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 68781
Build 65664: arc lint + arc unit