[Bridge] [PATCH net] net: bridge: fix a null pointer dereference in br_afspec

Roopa Prabhu roopa at cumulusnetworks.com
Tue Jun 6 05:28:03 UTC 2017


On Mon, Jun 5, 2017 at 3:26 PM, Nikolay Aleksandrov
<nikolay at cumulusnetworks.com> wrote:
> We might call br_afspec() with p == NULL which is a valid use case if
> the action is on the bridge device itself, but the bridge tunnel code
> dereferences the p pointer without checking, so check if p is null
> first.
>
> Reported-by: Gustavo A. R. Silva <garsilva at embeddedor.com>
> Fixes: efa5356b0d97 ("bridge: per vlan dst_metadata netlink support")
> Signed-off-by: Nikolay Aleksandrov <nikolay at cumulusnetworks.com>

Acked-by: Roopa Prabhu <roopa at cumulusnetworks.com>

Thanks Nikolay.


More information about the Bridge mailing list