FreeSenseFreeSenseSecurity
freesense.org
← Fixed vulnerabilities
Fixed

SO_REUSEPORT_LB breaks connect(2) for UDP sockets

FreeBSD-SA-25:09.netinet · CVE-2025-24934

Our decision for FreeSense

FreeBSD corrected this on 2025-10-22, before the FreeBSD source pin of every FreeSense version.

  • Advisory: corrected 2025-10-22
  • FreeSense 1.0 pin: e004ff15f87e (2026-08-03)
  • FreeSense 1.1 pin: a52c50b4b7c2 (2026-10-04)
  • FreeSense 1.2 pin: a52c50b4b7c2 (2026-10-04)
Decided by rules, not yet reviewed. The status comes from the advisory's correction date and the build configuration. A maintainer has not looked at whether FreeSense is exposed in practice. How we triage

By FreeSense version

VersionStatusFreeBSD pin
FreeSense 1.01.0.7 · frozen, no further fixesFixedFreeBSD pin of 2026-08-032026-08-03e004ff15
FreeSense 1.11.1.9FixedFreeBSD pin of 2026-10-042026-10-04a52c50b4
FreeSense 1.21.2.0-DEVELOPMENTFixedFreeBSD pin of 2026-10-042026-10-04a52c50b4

Workaround

No workaround is available. Software which does not use SO_REUSEPORT_LB is not affected.

What FreeBSD says

Connected sockets are not intended to belong to load-balancing groups. However, the kernel failed to check the connection state of sockets when adding them to load-balancing groups. Furthermore, when looking up the destination socket for an incoming packet, the kernel will match a socket belonging to a load-balancing group even if it is connected. Connected sockets are only supposed to receive packets originating from the connected host. The above behavior violates this contract.

Impact

Software which sets SO_REUSEPORT_LB on a socket and then connects it to a host will not observe any problems. However, due to its membership in a load-balancing group, that socket will receive packets originating from any host. This breaks the contract of the connect(2) and implied connect via sendto(2), and may leave the application vulnerable to spoofing attacks.

Excerpt from the FreeBSD advisory. Read the original for the full text and the fix.

Copied to clipboard