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 82B1C2EB845 for ; Tue, 30 Dec 2025 12:20:13 +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=1767097216; cv=none; b=P6JHriROUksKAgEXSz65l8FyRjBmzg8rU55ov88xOyF1GSpUVUrYFf5a1t3gbN7XEHEvLIK+nYr4+svCws4Ulty1C7Fv2dGkdFxxo5rcPD5osneQ4+pZkZ3RTFoJMT4mBJ6BDEyPOoHwzuZy2Czl2UwhaOBiFT8G8wrmbPSSGbk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767097216; c=relaxed/simple; bh=ZdLJMCkPEPxP40XJZl50EMZH39fp2zIMvkJe1CJfOTw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SVJmfUKZQKXi6fBZwWPWFk4aoAgamWkcgKCJPYNsRI4NZgU+B6jp34NsvS7sOXvxTG2+l5uRMnPRbu+ilV8o+xab0kgyjftAB5g1Q4O5cViHN0Ptf+7O8V5rLW12+w867PIiuFmLmySDjo1Xpoar49TQ0zyK036Xd8AnU2wjBmg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IXdMV8rn; 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="IXdMV8rn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91910C4CEFB; Tue, 30 Dec 2025 12:20:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767097213; bh=ZdLJMCkPEPxP40XJZl50EMZH39fp2zIMvkJe1CJfOTw=; h=From:To:Cc:Subject:Date:Reply-To:From; b=IXdMV8rnOR1v+bG3as9QfPPZTfptC4k6MNgPNdfV2SYz0sEkn1JNxIcVdrzdiGcWM iY33stjV92YfLp4JCj9oNwTSsiX8QXcZOxr4E5ALu33NoFu9voqzB8eMUA7/vD9BPk 1kpmZEMBiDSkmfpmvmKMkwzTekUKgmombq0Bs/Og= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50848: drivers: dio: fix possible memory leak in dio_init() Date: Tue, 30 Dec 2025 13:19:44 +0100 Message-ID: <2025123043-CVE-2022-50848-4a61@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=3606; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=b7uVurMz4fuXBR7QeIbQoKw5mWhhCP+Vb8pxrP882jc=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBhxOe3vL9q7fkTcM3HamLW37dNvpQG7MjbM3kBo2nN 9oOvL3U1BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQAT2TqTYcEcIe5fpvutHe7a rdgqrZQavedJaAHDgl06S4LOHNtVk7XgTGgsX+HX32EBAgA= 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: drivers: dio: fix possible memory leak in dio_init() If device_register() returns error, the 'dev' and name needs be freed. Add a release function, and then call put_device() in the error path, so the name is freed in kobject_cleanup() and to the 'dev' is freed in release function. The Linux kernel CVE team has assigned CVE-2022-50848 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.29 with commit 2e4c77bea3d8b17d94f8ee382411f359b708560f and fixed in 4.9.337 with commit affe3cea6b3148fa66796a48640664822ceccd48 Issue introduced in 2.6.29 with commit 2e4c77bea3d8b17d94f8ee382411f359b708560f and fixed in 4.14.303 with commit 4b68caa95064ac464f1b261d08ac677e753d1088 Issue introduced in 2.6.29 with commit 2e4c77bea3d8b17d94f8ee382411f359b708560f and fixed in 4.19.270 with commit a524e7fed696a4dfef671e0fda3511bfd2dca0cf Issue introduced in 2.6.29 with commit 2e4c77bea3d8b17d94f8ee382411f359b708560f and fixed in 5.4.229 with commit da64e01da40c6b71a54144126da53cc3b27201ac Issue introduced in 2.6.29 with commit 2e4c77bea3d8b17d94f8ee382411f359b708560f and fixed in 5.10.163 with commit fce9890e1be4c0460dad850cc8c00414a9d25f0f Issue introduced in 2.6.29 with commit 2e4c77bea3d8b17d94f8ee382411f359b708560f and fixed in 5.15.86 with commit a0ead7e8da84f4c3759417b8e928b65e0207c646 Issue introduced in 2.6.29 with commit 2e4c77bea3d8b17d94f8ee382411f359b708560f and fixed in 6.0.16 with commit 8e002b9fe831b27d4506df6fa60cb33ba0730ac3 Issue introduced in 2.6.29 with commit 2e4c77bea3d8b17d94f8ee382411f359b708560f and fixed in 6.1.2 with commit 78fddc0ff971f9874d53c854818cc4aafa144114 Issue introduced in 2.6.29 with commit 2e4c77bea3d8b17d94f8ee382411f359b708560f and fixed in 6.2 with commit e63e99397b2613d50a5f4f02ed07307e67a190f1 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-50848 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/dio/dio.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/affe3cea6b3148fa66796a48640664822ceccd48 https://git.kernel.org/stable/c/4b68caa95064ac464f1b261d08ac677e753d1088 https://git.kernel.org/stable/c/a524e7fed696a4dfef671e0fda3511bfd2dca0cf https://git.kernel.org/stable/c/da64e01da40c6b71a54144126da53cc3b27201ac https://git.kernel.org/stable/c/fce9890e1be4c0460dad850cc8c00414a9d25f0f https://git.kernel.org/stable/c/a0ead7e8da84f4c3759417b8e928b65e0207c646 https://git.kernel.org/stable/c/8e002b9fe831b27d4506df6fa60cb33ba0730ac3 https://git.kernel.org/stable/c/78fddc0ff971f9874d53c854818cc4aafa144114 https://git.kernel.org/stable/c/e63e99397b2613d50a5f4f02ed07307e67a190f1