Re: [Patch net] genetlink: get rid of family->attrbuf

2020-06-29 Thread David Miller
From: Cong Wang Date: Sat, 27 Jun 2020 00:12:24 -0700 > genl_family_rcv_msg_attrs_parse() reuses the global family->attrbuf > when family->parallel_ops is false. However, family->attrbuf is not > protected by any lock on the genl_family_rcv_msg_doit() code path. > > This leads to several differe

[Patch net] genetlink: get rid of family->attrbuf

2020-06-27 Thread Cong Wang
genl_family_rcv_msg_attrs_parse() reuses the global family->attrbuf when family->parallel_ops is false. However, family->attrbuf is not protected by any lock on the genl_family_rcv_msg_doit() code path. This leads to several different consequences, one of them is UAF, like the following: genl_fam