openvpn: disable CBC record splitting in PolarSSL/mbedTLS (#19101)
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 4 May 2015 08:49:21 +0000 (08:49 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 4 May 2015 08:49:21 +0000 (08:49 +0000)
commit204ca9ad4db6b0c8d6549737ab13b61242d23e06
tree1368012886ac55459ac8b49fe203a62ee350e033
parent3558db2b7d72ba47b8dcd9dda71bf521907fbd82
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45602 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/network/services/openvpn/Makefile
package/network/services/openvpn/patches/120-polarssl-disable-record-splitting.patch [new file with mode: 0644]