openvpn: disable CBC record splitting in PolarSSL/mbedTLS (#19101)
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 4 May 2015 08:49:21 +0000 (08:49 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 4 May 2015 08:49:21 +0000 (08:49 +0000)
commitcd143f5716c0c7d6d11cbaf32482ab8ad41841a6
tree1368012886ac55459ac8b49fe203a62ee350e033
parent99d1529c1adb3d8ae8e9b6c8ea804101aab0d408
openvpn: disable CBC record splitting in PolarSSL/mbedTLS (#19101)

OpenVPN assumes that its control channel messages are sent and received
unfragmented, this assumption is broken when CBC record splitting is
enabled in mbedTLS.

The record splitting is intended as countermeasure against BEAST attacks
which do not apply to OpenVPN, therefore we simply disable it until
upstream OpenVPN gains the ability to process fragmented control
messages.

Disabling the splitting also works around a (not remotely triggerable)
segmentation fault in mbedTLS.

References:

 * https://dev.openwrt.org/ticket/19101
 * https://community.openvpn.net/openvpn/ticket/524
 * https://github.com/ARMmbed/mbedtls/pull/185

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 45602
package/network/services/openvpn/Makefile
package/network/services/openvpn/patches/120-polarssl-disable-record-splitting.patch [new file with mode: 0644]