Date: Fri, 14 May 2021 11:45:04 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 255869] [PATCH] kern: Fix a use after free bug in sodealloc Message-ID: <bug-255869-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255869 Bug ID: 255869 Summary: [PATCH] kern: Fix a use after free bug in sodealloc Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: lylgood@foxmail.com Created attachment 224933 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D224933&action= =3Dedit adds a variable cr_uidinfo Bug File: sys/kern/uipc_socket.c In Function sodealloc, so->so_cred is freed via crfree() at line 479. But, the freed so->so_cred is dereferenced by so->so_cred->cr_uidinfo at li= ne 486 and 489, which are uaf bugs. My patch adds a variable cr_uidinfo to avoid the uaf bugs. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-255869-227>