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 B33EB175AE for ; Thu, 22 Aug 2024 03:33:22 +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=1724297602; cv=none; b=RiGQA5+XvAk3JflzKbVnLgqx6ab49d5XN+bAY87ECDDq58UJmT74C4vUxRz7PR8mkUUsGXisNhqEzoZcgoyl70PFksYoMfAMSOZ+CZN4qO7aHmuy30a6LUf02s5x+42C4n+erDX6ITvnwH6dDpByx5vioFRDDs65/ZvwY8xda+c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724297602; c=relaxed/simple; bh=ZtpFSE5LAXVWnL9LhfxeSKj+NshJJPst7kw17TYbnOA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EkTa/JBLT+O6C76XmbPLbxFwX3KLQbT1S8GujDAu2qYTywJUFKaBO2rpIEhKD3g89MXWdS7KyyWhgx/FtbNHxecN8EHS3BSFjR5hYvX/W6KJg+6o18aAp2P2WwWGhB1Q7RNFHOto6QJt9HdJ9Uc0xRs4iGY1fysX1GCxvAtVkF4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xVON+iDF; 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="xVON+iDF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DDBC0C4AF09; Thu, 22 Aug 2024 03:33:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724297602; bh=ZtpFSE5LAXVWnL9LhfxeSKj+NshJJPst7kw17TYbnOA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xVON+iDFCeARn7NR3jMB5o6rdYiKpt8KUUhNc/vsxxYXIKkki+D2rSAduMu2gVNFN ZJNeOVxgUEW81GMDLby5KiXj0Xmi4qf9fseXnoSiH5tnr8tpDcLNn6jmQSIgnH7ZWj LWSIj3NadBwJZ8NERUP9ogelvrr2GURd5+no+LfU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48928: iio: adc: men_z188_adc: Fix a resource leak in an error handling path Date: Thu, 22 Aug 2024 11:31:29 +0800 Message-ID: <2024082221-CVE-2022-48928-bd61@gregkh> X-Mailer: git-send-email 2.46.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=2896; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZtpFSE5LAXVWnL9LhfxeSKj+NshJJPst7kw17TYbnOA=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnHNnL+jf+6ROmb3j/1fzYi8fp+QdqPNHdOnb2EK2yal vGGNdkqHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARsykMC0732TdU+xSozSjp smVUfquk4v1cgWHBhHjxT9qJpZ3TDZZxNPJ0/xD96loBAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: iio: adc: men_z188_adc: Fix a resource leak in an error handling path If iio_device_register() fails, a previous ioremap() is left unbalanced. Update the error handling path and add the missing iounmap() call, as already done in the remove function. The Linux kernel CVE team has assigned CVE-2022-48928 to this issue. Affected and fixed versions =========================== Issue introduced in 3.15 with commit 74aeac4da66f and fixed in 4.9.304 with commit 0f8872231364 Issue introduced in 3.15 with commit 74aeac4da66f and fixed in 4.14.269 with commit c5723b422f56 Issue introduced in 3.15 with commit 74aeac4da66f and fixed in 4.19.232 with commit 53d43a9c8dd2 Issue introduced in 3.15 with commit 74aeac4da66f and fixed in 5.4.182 with commit ce1076b33e29 Issue introduced in 3.15 with commit 74aeac4da66f and fixed in 5.10.103 with commit 1aa12ecfdcba Issue introduced in 3.15 with commit 74aeac4da66f and fixed in 5.15.26 with commit fe7347780298 Issue introduced in 3.15 with commit 74aeac4da66f and fixed in 5.16.12 with commit d6ed5426a7fa Issue introduced in 3.15 with commit 74aeac4da66f and fixed in 5.17 with commit e0a2e37f3038 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-48928 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/iio/adc/men_z188_adc.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/0f88722313645a903f4d420ba61ddc690ec2481d https://git.kernel.org/stable/c/c5723b422f564af15f2e3bc0592fd6376a0a6c45 https://git.kernel.org/stable/c/53d43a9c8dd224e66559fe86af1e473802c7130e https://git.kernel.org/stable/c/ce1076b33e299dc8d270e4450a420a18bfb3e190 https://git.kernel.org/stable/c/1aa12ecfdcbafebc218910ec47acf6262e600cf5 https://git.kernel.org/stable/c/fe73477802981bd0d0d70f2b22f109bcca801bdb https://git.kernel.org/stable/c/d6ed5426a7fad36cf928c244483ba24e72359638 https://git.kernel.org/stable/c/e0a2e37f303828d030a83f33ffe14b36cb88d563