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 1FD2E2E6112 for ; Wed, 1 Oct 2025 11:55:34 +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=1759319735; cv=none; b=MNP8RnNjLg3yVXGLd3hPi8SgdoXtxD86J40upS1HkjK3ta69KSqqp6iArvfTMgYAkJpsp7qc5RHaBCkbOePQPJdvvJLfiBGwb1y/OFmF6mX3vhQQAKTlfoipjnW1QTBlP242p5F2MM6QgZpsOFQQnOcVfwJmon8vpjsEjCxJjEw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319735; c=relaxed/simple; bh=gptUEBDEZ8EzzD3cqtRnGZqTOGl75Lw1zjGZNkZ+ESk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=embZ3B13zaXXGJitOi99JIOAMZAJ2NWG+S2gYdp+syAjKytlAFh+fzWi0h+aqe4B55SKBQe6Yvr/V/YwzhMAB4oBaRIqw9DMbHdZsYjlTqZb+ThO/AcunljFpmheisIEylTaOOHvyv0PjrL7w/+lmUOKTiydxOAu70MhHKABjJg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lfE12rfS; 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="lfE12rfS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D9B5C4CEF4; Wed, 1 Oct 2025 11:55:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759319734; bh=gptUEBDEZ8EzzD3cqtRnGZqTOGl75Lw1zjGZNkZ+ESk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=lfE12rfSgFVgsw4T33q7QarHpzCR7dnddOQ4mJf30aQyE6B/9cMr4uhMTdXwNl970 JY9eZXReij33EWBkFR3S0+ea4Q5Ni1YZZUkiZkwhuo0LZ+R2Au8XGwnsHWCpUFTrDc qK261vx5ky4RCKIQs7TinABRWakgYae0JR37h+FY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50462: MIPS: vpe-mt: fix possible memory leak while module exiting Date: Wed, 1 Oct 2025 13:45:32 +0200 Message-ID: <2025100120-CVE-2022-50462-a935@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=3750; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=F93WmsiV28RRyyu8Lh4e8HLzE9eoK2CTQjyEsw4a+VU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3RQJ63S8G7WqvO2tx5atkiGR4y55pmqKzFZhvLWO8O sFv4afyjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIuS/D/DjWC1Hn/YsniXGf PXNgqYjXC5lPKgwLZmYdV3wiECOdHzvFNtLZwv3EtJjNAA== 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: vpe-mt: fix possible memory leak while module exiting Afer commit 1fa5ae857bb1 ("driver core: get rid of struct device's bus_id string array"), the name of device is allocated dynamically, it need be freed when module exiting, call put_device() to give up reference, so that it can be freed in kobject_cleanup() when the refcount hit to 0. The vpe_device is static, so remove kfree() from vpe_device_release(). The Linux kernel CVE team has assigned CVE-2022-50462 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.30 with commit 1fa5ae857bb14f6046205171d98506d8112dd74e and fixed in 4.9.337 with commit 170e9913c2ed5cfc37c0adf0fdbd368d2d8d8168 Issue introduced in 2.6.30 with commit 1fa5ae857bb14f6046205171d98506d8112dd74e and fixed in 4.14.303 with commit 9d180e0bb21c57bd6cca2adeb672d3b522e910b5 Issue introduced in 2.6.30 with commit 1fa5ae857bb14f6046205171d98506d8112dd74e and fixed in 4.19.270 with commit 851ae5640875f06494e40002cd503b11a634c6fb Issue introduced in 2.6.30 with commit 1fa5ae857bb14f6046205171d98506d8112dd74e and fixed in 5.4.229 with commit b3325a443525e3b89151879b834519b21c5e3011 Issue introduced in 2.6.30 with commit 1fa5ae857bb14f6046205171d98506d8112dd74e and fixed in 5.10.163 with commit 48d42f4464d713fbdd79f334fdcd6e5be534cc67 Issue introduced in 2.6.30 with commit 1fa5ae857bb14f6046205171d98506d8112dd74e and fixed in 5.15.86 with commit e820a8192ff68570100347855b567512aec43819 Issue introduced in 2.6.30 with commit 1fa5ae857bb14f6046205171d98506d8112dd74e and fixed in 6.0.16 with commit b191dde84e40624d5577f64db0ec922c5c0ec57c Issue introduced in 2.6.30 with commit 1fa5ae857bb14f6046205171d98506d8112dd74e and fixed in 6.1.2 with commit ab3d47c1fd0202821abd473ca87580faafd47847 Issue introduced in 2.6.30 with commit 1fa5ae857bb14f6046205171d98506d8112dd74e and fixed in 6.2 with commit 5822e8cc84ee37338ab0bdc3124f6eec04dc232d 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-50462 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/kernel/vpe-mt.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/170e9913c2ed5cfc37c0adf0fdbd368d2d8d8168 https://git.kernel.org/stable/c/9d180e0bb21c57bd6cca2adeb672d3b522e910b5 https://git.kernel.org/stable/c/851ae5640875f06494e40002cd503b11a634c6fb https://git.kernel.org/stable/c/b3325a443525e3b89151879b834519b21c5e3011 https://git.kernel.org/stable/c/48d42f4464d713fbdd79f334fdcd6e5be534cc67 https://git.kernel.org/stable/c/e820a8192ff68570100347855b567512aec43819 https://git.kernel.org/stable/c/b191dde84e40624d5577f64db0ec922c5c0ec57c https://git.kernel.org/stable/c/ab3d47c1fd0202821abd473ca87580faafd47847 https://git.kernel.org/stable/c/5822e8cc84ee37338ab0bdc3124f6eec04dc232d