CVE-2025-24934

SO_REUSEPORT_LB breaks connect(2) for UDP sockets

State
Published
Severity
5.4 Medium
Published
Oct 22, 2025
Updated
Apr 23, 2026
Reserved
Jan 29, 2025

Read the record on cve.org

Description

Software which sets SO_REUSEPORT_LB on a socket and then connects it to a host will not directly 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.

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, in violation of the contract that connected sockets are only supposed to receive packets originating from the connected host.

Scores

CVSSScoreVectorSource
3.15.4 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:NCISA-ADP

Weaknesses

  • CWE-488 Exposure of Data Element to Wrong Session

Affected Products

ProductVersions
FreeBSDFreeBSD
  • 15.0-BETA2 to before p1Affected
  • 14.3-RELEASE to before p5Affected
  • 13.5-RELEASE to before p6Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.