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
F174948781: D33473.diff
Wed, Oct 7, 3:40 AM
Unknown Object (File)
Tue, Oct 6, 4:51 AM
Unknown Object (File)
Tue, Oct 6, 4:17 AM
Unknown Object (File)
Tue, Oct 6, 4:16 AM
Unknown Object (File)
Sat, Oct 3, 10:52 AM
Unknown Object (File)
Thu, Oct 1, 2:13 PM
Unknown Object (File)
Thu, Sep 24, 3:51 PM
Unknown Object (File)
Thu, Sep 24, 6:47 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