summaryrefslogtreecommitdiff
path: root/certs
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>2021-10-19 20:27:26 +0900
committerCasey Schaufler <casey@schaufler-ca.com>2021-10-22 08:46:53 -0700
commit0934ad42bb2c5df90a1b9de690f93de735b622fe (patch)
tree23aec577a649388082a6b9788f4c3f1f3d18e478 /certs
parentf91488ee15bd3cac467e2d6a361fc2d34d1052ae (diff)
smackfs: use netlbl_cfg_cipsov4_del() for deleting cipso_v4_doi
syzbot is reporting UAF at cipso_v4_doi_search() [1], for smk_cipso_doi() is calling kfree() without removing from the cipso_v4_doi_list list after netlbl_cfg_cipsov4_map_add() returned an error. We need to use netlbl_cfg_cipsov4_del() in order to remove from the list and wait for RCU grace period before kfree(). Link: https://syzkaller.appspot.com/bug?extid=93dba5b91f0fed312cbd [1] Reported-by: syzbot <syzbot+93dba5b91f0fed312cbd@syzkaller.appspotmail.com> Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Fixes: 6c2e8ac0953fccdd ("netlabel: Update kernel configuration API") Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions