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 D80991F707F for ; Mon, 21 Oct 2024 19:41:09 +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=1729539669; cv=none; b=uyKTCj/XZ+8TRnKeazlAU7eJV04DabTXt6jQ5XNUY3CDnEawkNXY/Gi94UhxB7UFq6TQV91Bt0Q0HNQAMuKheIN/30DfUClrQuhJtXpYCRqon8CAM1A0ejXaJJ/QeXFkPyQdtOhjOT2VXzJY4Jp6zH4wZi5BB8RbkKL/6W3RYic= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729539669; c=relaxed/simple; bh=AGDXRX+zkilI67cKStshukfwk74S2+Q0JJwnnhEFPmU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oku0neA3vXZr06djt2RF71QvD0JYMrK5YO5XruPRqUKwFJ7jScRXMsK11IKB3omwbQWHgl4kcbY42cRkyGLfYdllKcjzE+iptV879/GgXwXDSRlckcECmar/6QHPxBxvImKEJe5MC4A2bscGNh7zvfaxCzeC6eYRXEcYs25tJh4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=R1H5dmzW; 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="R1H5dmzW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E24CC4CEC3; Mon, 21 Oct 2024 19:41:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729539669; bh=AGDXRX+zkilI67cKStshukfwk74S2+Q0JJwnnhEFPmU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=R1H5dmzWxtbjxao+M2FSyWF6KpbeL7NOiuKGdnRMz2tJ/eqaK/f9u+C3b+nkWrLXB b0Lgwnn8yzcQYGNavXYwaL2FOelhCwGmRN246yRn3VXiklCt/J1dR/9vWpY9gt7tZw jQC7che66CmyoITl0nju5p7u0lp5x6xhzzrgYB14= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50055: driver core: bus: Fix double free in driver API bus_register() Date: Mon, 21 Oct 2024 21:39:56 +0200 Message-ID: <2024102134-CVE-2024-50055-7d1f@gregkh> X-Mailer: git-send-email 2.47.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=1827; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=AGDXRX+zkilI67cKStshukfwk74S2+Q0JJwnnhEFPmU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlia79bPhF6t7b0S7aN7fJVbtrfJ7dGvX5rP+VLYLTxm Y5/d1utO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAic80YFkzem3REaJXbNG6O rzuP/VHXCCltMmSYpyUhwjz59FfDqqkqIXk7JixJ81b9AAA= 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: driver core: bus: Fix double free in driver API bus_register() For bus_register(), any error which happens after kset_register() will cause that @priv are freed twice, fixed by setting @priv with NULL after the first free. The Linux kernel CVE team has assigned CVE-2024-50055 to this issue. Affected and fixed versions =========================== Fixed in 6.6.57 with commit d885c464c250 Fixed in 6.11.4 with commit 9ce15f68abed Fixed in 6.12-rc1 with commit bfa54a793ba7 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-50055 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/base/bus.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/d885c464c25018b81a6b58f5d548fc2e3ef87dd1 https://git.kernel.org/stable/c/9ce15f68abedfae7ae0a35e95895aeddfd0f0c6a https://git.kernel.org/stable/c/bfa54a793ba77ef696755b66f3ac4ed00c7d1248