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 29B4C31A54C for ; Mon, 15 Sep 2025 14:22:15 +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=1757946136; cv=none; b=qV0MWD+ZlYDwy+xKeJqheWK49xCcGLEUGvyfcpztn8VyutULbOJm6FExk9Dl1fMVVUwaHPxXDt3mNpMeBhGOoxAiHm/qN7q21DauROt3gXJFkZb8RfM0KCKJmko36i3xaihCdN6f68NZI7OTg8/Lvu8LCcUDJmRjYU7BvKdGEqY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757946136; c=relaxed/simple; bh=DMja9RKi8Juqm3U6GH4ECJ6OX3CK6UyUrjXqqYSA4tw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PKgwg9l31u/8GzO4qL02Gjd9xdWw1JEBSH4fpmCChBptBPlx7HnxbhbkiimRUcT9wNkFATXNiUfkze8UuuFpIUfPdfw0NeuoasGKguIPzgjspwiSTpOJXpbQnyDnP3WyWAKeNgRqWHvzXHgMlvzPOwDG52rzoomMKOucwbI9tQo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0dPXSbLY; 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="0dPXSbLY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51AF5C4CEF1; Mon, 15 Sep 2025 14:22:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757946135; bh=DMja9RKi8Juqm3U6GH4ECJ6OX3CK6UyUrjXqqYSA4tw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0dPXSbLYtW37eCHGOtZzk/nqiSEsAwqqrvn/PRCDfknDEJQxEIOcbEbuDLRwg8lOS LsxjPEaY6V4Z2Le126s8KxexhJXfXT1OrNrNEp2kuxTEQF2OEm9Nsz3KFHPRUTm2Gd QV3low6CQC8Wu8/LCe2kzJlyqnR1N7ZkwFpAJ6IU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50281: MIPS: SGI-IP27: Fix platform-device leak in bridge_platform_create() Date: Mon, 15 Sep 2025 16:21:23 +0200 Message-ID: <2025091507-CVE-2022-50281-f141@gregkh> X-Mailer: git-send-email 2.51.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=2859; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sh3n/PTn3xbRyVgbh+4Liztn0O7mq7Blz8um4VOgb6U=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknFC7bz7n/yo6dISDtSwVfqvoD9svn37pKVb7jnLF/S 8K8uN8ZHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARy20M8z38pP0veBX2nK2b sS3o9hyzE/HC2QwLDi7MUlyxdkqZg6bfV86PB+65XYh2BgA= 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: MIPS: SGI-IP27: Fix platform-device leak in bridge_platform_create() In error case in bridge_platform_create after calling platform_device_add()/platform_device_add_data()/ platform_device_add_resources(), release the failed 'pdev' or it will be leak, call platform_device_put() to fix this problem. Besides, 'pdev' is divided into 'pdev_wd' and 'pdev_bd', use platform_device_unregister() to release sgi_w1 resources when xtalk-bridge registration fails. The Linux kernel CVE team has assigned CVE-2022-50281 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit 5dc76a96e95ae041c1d8e52714bd77576b35919b and fixed in 5.10.150 with commit da2aecef866b476438d02c662507a0e4e818da9d Issue introduced in 5.5 with commit 5dc76a96e95ae041c1d8e52714bd77576b35919b and fixed in 5.15.75 with commit 93296e7ab774230b7c36541dead10b6da39b650f Issue introduced in 5.5 with commit 5dc76a96e95ae041c1d8e52714bd77576b35919b and fixed in 5.19.17 with commit d7ac29e60d0ff71e9e414af595b8c92800f7fa90 Issue introduced in 5.5 with commit 5dc76a96e95ae041c1d8e52714bd77576b35919b and fixed in 6.0.3 with commit 48025893b3e31b917ad654d28d23fff66681cac4 Issue introduced in 5.5 with commit 5dc76a96e95ae041c1d8e52714bd77576b35919b and fixed in 6.1 with commit 11bec9cba4de06b3c0e9e4041453c2caaa1cbec1 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-2022-50281 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/mips/sgi-ip27/ip27-xtalk.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/da2aecef866b476438d02c662507a0e4e818da9d https://git.kernel.org/stable/c/93296e7ab774230b7c36541dead10b6da39b650f https://git.kernel.org/stable/c/d7ac29e60d0ff71e9e414af595b8c92800f7fa90 https://git.kernel.org/stable/c/48025893b3e31b917ad654d28d23fff66681cac4 https://git.kernel.org/stable/c/11bec9cba4de06b3c0e9e4041453c2caaa1cbec1