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 123F328D8D0 for ; Tue, 16 Sep 2025 16:13:16 +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=1758039198; cv=none; b=uowkx1Up0WMiwxiwtdodqhXiT4cgSuKn63t6a5ZIgH52kEYTHOUenGDXx5zhITW7zsbL+XsAlOHj46zDp2s5VUhbWLE69g6ieukfl2xKg/vkDdifvv/CsCZS3xXvN9J3L2YRCvWvOWQN9j7TaAsu06hOHN4KdM4rvNgSD8HijcU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758039198; c=relaxed/simple; bh=gl00Z/0MdDb0q3kw3cEXKsjbqTO9oyriS2pVDz/Kkv0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=N2mKWp6qMGaMEe7rfYjaE8sNelu8p8XWkBobTsJo8IdWN11AFfXUmaRKgOhXpGcoXI0U0k9Ylyq7W78LNWPgca5RQJAyhx630nHDPs6IDFK0n6p7IPCLtHO2DN/3VpKzIzVQULZD5X+u7vqZ4MefoZSvNH2x5WhJrxFwbvxuI4Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2N+MMgOa; 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="2N+MMgOa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F053AC4CEEB; Tue, 16 Sep 2025 16:13:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758039196; bh=gl00Z/0MdDb0q3kw3cEXKsjbqTO9oyriS2pVDz/Kkv0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2N+MMgOaT5A7zyOgORk8MjkGNQdZhRruS0OwSBZ1xR3f9Je+8PvqLHHeqimuHBRL3 QKc1pBOe3a5jEHHNSSUkTHfie+DuL0iiB7rpNQpTluZJKX0NE6eznK1+lajicL/KEt A4LYNIaGPd0MFxiUEoLajeJwu1j0vQCs6OMmam+Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50349: misc: tifm: fix possible memory leak in tifm_7xx1_switch_media() Date: Tue, 16 Sep 2025 18:11:45 +0200 Message-ID: <2025091640-CVE-2022-50349-cc37@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=3700; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mzvPY0YRGwBzuW9b3DMHdAqYfbOFlinXF/a4zAbVNZo=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkne2yiA3+v1/U6oRKx8tQ079KLj0wKmv4cM3ht/rknY 0Jjr1JLRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzEUYxhfnrJXL31radako7P cb61+4zPmev2FxkWHL3SwZDAKfvZujBHYt3PKgGWs6o/AA== 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: misc: tifm: fix possible memory leak in tifm_7xx1_switch_media() If device_register() returns error in tifm_7xx1_switch_media(), name of kobject which is allocated in dev_set_name() called in device_add() is leaked. Never directly free @dev after calling device_register(), even if it returned an error! Always use put_device() to give up the reference initialized. The Linux kernel CVE team has assigned CVE-2022-50349 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.22 with commit 2428a8fe2261e901e058d9ea8b6ed7e1b4268b79 and fixed in 4.9.337 with commit 2bbb222a54ff501f77ce593d21b76b79c905045e Issue introduced in 2.6.22 with commit 2428a8fe2261e901e058d9ea8b6ed7e1b4268b79 and fixed in 4.14.303 with commit d861b7d41b17942b337d4b87a70de7cd1dc44d4e Issue introduced in 2.6.22 with commit 2428a8fe2261e901e058d9ea8b6ed7e1b4268b79 and fixed in 4.19.270 with commit 1695b1adcc3a7d985cd22fa3b55761edf3fab50d Issue introduced in 2.6.22 with commit 2428a8fe2261e901e058d9ea8b6ed7e1b4268b79 and fixed in 5.4.229 with commit ee2715faf7e7153f5142ed09aacfa89a64d45dcb Issue introduced in 2.6.22 with commit 2428a8fe2261e901e058d9ea8b6ed7e1b4268b79 and fixed in 5.10.163 with commit 57c857353d5020bdec8284d9c0fee447484fe5e0 Issue introduced in 2.6.22 with commit 2428a8fe2261e901e058d9ea8b6ed7e1b4268b79 and fixed in 5.15.86 with commit 848c45964ded537107e010aaf353aa30a0855387 Issue introduced in 2.6.22 with commit 2428a8fe2261e901e058d9ea8b6ed7e1b4268b79 and fixed in 6.0.16 with commit 35abbc8406cc39e72d3ce85f6e869555afe50d54 Issue introduced in 2.6.22 with commit 2428a8fe2261e901e058d9ea8b6ed7e1b4268b79 and fixed in 6.1.2 with commit ef843ee20576039126d34d6eb5f45d14c3e6ce18 Issue introduced in 2.6.22 with commit 2428a8fe2261e901e058d9ea8b6ed7e1b4268b79 and fixed in 6.2 with commit fd2c930cf6a5b9176382c15f9acb1996e76e25ad 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-50349 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/misc/tifm_7xx1.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/2bbb222a54ff501f77ce593d21b76b79c905045e https://git.kernel.org/stable/c/d861b7d41b17942b337d4b87a70de7cd1dc44d4e https://git.kernel.org/stable/c/1695b1adcc3a7d985cd22fa3b55761edf3fab50d https://git.kernel.org/stable/c/ee2715faf7e7153f5142ed09aacfa89a64d45dcb https://git.kernel.org/stable/c/57c857353d5020bdec8284d9c0fee447484fe5e0 https://git.kernel.org/stable/c/848c45964ded537107e010aaf353aa30a0855387 https://git.kernel.org/stable/c/35abbc8406cc39e72d3ce85f6e869555afe50d54 https://git.kernel.org/stable/c/ef843ee20576039126d34d6eb5f45d14c3e6ce18 https://git.kernel.org/stable/c/fd2c930cf6a5b9176382c15f9acb1996e76e25ad