[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180416.110357.90099578238978352.davem@davemloft.net>
Date: Mon, 16 Apr 2018 11:03:57 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: pabeni@...hat.com
Cc: netdev@...r.kernel.org, jiri@...nulli.us
Subject: Re: [PATCH net] team: avoid adding twice the same option to the
event list
From: Paolo Abeni <pabeni@...hat.com>
Date: Fri, 13 Apr 2018 13:59:25 +0200
> When parsing the options provided by the user space,
> team_nl_cmd_options_set() insert them in a temporary list to send
> multiple events with a single message.
> While each option's attribute is correctly validated, the code does
> not check for duplicate entries before inserting into the event
> list.
>
> Exploiting the above, the syzbot was able to trigger the following
> splat:
...
> This changeset addresses the avoiding list_add() if the current
> option is already present in the event list.
>
> Reported-and-tested-by: syzbot+4d4af685432dc0e56c91@...kaller.appspotmail.com
> Signed-off-by: Paolo Abeni <pabeni@...hat.com>
> Fixes: 2fcdb2c9e659 ("team: allow to send multiple set events in one message")
Applied and queued up for -stable, thanks.
Please put the Fixes: tag as the first tag next time.
Thank you.
Powered by blists - more mailing lists