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)
Sun, Nov 23, 2:57 AM
Unknown Object (File)
Tue, Nov 18, 4:30 AM
Unknown Object (File)
Thu, Nov 13, 12:42 AM
Unknown Object (File)
Fri, Nov 7, 3:05 AM
Unknown Object (File)
Oct 18 2025, 3:53 AM
Unknown Object (File)
Oct 13 2025, 7:07 AM
Unknown Object (File)
Oct 9 2025, 2:50 PM
Unknown Object (File)
Oct 2 2025, 7:40 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