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
F146619811: D33473.diff
Wed, Mar 4, 4:15 AM
Unknown Object (File)
Mon, Mar 2, 10:23 PM
Unknown Object (File)
Mon, Mar 2, 4:34 PM
Unknown Object (File)
Thu, Feb 26, 8:25 AM
Unknown Object (File)
Wed, Feb 25, 4:25 AM
Unknown Object (File)
Tue, Feb 24, 5:16 PM
Unknown Object (File)
Tue, Feb 24, 4:34 AM
Unknown Object (File)
Jan 22 2026, 4:53 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 43380
Build 40268: arc lint + arc unit