[dpdk-dev] [PATCH 2/2] net/tap: add buffer overflow checks before checksum

Ferruh Yigit ferruh.yigit at intel.com
Thu Dec 20 20:08:42 CET 2018

On 12/17/2018 3:50 PM, Bruce Richardson wrote:
> The checksum calculation APIs take only the packet headers pointers as
> parameters, so they assume that the lengths reported in those headers are
> correct. However, a malicious packet could claim to be far larger than it
> is, so we need to check the header lengths in the driver before calling
> the checksum API.
> A better fix would be to allow the lengths to be passed into the API
> function, but that would be an API break, so fixing in TAP driver for
> now.
> CC: stable at dpdk.org
> Fixes: 8ae3023387e9 ("net/tap: add Rx/Tx checksum offload support")
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>

Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>

More information about the dev mailing list