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 CFA2219D081 for ; Wed, 26 Feb 2025 01:58:17 +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=1740535097; cv=none; b=f2jBkMcwZicGpqBOJbycNuLR87SrcIy02zSwwc5dEguvYdyfMd/31us1LkUpvxXpYeK1kNZY5le2aSnMYs8YnBHb5p9UOAXQ4YmoCLOkpDbX6ZQn5glX+9+PU4a/twybvM4HXGbtkixnXyFQJOWq9VJH9OoE8uiFhhIEY00WrXU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535097; c=relaxed/simple; bh=cyWr/Fx5Q9ajblc24nL45NtYhTxTAvB+uoirXBn+5xU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XzCdKu+rCxvrRsMLb+P9dcoF4mhUmdoMY35kADLqeoKogMy3aYzLQs+k7NvSbCjbE0ggw/mafKXX1fgsl5xMEFVZaew9qgIQYZ81HnZyg7uFxsLvaeiuaMFolihYODbHCDpkTj8d7QW0u1kctqw1B3HBfQtx8rvGn2om9jtSRW0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UFq/ixCK; 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="UFq/ixCK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5102C4CEDD; Wed, 26 Feb 2025 01:58:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535097; bh=cyWr/Fx5Q9ajblc24nL45NtYhTxTAvB+uoirXBn+5xU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=UFq/ixCKi15IpmNERcyz5EFff+uxQPsUynALPA7sWyQ4gmb9FtTNBUnpWjSa8iqsR LZfhiMFDGwiefjWXK2Ao7Jr05IAfOQJ9//gCBl02oQEs5vS/sUZ2AOZsXLxNcKVIUJ wb0OfKgoy8pvHsso9/r9ZOFdP2Fk1ebcCbZu7iDs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49104: staging: vchiq_core: handle NULL result of find_service_by_handle Date: Wed, 26 Feb 2025 02:55:09 +0100 Message-ID: <2025022601-CVE-2022-49104-818d@gregkh> X-Mailer: git-send-email 2.48.1 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=2227; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cyWr/Fx5Q9ajblc24nL45NtYhTxTAvB+uoirXBn+5xU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7Siy/rpQ2XfSxzCyp9Gzxhq/TbLlmMB7f07oldYEzj 6vvvz0HO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAioc8ZFly7W1sQk86a+ivL 5ruPX9GqAq+6kwwLuk7Xz5g5x0eH8zJPexhDnPAXNv2tAA== 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: staging: vchiq_core: handle NULL result of find_service_by_handle In case of an invalid handle the function find_servive_by_handle returns NULL. So take care of this and avoid a NULL pointer dereference. The Linux kernel CVE team has assigned CVE-2022-49104 to this issue. Affected and fixed versions =========================== Fixed in 5.10.111 with commit aa0b7296785312a4bfa8fac0ba8ad78698fd9fcf Fixed in 5.15.34 with commit 42f2142a337ee372455574809fc924580a7e51b2 Fixed in 5.16.20 with commit 04202f54dd8899e10f56a89c4c1ede0043fa22af Fixed in 5.17.3 with commit 3b424f6586a870b8d657c5e5419465bbe0e7b61f Fixed in 5.18 with commit ca225857faf237234d2fffe5d1919467dfadd822 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-49104 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/staging/vc04_services/interface/vchiq_arm/vchiq_core.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/aa0b7296785312a4bfa8fac0ba8ad78698fd9fcf https://git.kernel.org/stable/c/42f2142a337ee372455574809fc924580a7e51b2 https://git.kernel.org/stable/c/04202f54dd8899e10f56a89c4c1ede0043fa22af https://git.kernel.org/stable/c/3b424f6586a870b8d657c5e5419465bbe0e7b61f https://git.kernel.org/stable/c/ca225857faf237234d2fffe5d1919467dfadd822