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
F78221893: D33473.diff
Thu, Feb 29, 9:16 AM
Unknown Object (File)
Sun, Feb 4, 4:31 PM
Unknown Object (File)
Jan 29 2024, 1:10 AM
Unknown Object (File)
Jan 16 2024, 1:40 AM
Unknown Object (File)
Dec 26 2023, 4:21 PM
Unknown Object (File)
Dec 23 2023, 3:06 AM
Unknown Object (File)
Dec 12 2023, 12:06 AM
Unknown Object (File)
Nov 25 2023, 5:17 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