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)
commita28deda59043d2f77a728ad90ee3731c2efd19b1
treef30e66d627c32cfda868dfbd4b0360bbbcedb631
parentaea93173d1d492b6c9508336ec965aecb09b69e1
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]