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
F166520653: D33473.id100083.diff
Thu, Aug 13, 11:44 PM
Unknown Object (File)
Sat, Aug 8, 4:26 PM
Unknown Object (File)
Tue, Aug 4, 9:44 AM
Unknown Object (File)
Tue, Aug 4, 8:08 AM
Unknown Object (File)
Tue, Aug 4, 6:14 AM
Unknown Object (File)
Mon, Aug 3, 7:36 AM
Unknown Object (File)
Fri, Jul 31, 4:12 AM
Unknown Object (File)
Mon, Jul 27, 1:22 PM

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