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 4F7BE3DABF3 for ; Wed, 27 Mar 2024 13:54:18 +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=1711547658; cv=none; b=RH8Ef7+sooDtBBp0/VWzoMtbpfzQAZr1oel6r0iNfC1VHj7axKb63jMj0/HElsbxFMac9+EpiC+J879f5ku6tAy5XTbLm6phBQ9Mud3/viAttLI412HdILYS1neSvtRXY83EhlAYzJqviqcVaZlMUCEFqCtMePsdP38qe+LkL+w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711547658; c=relaxed/simple; bh=HmggiJ5S7TzcRDGvRbJUmxT2CkKDwdDYEHwEqMDeARw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ktowap4CYGS2d032wxcLF2NmsQyYV/OBnxgb1O/WEL7ywIs3texmp9UDxZs5q6FY6oR7zmvu2U7sK41I9a/Wf1IBZGoQJ7l0N5C295WRZENGqqEOdJxo1BKOOinCau8rurBU3MOt7QhgZDOAF/+NXYITOTQbiZYheUUOoDVPGHQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ihRv6okG; 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="ihRv6okG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77B56C433F1; Wed, 27 Mar 2024 13:54:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1711547657; bh=HmggiJ5S7TzcRDGvRbJUmxT2CkKDwdDYEHwEqMDeARw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ihRv6okG4o/m6FiiV6Tcy063ynae4nzLVJ/oj22RndEpemJ4pNqvf0xuhqDHeGKMn 0NbJPe7sWiKAx1IOahutOPDTqXOoTecJJS+nJOD3/60x+Tawx2iQB1Iw9xViFOceKY ExLqtQFi9Hx7khVH9CVrd1zrVq1Eba/aD5Mw54rs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26652: net: pds_core: Fix possible double free in error handling path Date: Wed, 27 Mar 2024 14:54:14 +0100 Message-ID: <2024032713-CVE-2024-26652-f95c@gregkh> X-Mailer: git-send-email 2.44.0 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=2188; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HmggiJ5S7TzcRDGvRbJUmxT2CkKDwdDYEHwEqMDeARw=; b=owGbwMvMwCRo6H6F97bub03G02pJDGksqqyTu9I07sXWihmpeJ9/oXosYU9aRItqbnI+7zTx0 1f6Wfd2xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwES8djHMM/PhfTixrsO738bs dLya+wcL8x/uDAvWZxZk/BYs/Gw257Rn3aXrfRJM1+sA 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: net: pds_core: Fix possible double free in error handling path When auxiliary_device_add() returns error and then calls auxiliary_device_uninit(), Callback function pdsc_auxbus_dev_release calls kfree(padev) to free memory. We shouldn't call kfree(padev) again in the error handling path. Fix this by cleaning up the redundant kfree() and putting the error handling back to where the errors happened. The Linux kernel CVE team has assigned CVE-2024-26652 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit 4569cce43bc6 and fixed in 6.6.22 with commit 995f802abff2 Issue introduced in 6.4 with commit 4569cce43bc6 and fixed in 6.7.10 with commit ffda0e962f27 Issue introduced in 6.4 with commit 4569cce43bc6 and fixed in 6.8 with commit ba18deddd6d5 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-26652 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/net/ethernet/amd/pds_core/auxbus.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/995f802abff209514ac2ee03b96224237646cec3 https://git.kernel.org/stable/c/ffda0e962f270b3ec937660afd15b685263232d3 https://git.kernel.org/stable/c/ba18deddd6d502da71fd6b6143c53042271b82bd