The Taking of FreeBSD One Two Three

In An AI audit of FreeBSD we mentioned in passing that we had "reported 3 RCEs in a rarely used module." The module is CTL, FreeBSD's CAM Target Layer, the kernel subsystem that turns a FreeBSD box into a SCSI storage target for iSCSI and friends. Its High Availability (HA) mode lets two controllers mirror state to each other over TCP so one can take over if the other dies.HA is live on TrueNAS Enterprise HA clusters, and on any FreeBSD system with kern.cam.ctl.ha_peer set. Once it's on, the kernel listens on a TCP port (999 by default) for its peer, with no authentication. Whatever connects is trusted as the second controller.All three bugs live behind that port, and each one, on its own
…