Date: Fri, 14 May 2021 09:18:13 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 255862] [PATCH] dev/acpica: Fix a double free in acpi_pci_link_route_irqs Message-ID: <bug-255862-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255862 Bug ID: 255862 Summary: [PATCH] dev/acpica: Fix a double free in acpi_pci_link_route_irqs 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 224925 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D224925&action= =3Dedit add a status check Bug File: sys/dev/acpica/acpi_pci_link.c In function acpi_pci_link_route_irqs, srsbuf->Pointer is freed via AcpiOsFr= ee() in the callee status =3D acpi_pci_link_srs_from_links(sc, &srsbuf), and the= n the callee returns a FAILURE status. But the returned status has not been checked, that causes srsbuf->Pointer is freed again at line 916 and 876, which are double free bugs. My patch adds a check on the returned status of acpi_pci_link_srs_from_link= s() to avoid the double free. --=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-255862-227>