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)
Fri, Apr 18, 2:24 AM
Unknown Object (File)
Sun, Mar 23, 9:25 AM
Unknown Object (File)
Mar 8 2025, 6:56 AM
Unknown Object (File)
Mar 4 2025, 8:04 PM
Unknown Object (File)
Feb 25 2025, 4:37 AM
Unknown Object (File)
Feb 24 2025, 10:15 PM
Unknown Object (File)
Feb 24 2025, 4:55 PM
Unknown Object (File)
Feb 20 2025, 3:23 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