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
F175482232: D33473.id100083.diff
Sun, Oct 11, 4:32 AM
F175446242: D33473.id100146.diff
Sat, Oct 10, 10:23 PM
Unknown Object (File)
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

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