BSD Ports

strongSwan -- Double-free when destroying certain cloned identities that can lead to remote code execution

· CVE-2026-47895 · VuXML entry

R. Elliott Childre reports: The clone() method of the identification_t class doesn't correctly handle identities that have an empty but non-NULL encoding. Both objects will point to the same location, resulting in a double-free once the second object is destroyed. This can lead to a crash and could potentially be exploitable for remote code execution. Affected are all strongSwan versions since 4.3.3.

Affected versions

By system

0 still vulnerable, 1 fixed. Where VuXML applies (FreeBSD, DragonFly, FreeBSD's derivatives) a port is vulnerable while its version is in a range; pkgsrc says itself whether it lists a CVE of this advisory; OpenBSD and MidnightBSD keep no list this site reads, so their row is only an estimate: FreeBSD's ranges applied to upstream's version.

SystemPortVersionStateFixed
FreeBSDsecurity/strongswan6.1.0 fixed (97 days after)
OpenBSDnet/strongswan5.9.1p0 in range, by version
NetBSDwip/strongswan5.7.1 not listed