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 8FB0329CB24 for ; Tue, 30 Dec 2025 12:22:00 +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=1767097321; cv=none; b=sboLIbM9o6MKLKbNmpcYJoEwf2jjSMWQzqTM8X6RpWut3PdHK8S8JMd2br6Lm0iYkd4W1Nnfpb47cUAjNa15AFisIzbEYkOAGqPfa/N5brC12eitdLgCnxpC/jjQoSfjgyN+gGkkdaxJPMdGKtVzBlJvUMXfZwVGUsT8sDgkr8U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767097321; c=relaxed/simple; bh=fdhEhSoCNwKyw2fyigzcfqThGR6mCybbMenfHqp68VA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Z/UTVqJqLwf1YGn5G+VgwnOkDz+I4BfVBMQpTlxQxU5lSb9i+5wDOILwEkFoskNpiW8WtVnLYCBrqm5OM7w6hFWhp9LZpS8nuJYHgzZTm8h/S80l7mSdNIopvocTk6gYUoyjP8za2mfT+MVFQX4hEgCaYHg/U+X2mggls33RpEo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=taNjJV6t; 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="taNjJV6t" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D420FC4CEFB; Tue, 30 Dec 2025 12:21:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767097320; bh=fdhEhSoCNwKyw2fyigzcfqThGR6mCybbMenfHqp68VA=; h=From:To:Cc:Subject:Date:Reply-To:From; b=taNjJV6tK+lzAHt6POCT4ZrR7PAmDhc30m54dr1QFbLsC53hF3aYOT8+gyAnIEZLA fla2FWBJHy9PSE3fdChJw9hb+PpQRsMF1ckah5HyC6v3qVcF9Qj308nYGvviri6cVq Z9RaSjY3XhksmA/r5Eqo17qHB1sv8bIlE6eoiDso= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50867: drm/msm/a6xx: Replace kcalloc() with kvzalloc() Date: Tue, 30 Dec 2025 13:20:03 +0100 Message-ID: <2025123050-CVE-2022-50867-cf19@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=2057; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=I9ZHkbPLKfic0wSuZ27s4FfaQBZ/IWeOD7Y/UfQ5/F4=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBh9NWe0nz8MaLGt39kdbc+jl5SUtIivVR51br+4Ynv TP36y7qiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIl8WMcwP30fT3dKbppti/ey 5RM3Hj89+fhELYYFmw58qgjKm6cY6SmT/vQCq1BsusZyAA== 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: drm/msm/a6xx: Replace kcalloc() with kvzalloc() In order to reduce chance of allocation failure while capturing a6xx gpu state, use kvzalloc() instead of kcalloc() in state_kcalloc(). Indirectly, this patch helps to fix leaking memory allocated for gmu_debug object. Patchwork: https://patchwork.freedesktop.org/patch/505074/ The Linux kernel CVE team has assigned CVE-2022-50867 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit b859f9b009bbfbc236d9b076c64c59ccb41b8737 and fixed in 6.0.7 with commit ecd63b2fbabc8fd6e5355c25fe1e186a74fa5272 Issue introduced in 5.17 with commit b859f9b009bbfbc236d9b076c64c59ccb41b8737 and fixed in 6.1 with commit ec8f1813bf8d0737898f99a8c1c69df0cde0d7dd 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-50867 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/gpu/drm/msm/adreno/a6xx_gpu_state.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/ecd63b2fbabc8fd6e5355c25fe1e186a74fa5272 https://git.kernel.org/stable/c/ec8f1813bf8d0737898f99a8c1c69df0cde0d7dd