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)
Wed, May 1, 7:33 AM
Unknown Object (File)
Apr 27 2024, 10:28 AM
Unknown Object (File)
Apr 27 2024, 10:27 AM
Unknown Object (File)
Apr 27 2024, 10:27 AM
Unknown Object (File)
Apr 27 2024, 9:02 AM
Unknown Object (File)
Apr 20 2024, 5:05 AM
Unknown Object (File)
Apr 20 2024, 4:31 AM
Unknown Object (File)
Apr 17 2024, 12:08 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