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
Unknown Object (File)
Thu, Jul 9, 5:09 AM
Unknown Object (File)
Sat, Jul 4, 9:06 AM
Unknown Object (File)
Sat, Jul 4, 9:03 AM
Unknown Object (File)
Thu, Jul 2, 6:34 AM
Unknown Object (File)
Thu, Jul 2, 6:26 AM
Unknown Object (File)
Fri, Jun 26, 3:34 AM
Unknown Object (File)
Thu, Jun 25, 1:48 AM
Unknown Object (File)
Mon, Jun 22, 3:16 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