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 9AC772F12D1 for ; Tue, 30 Dec 2025 12:37:43 +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=1767098263; cv=none; b=kcE/UjvoKiOIio6MhOAdz/UHCq6xIoJSVc0bMgXxXLHl6cTwtARIg33VLT8zD+N07DRkaENQXmqoBOCDX6ioEaufbqbWIdRhC2nzb08SvcWa6coG6HTq6+94PRAzZV02l7ihqcm/MBySbYFmMwNhG6ydbi/HG41+iDqsisYmSPs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767098263; c=relaxed/simple; bh=O/g6DvmW1PRGmihzg/uFO/tNqGPXAJElN0SrbGIeoww=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QyxOYHiJuZJKAmI649l15L1GVeVDsBrcaWbjWBQE6Q3o8jtwknBkLODlQC5E/3kYOg0SlwoOxVgYMtKybJwrxOzdDgHmzVOsEgFzMF4J2VbTrdeCZ9yGJqHDdSfTlb1bAUVYID5KBaCkr5XEVzs1qaSycdj0BBgAwMznY/yDPtA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pRaIIoA0; 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="pRaIIoA0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2FBDC113D0; Tue, 30 Dec 2025 12:37:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767098263; bh=O/g6DvmW1PRGmihzg/uFO/tNqGPXAJElN0SrbGIeoww=; h=From:To:Cc:Subject:Date:Reply-To:From; b=pRaIIoA0xcUHbhfJc0TTM3OMzokqFif3hSs4EkCpv+L4WzeI8koJl4GUCyBUw/htS ogEMmy7kTfR8P+bmDCO4q+InJhIQaf/2cTtxJjNk/8S2hfTXg/HMzLyKq31uOo7x8X S9VO9NPjrKnOP7V7kYjiA97dtYqShMdql2ADpKjM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50888: remoteproc: qcom: q6v5: Fix potential null-ptr-deref in q6v5_wcss_init_mmio() Date: Tue, 30 Dec 2025 13:37:16 +0100 Message-ID: <2025123015-CVE-2022-50888-5614@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=2508; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=y2lJbJEqlm7iDOFhpNxwvhStOfDxBg3qs5oiXi+dpjM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBx6sN9D4pPlo1L+LXxgkH3vL8Z5nCbP/hUUfN6e7sG 7V1YleEO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAim50Y5tc8Di22zRHnmLr0 wIn7yx6x/Vzmy8swV4Z7wSvGo6wPeVy8/1y15jo148STBQA= 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: remoteproc: qcom: q6v5: Fix potential null-ptr-deref in q6v5_wcss_init_mmio() q6v5_wcss_init_mmio() will call platform_get_resource_byname() that may fail and return NULL. devm_ioremap() will use res->start as input, which may causes null-ptr-deref. Check the ret value of platform_get_resource_byname() to avoid the null-ptr-deref. The Linux kernel CVE team has assigned CVE-2022-50888 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit 0af65b9b915e52019aee91db3e1f8b39a7ec8d08 and fixed in 5.15.86 with commit 098ebb9089c4eedea09333f912d105fa63377496 Issue introduced in 5.13 with commit 0af65b9b915e52019aee91db3e1f8b39a7ec8d08 and fixed in 6.0.16 with commit 3afa88ae9911b65702a3aca9d92ea23fe496e56f Issue introduced in 5.13 with commit 0af65b9b915e52019aee91db3e1f8b39a7ec8d08 and fixed in 6.1.2 with commit 0903a87490a9ed456ac765a84dcc484c1ee42c32 Issue introduced in 5.13 with commit 0af65b9b915e52019aee91db3e1f8b39a7ec8d08 and fixed in 6.2 with commit f360e2b275efbb745ba0af8b47d9ef44221be586 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-50888 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/remoteproc/qcom_q6v5_wcss.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/098ebb9089c4eedea09333f912d105fa63377496 https://git.kernel.org/stable/c/3afa88ae9911b65702a3aca9d92ea23fe496e56f https://git.kernel.org/stable/c/0903a87490a9ed456ac765a84dcc484c1ee42c32 https://git.kernel.org/stable/c/f360e2b275efbb745ba0af8b47d9ef44221be586