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 723432747B for ; Thu, 27 Mar 2025 16:44:05 +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=1743093845; cv=none; b=UZ7gEWFVFz5TuOs2KsSN3c8TUPXoMF7P/vufoCj+6X0qbNZTq9hZS8YyJexKnbCiQa8Anjj2v2x+sCbvPybCy7ANwSM0KspBybxH9t22UcNaQYTk2v9G+MA9robBBgYOaaWO/lykcgBvZNocUWJiJRBa6ZAT1wj8mRtPS8JZfoQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743093845; c=relaxed/simple; bh=GNk3YJ/Ejl/K0bsKipvo9VemrQ5968UL1NMUmAsXbcY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eb7x3fiZAwMHXn+ZG/Q5wb45FWrMZC5r/qC3XQlXbpYjLmmC05+UkjBLU3mwkrusCv09A7ICQqgysVG+er2/rbmmmNLrRLCbVz4/NjdiQKX9qZYj1kwMUg2BMckz7RY+kcc++5VlRDXPEocZTrAaLPaepVXXxpL68IUcDJ0jEPM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=z4Ld8BxY; 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="z4Ld8BxY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5232C4CEDD; Thu, 27 Mar 2025 16:44:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743093845; bh=GNk3YJ/Ejl/K0bsKipvo9VemrQ5968UL1NMUmAsXbcY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=z4Ld8BxY+RAs0Z0RSW0fwlUB0lrkKol5bRkoOawQCsLzZ5kMvaJkJ8ANxLbC9O7Cn g70HThfSDwJIDMUvlVN0GlaYJDom6pxCOFxpTlBw1RmpuFNeh4wNeMCsZpzEE9xm/j HcSTZD4bphEyKSej0gZniwQN2IWbX6ltIb8hC1HU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49758: reset: uniphier-glue: Fix possible null-ptr-deref Date: Thu, 27 Mar 2025 17:43:16 +0100 Message-ID: <2025032702-CVE-2022-49758-10e5@gregkh> X-Mailer: git-send-email 2.49.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=2098; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GNk3YJ/Ejl/K0bsKipvo9VemrQ5968UL1NMUmAsXbcY=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlPG8ReHFb4EJDnazO3d7q77PwFb8IsQ4rrmAJNV/PI9 F1Lfd3REcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABP5NpVhfuoc42azd2uesby3 sI6et3VTR124OcMcrk2Xg+R3aDPWPTYLmspiwxJbqPsAAA== 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: reset: uniphier-glue: Fix possible null-ptr-deref It will cause null-ptr-deref when resource_size(res) invoked, if platform_get_resource() returns NULL. The Linux kernel CVE team has assigned CVE-2022-49758 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19 with commit 499fef09a3237497906084da3eede0185fc9abb8 and fixed in 5.15.91 with commit 95de286200b2a046da01c4aeba02ae9220d68ca4 Issue introduced in 4.19 with commit 499fef09a3237497906084da3eede0185fc9abb8 and fixed in 6.1.9 with commit 633bad3dc81ce2aa561f704ec091e49eb647bd0b Issue introduced in 4.19 with commit 499fef09a3237497906084da3eede0185fc9abb8 and fixed in 6.2 with commit 3a2390c6777e3f6662980c6cfc25cafe9e4fef98 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-49758 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/reset/reset-uniphier-glue.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/95de286200b2a046da01c4aeba02ae9220d68ca4 https://git.kernel.org/stable/c/633bad3dc81ce2aa561f704ec091e49eb647bd0b https://git.kernel.org/stable/c/3a2390c6777e3f6662980c6cfc25cafe9e4fef98