RHEA-2019:0178
Libreswan is an implementation of IPsec and IKE for Linux. IPsec is the Internet Protocol Security and uses strong cryptography to provide both authentication and encryption services. These services allow you to build secure tunnels through untrusted networks such as virtual private network (VPN). This update fixes the following bugs: * While running in FIPS mode, Libreswan incorrectly checked the length of X.509 public keys as if it is in bytes. Consequently, 3072-bit keys were incorrectly detected as 384-bit and rejected. With this update, the check has been fixed to count with bits instead of bytes, and the keys are no longer incorrectly rejected in the described scenario. (BZ#1665369) * Prior to this update, Libreswan could use deleted objects while printing errors and it also did not properly fail when the AES key size was less than 128 bits. As a consequence, the pluto daemon crashed on assertion failed when the IPsec initiator sent "OAKLEY_KEY_LENGTH == 0 (0x00)" for the AES_CBC encryption algorithm. The error printing has been simplified and the AES key size check has been added to an earlier phase. As a result, Libreswan now correctly handles the described scenario. (BZ#1660536) * Previously, Libreswan continued to process an IKEv1 packet after it had already processed a delete payload. Consequently, Libreswan had deleted the IKE session state, then tried to read the next payload from that deleted state and crashed. The handling of such packets has been fixed, and Libreswan now correctly stops processing payloads once it processes a delete payload. (BZ#1660542) * Prior to this update, the recursive include function was not implemented correctly. As a consequence, the "systemctl start ipsec" command hanged and the addconn process used 100 % CPU resources when a recursive include was used in IPsec configuration files. The include processing has been fixed, and recursive includes now work properly. (BZ#1660544) * Previously, Libreswan incorrectly passed the zero-length IKEv1 XAUTH password as NULL to the crypt() function. Consequently, Libreswan crashed with the "strncpy(): /usr/libexec/ipsec/pluto killed by 11" message. This has been fixed, and Libreswan now processes IKEv1 empty passwords correctly. (BZ#1664244) In addition, this update adds the following enhancement: * With this update, Libreswan uses the recently-added IPsec profiles functionality in the NSS library to validate certificates. This uses the certificate's validation for IKE specification of RFC 4945. Prior to this, Extended Key Usage (EKU) attributes were interpreted as TLS instead of IPsec profiles by the NSS library. As a result, Libreswan now accepts validation of X.509 certificates containing non-empty EKU attributes that does not contain serverAuth and clientAuth attributes. (BZ#1655440) Users of libreswan are advised to upgrade to these updated packages, which fix these bugs and add this enhancement.
Evidence and freshness
Last supporting evidence check: 2026-11-28T09:53:41.347Z UTC
Upstream Advisory
Affected Packages
libreswan 3.25-4.1.el7_6