Affected versions
Ubuntu18.04:LTS/libreswan
- Affected versions
- * || =3.20-7build1 || =3.21-2 || =3.22-1 || =3.22-2 || =3.22-3 || =3.22-4 || =3.23-1 || =3.23-4
- Fixed version
- Not reported
Ubuntu20.04:LTS/libreswan
- Affected versions
- * || =3.29-2 || =3.29-2build1
- Fixed version
- Not reported
Ubuntu22.04:LTS/libreswan
- Affected versions
- * || =3.32-3ubuntu3
- Fixed version
- Not reported
Ubuntu24.04:LTS/libreswan
- Affected versions
- * || =4.11-1ubuntu1 || =4.12-1ubuntu1 || =4.14-1ubuntu1 || =4.14-1ubuntu2
- Fixed version
- Not reported
Ubuntu25.10/libreswan
- Affected versions
- * || =4.14-1ubuntu2 || =5.2-2.2ubuntu1
- Fixed version
- Not reported
Ubuntu26.04:LTS/libreswan
- Affected versions
- * || =5.2-2.2ubuntu1 || =5.2-2.2ubuntu2
- Fixed version
- Not reported
Ubuntu26.10/libreswan
- Affected versions
- * || =5.2-2.2ubuntu2
- Fixed version
- Not reported
Description
An issue was discovered in Libreswan before 4.12. When an IKEv2 Child SA REKEY packet contains an invalid IPsec protocol ID number of 0 or 1, an error notify INVALID_SPI is sent back. The notify payload's protocol ID is copied from the incoming packet, but the code that verifies outgoing packets fails an assertion that the protocol ID must be ESP (2) or AH(3) and causes the pluto daemon to crash and restart. NOTE: the earliest affected version is 3.20.

