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)
Sat, Nov 25, 5:17 PM
Unknown Object (File)
Oct 16 2023, 7:58 AM
Unknown Object (File)
Sep 29 2023, 9:05 PM
Unknown Object (File)
Sep 11 2023, 4:30 AM
Unknown Object (File)
Jun 16 2023, 12:26 AM
Unknown Object (File)
Jun 6 2023, 4:29 AM
Unknown Object (File)
Jun 3 2023, 3:26 PM
Unknown Object (File)
Apr 19 2023, 10:24 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