Date: Fri, 14 May 2021 12:35:47 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 255872] [PATCH] netgraph/bluetooth/hci: Fix a use after free in le_connection_complete Message-ID: <bug-255872-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255872 Bug ID: 255872 Summary: [PATCH] netgraph/bluetooth/hci: Fix a use after free in le_connection_complete 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 224936 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=224936&action=edit add goto out if ng_hci_lp_con_ind() error. Bug File: sys/netgraph/bluetooth/hci/ng_hci_evnt.c In function le_connection_complete, con is freed via ng_hci_free_con(con) at line 530. But the freed con is still used later. This free operation performs if an error happened in ng_hci_lp_con_ind(), i think the developer forgot to goto out branch and cause this uaf. My patch fixs this error. -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-255872-227>
