Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 79C5919046E for ; Mon, 17 Jun 2024 17:52:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718646721; cv=none; b=FyxIv/4rPBUdC1O2pGS5zcA4E3g8nAQ7qcXwf0hbiiT+0TbHml8ZylasJxhCB2mQzoMKwYRxPTQHd4bijHcFVgQBijNIH57nTn90DgNNawPnM916C8N7GZxlttNhWQcm0eswIgbLXrYZBuSwjHI7VuKQqYJOBGNoytj/eCmWYkU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718646721; c=relaxed/simple; bh=/52B+E7yx49Ndovzg/Nz0D5VsMhxqH0BLfstTrrQrWc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DCTzFxlsKZXQHG+zc54APa2cBv7wO5JVvy7ngUiy6tmTx33NttScM9Xdmd1z4qc84UlDZyCNiCDTcdQ8VO+YLlHyETrH/pcT6mD5fFJmkCTDB7Dg4VgpHWK6oWG0+y22kR49O2gM6QLtHojV1NxfrnwEr+5rWH2UZnRTxivHYwU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hoy/Ws2F; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="hoy/Ws2F" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A25D7C2BD10; Mon, 17 Jun 2024 17:52:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718646721; bh=/52B+E7yx49Ndovzg/Nz0D5VsMhxqH0BLfstTrrQrWc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hoy/Ws2FFNri6u53Cb5Iok+hF/Lwudv1BRExI7ldFhXLiJFyVHiIMAcAm9cjPXq6m hQKtJgI1Qs6feeRb6Lwr81XtnLJi+1V1cRCM8xvMj4xVhgD2BM9BvI2wAQRfduDopK oFqxxearaTX+XSoNQuiLzQ489ggMqK5Pop2aK6S8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36973: misc: microchip: pci1xxxx: fix double free in the error handling of gp_aux_bus_probe() Date: Mon, 17 Jun 2024 19:51:56 +0200 Message-ID: <2024061755-CVE-2024-36973-4489@gregkh> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=1845; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/52B+E7yx49Ndovzg/Nz0D5VsMhxqH0BLfstTrrQrWc=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkF5buvrt565XrRLIPP9cvkpt/W0bCYfevi3T9r/pZvq Q9g6Jkd1xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATeZ7KMIvJfl3eRqn+rA6N NekCJv+cf7ttr2WY77/lu9+6xzEv0268c3yd9erT79fHbwIA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: misc: microchip: pci1xxxx: fix double free in the error handling of gp_aux_bus_probe() When auxiliary_device_add() returns error and then calls auxiliary_device_uninit(), callback function gp_auxiliary_device_release() calls ida_free() and kfree(aux_device_wrapper) to free memory. We should't call them again in the error handling path. Fix this by skipping the redundant cleanup functions. The Linux kernel CVE team has assigned CVE-2024-36973 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit 393fc2f5948f and fixed in 6.10-rc4 with commit 086c6cbcc563 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2024-36973 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gp.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/086c6cbcc563c81d55257f9b27e14faf1d0963d3