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, Jun 29, 1:35 PM
Unknown Object (File)
Sun, Jun 29, 11:44 AM
Unknown Object (File)
Sat, Jun 28, 11:00 PM
Unknown Object (File)
Mon, Jun 23, 5:29 AM
Unknown Object (File)
Sat, Jun 21, 3:57 PM
Unknown Object (File)
Sat, Jun 21, 12:05 PM
Unknown Object (File)
Fri, Jun 20, 10:31 PM
Unknown Object (File)
Wed, Jun 18, 9:31 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 43380
Build 40268: arc lint + arc unit