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 574DF314D21 for ; Wed, 24 Dec 2025 10:58:50 +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=1766573930; cv=none; b=swk49oGXACkHbUto8/KLFmhdz1x76+4U1RWTKVud7kRzXJjIRDFsQN+CAH7wWVG5m0YfsWmK1Rs10RCnMg8vFCoLvkcEw2DUmhNpXkyKnaEO42K0Nr69HY/weH9gkpL+kg74+8JWPu6WAEyuLypIkkxXwh842vOvl0zMnwzUq5Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766573930; c=relaxed/simple; bh=blsEdjaCAfLsjdiacoz4i4tjxR4q07txXFzsRC5IG/0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MjZV9ucx2J85LA+5EAfOrknwoltN4e8qOQh85lsLWL5Q8HHJSFSVy74OoFXUFp9E8AhRhSdDyqfmk4rSiACcm3vanhWjXOVDjoxD/ohiWXeVqkB3eSiQeal6o3DmFfl1Qax7kz+1Od19uZUyOpqa19ZHz5wJNOk7q4ZSskH5qOA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mqFobZ0s; 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="mqFobZ0s" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C95E5C4CEFB; Wed, 24 Dec 2025 10:58:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766573930; bh=blsEdjaCAfLsjdiacoz4i4tjxR4q07txXFzsRC5IG/0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=mqFobZ0scj0lsubwJ9nd+/sXgf22fWmmpIeqJyKuvOJ1qJah2fHYog2QJuVRdeacZ r0pYLo/xCdiK1efSXigXuuYIJ7Hwe1ejLOausD5MjPTIr+EVQHq2U8i6IH+jFdOTqq vIQvJwN+m2pOQ9IpsU1zanWmHfIGG9cnFJ09Z0h8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54017: powerpc/pseries: fix possible memory leak in ibmebus_bus_init() Date: Wed, 24 Dec 2025 11:57:01 +0100 Message-ID: <2025122432-CVE-2023-54017-f83d@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2843; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4eZxxwau0hKpMo7onWBnnBGZWJZjxAH3tMrKmRoIZ40=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnexx6cXW4Z+VU1ZWb9LQetM7dW9PseTeL8b7C77gTvQ qe8j+3yHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjAR7n0MC1pqykS2Xf34UpR5 /9tnV2UyVlio3GRYsKdL6k/3vdwv/RNKRSu3MC5L5VmeCgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: powerpc/pseries: fix possible memory leak in ibmebus_bus_init() If device_register() returns error in ibmebus_bus_init(), name of kobject which is allocated in dev_set_name() called in device_add() is leaked. As comment of device_add() says, it should call put_device() to drop the reference count that was set in device_initialize() when it fails, so the name can be freed in kobject_cleanup(). The Linux kernel CVE team has assigned CVE-2023-54017 to this issue. Affected and fixed versions =========================== Fixed in 4.14.326 with commit e4ff88548defafb1ef84facd9856ec252da7b008 Fixed in 4.19.295 with commit 3cc4c2f6c266fe5b33a7fa797f31e8b3f06ce58c Fixed in 5.4.257 with commit 7ffe14fce7425c32e735bdc44bce425f18976a49 Fixed in 5.10.197 with commit 9f3b2b666833ebef6d0ce5a40e189f38e70342a1 Fixed in 5.15.133 with commit d35e7ae10eb8917883da2a0b1823c620a1be42d6 Fixed in 6.1.55 with commit 96f27ff732208dce6468016e7a7d5032bd1bfc23 Fixed in 6.5.5 with commit ebd8dc974fcc59e2851a0d89ee7935b55142dc8e Fixed in 6.6 with commit afda85b963c12947e298ad85d757e333aa40fd74 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-2023-54017 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: arch/powerpc/platforms/pseries/ibmebus.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/e4ff88548defafb1ef84facd9856ec252da7b008 https://git.kernel.org/stable/c/3cc4c2f6c266fe5b33a7fa797f31e8b3f06ce58c https://git.kernel.org/stable/c/7ffe14fce7425c32e735bdc44bce425f18976a49 https://git.kernel.org/stable/c/9f3b2b666833ebef6d0ce5a40e189f38e70342a1 https://git.kernel.org/stable/c/d35e7ae10eb8917883da2a0b1823c620a1be42d6 https://git.kernel.org/stable/c/96f27ff732208dce6468016e7a7d5032bd1bfc23 https://git.kernel.org/stable/c/ebd8dc974fcc59e2851a0d89ee7935b55142dc8e https://git.kernel.org/stable/c/afda85b963c12947e298ad85d757e333aa40fd74