]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Clear the pointer to the socket when closing it also in case of
authorMichael Tuexen <tuexen@FreeBSD.org>
Thu, 23 Jul 2020 19:43:49 +0000 (19:43 +0000)
committerMichael Tuexen <tuexen@FreeBSD.org>
Thu, 23 Jul 2020 19:43:49 +0000 (19:43 +0000)
commit205f3e15972cbb40aa0024355ffe1a62e581191a
tree4f66b68c368f3d55bff057e3c6c9ae3e3dbbab8c
parente32e86852841c9b5fd2bcaa740f0f22cfaa3b3e5
Clear the pointer to the socket when closing it also in case of
an ungraceful operation.
This fixes a use-after-free bug found and reported by Taylor
Brandstetter of Google by testing the userland stack.

MFC after: 1 week
sys/netinet/sctp_pcb.c