Page MenuHomeFreeBSD

udp: Fix a use-after-free in udp_multi_input()
ClosedPublic

Authored by markj on Dec 15 2021, 5:19 PM.
Tags
None
Referenced Files
F132581169: D33473.id.diff
Sat, Oct 18, 3:53 AM
Unknown Object (File)
Mon, Oct 13, 7:07 AM
Unknown Object (File)
Thu, Oct 9, 2:50 PM
Unknown Object (File)
Thu, Oct 2, 7:40 AM
Unknown Object (File)
Wed, Oct 1, 11:47 PM
Unknown Object (File)
Mon, Sep 29, 6:09 PM
Unknown Object (File)
Wed, Sep 24, 3:36 PM
Unknown Object (File)
Wed, Sep 24, 6:00 AM

Details

Summary

"ip" is a pointer into the mbuf chain, so we shouldn't access it after
the chain is freed.

Fix style at the call site.

Reported by: syzbot+7c8258509722af1b6145@syzkaller.appspotmail.com
Fixes: de2d47842e88 ("SMR protection for inpcbs")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable