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 5610E2E370E for ; Tue, 7 Oct 2025 15:21:29 +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=1759850490; cv=none; b=rEXCH30q6IvEEcHQh6eDxDa7W2m3EwRyfXzrGQY5lsETuxZ+GNbc9UEYYsXNZaYUf2LT6+dgz4R6aFN/T9Fq1MZ2JcVPwiTiIL/YBwHjUdhf+UDkcOtA7b0oYcjmnlc7Vezcoj/AlcZ+ZTdQuyZcG5x05ly/ScH64LecAHRLpBE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850490; c=relaxed/simple; bh=XvnmuCGYvRbJikbCd1nreX/AwjitwmDIq0SukpZaXJQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Tu0Bi9kgeHH3/F4INLhmvHD3qBYDqMv7RIJR0418bPMSbXcC2iEiVau9faNJBo4jjji8mrXWltRtoY6AM0V7xQr6BNdg59SeJVlB1PfSEHkgasmWD364V3L2idtfrI7coXbCYYO13w6RKChMfMSxqJnmhOSxlYP9ZXIpyZs/2gE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZX2X5H+a; 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="ZX2X5H+a" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6E57EC4CEF1; Tue, 7 Oct 2025 15:21:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850489; bh=XvnmuCGYvRbJikbCd1nreX/AwjitwmDIq0SukpZaXJQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ZX2X5H+ad/Sk4R5TqukV3bnjDFiO9UmF3lunuP5SMg8SfPuWNzift+DiT/PexzRPM s1SEwKfwYMCndS8hNZsf+o3upzkuJXDm+fUdBNQZIeSmhlqSIMp+9WyseSStIiEr+E JQ2Plu2A+m/4N5LBEJhQkblAn3MoRnmfFebKF194= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50522: mcb: mcb-parse: fix error handing in chameleon_parse_gdd() Date: Tue, 7 Oct 2025 17:19:09 +0200 Message-ID: <2025100704-CVE-2022-50522-fb63@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=3609; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=I6y087tkEYVcLTHBeJWUBxGxrQIEfjaj+vp9KvM4jws=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlP9TNXBS5cVus1wbEo5IbVLae17ZM664+n71a7pihTu 2ZW1v76jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIF2OGufJNTi3PGbaGRj++ uvedLkuq08arOxnm6enr9IfG+v2X0he+zj75sGV/R3cpAA== 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: mcb: mcb-parse: fix error handing in chameleon_parse_gdd() If mcb_device_register() returns error in chameleon_parse_gdd(), the refcount of bus and device name are leaked. Fix this by calling put_device() to give up the reference, so they can be released in mcb_release_dev() and kobject_cleanup(). The Linux kernel CVE team has assigned CVE-2022-50522 to this issue. Affected and fixed versions =========================== Issue introduced in 3.15 with commit 3764e82e5150d87b205c10cd78a9c9ab86fbfa51 and fixed in 4.9.337 with commit 891f606ae0765bc9ca99f5276735be4d338f0255 Issue introduced in 3.15 with commit 3764e82e5150d87b205c10cd78a9c9ab86fbfa51 and fixed in 4.14.303 with commit cf6e70c0ced50b52415ac0c88eba1fb09c500a5a Issue introduced in 3.15 with commit 3764e82e5150d87b205c10cd78a9c9ab86fbfa51 and fixed in 4.19.270 with commit fd85ece416fd7edb945203e59d4cd94952f77e7c Issue introduced in 3.15 with commit 3764e82e5150d87b205c10cd78a9c9ab86fbfa51 and fixed in 5.4.229 with commit 110dc34c9fa33d37f55b394b1199ea6c0ad1ee84 Issue introduced in 3.15 with commit 3764e82e5150d87b205c10cd78a9c9ab86fbfa51 and fixed in 5.10.163 with commit 7b289b791a59386dc23a00d3cf17a0db984b40d3 Issue introduced in 3.15 with commit 3764e82e5150d87b205c10cd78a9c9ab86fbfa51 and fixed in 5.15.86 with commit 43bfc7c2402a22d3b4eb08c040f274ba2b76461a Issue introduced in 3.15 with commit 3764e82e5150d87b205c10cd78a9c9ab86fbfa51 and fixed in 6.0.16 with commit b948baa29394ec5f4e6ec28486e7d06a76caee91 Issue introduced in 3.15 with commit 3764e82e5150d87b205c10cd78a9c9ab86fbfa51 and fixed in 6.1.2 with commit 4a9f1a8b3af287581ffb690d0e1593c681729ddb Issue introduced in 3.15 with commit 3764e82e5150d87b205c10cd78a9c9ab86fbfa51 and fixed in 6.2 with commit 728ac3389296caf68638628c987aeae6c8851e2d 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-50522 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/mcb/mcb-parse.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/891f606ae0765bc9ca99f5276735be4d338f0255 https://git.kernel.org/stable/c/cf6e70c0ced50b52415ac0c88eba1fb09c500a5a https://git.kernel.org/stable/c/fd85ece416fd7edb945203e59d4cd94952f77e7c https://git.kernel.org/stable/c/110dc34c9fa33d37f55b394b1199ea6c0ad1ee84 https://git.kernel.org/stable/c/7b289b791a59386dc23a00d3cf17a0db984b40d3 https://git.kernel.org/stable/c/43bfc7c2402a22d3b4eb08c040f274ba2b76461a https://git.kernel.org/stable/c/b948baa29394ec5f4e6ec28486e7d06a76caee91 https://git.kernel.org/stable/c/4a9f1a8b3af287581ffb690d0e1593c681729ddb https://git.kernel.org/stable/c/728ac3389296caf68638628c987aeae6c8851e2d