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 320636D1D2 for ; Tue, 21 May 2024 14:37:40 +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=1716302261; cv=none; b=MjMP+JJcIV5RvB2YwJwPDvhf6ti6di85murKOvrG9NpssjACEUwK2bE8wdtRclzC2wpDiQJrDwcd+hpdvxWHDHsBY/bclcxPnRRuvKlBCmDa9FSFRZRmEWfFR2TDeqPU2lJ1sxjGMOBGXuHmJ1jDQJk6Il0+Sn1D3zrN8pAewq0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716302261; c=relaxed/simple; bh=USgYXT6U84+yxbLVi0iVIoiMYpiDA6NaVAfDxMTBQ7I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WdQczqiMrMg/8R/Pf3OYEV6CEf3xtnI3NGSE4pEZg4z2AAVhrfvPYpOWi0U4ZtuL9MA34POD5+6imxHgD9qlrbSo2+u2E1zmM1xdVvYUDuEFg/5M2XtLpSgzK5ixBt26lbmK6bsUA0kcRIKEkKblypNqvtt2g7fa9QUxdaRboAE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gBfred6G; 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="gBfred6G" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5AF31C32786; Tue, 21 May 2024 14:37:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716302260; bh=USgYXT6U84+yxbLVi0iVIoiMYpiDA6NaVAfDxMTBQ7I=; h=From:To:Cc:Subject:Date:Reply-to:From; b=gBfred6Gf8b1pkYFhxouh6/j6r5BMLZL5NmtrCqRtIJBYhICXQhPIiCqQmiqpynxr Hg+8j39kxAb3ZGFEaSA+cJg6i5giq9+72tEbWmHIfDEy0TBxUJPERnFYSr1LLavChi TJaSgWZi0FjDmfV0maCI+kklPxuH6WYN/z5JVRtM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47287: driver core: auxiliary bus: Fix memory leak when driver_register() fail Date: Tue, 21 May 2024 16:35:21 +0200 Message-ID: <2024052121-CVE-2021-47287-6345@gregkh> X-Mailer: git-send-email 2.45.1 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=1821; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=USgYXT6U84+yxbLVi0iVIoiMYpiDA6NaVAfDxMTBQ7I=; b=kA0DAAIRMUfUDdst+ykByyZiAGZMsSqjqV9MTNt/0fcoKgGYZSukN0j2tQT+8rg/Qi2IzPE/a 4hdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmZMsSoACgkQMUfUDdst+ykfKgCfef9X a91z0aK3yjwmjD7XVY0kE2QAoM1IFRcQTOsrozgFN2UW6txJclpR 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: auxiliary bus: Fix memory leak when driver_register() fail If driver_register() returns with error we need to free the memory allocated for auxdrv->driver.name before returning from __auxiliary_driver_register() The Linux kernel CVE team has assigned CVE-2021-47287 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 7de3697e9cbd and fixed in 5.13.6 with commit ce5b3de58fc2 Issue introduced in 5.11 with commit 7de3697e9cbd and fixed in 5.14 with commit 4afa0c22eed3 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-2021-47287 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/auxiliary.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/ce5b3de58fc21303722df46551f7eb9a91afb409 https://git.kernel.org/stable/c/4afa0c22eed33cfe0c590742387f0d16f32412f3