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 034411F12E3 for ; Mon, 21 Oct 2024 20:11:36 +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=1729541496; cv=none; b=ZOAl46wiUl3ZRbdTwkABFgOYkUx1U0vZqGIRHpGTr8O26RB8uGAqk+zQGjLaPjgHKAy8F/BGmqAIu3RrF2stkdYqQ0NwigG82Vf9Em06UrPYAwd1nj/n6roiWKqSw2ZxSajtxRCFElgaC4TtsOnOJ3duA1NLn////Vcn9ouriJQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729541496; c=relaxed/simple; bh=/qhSZkaPQ1kz9RfmlUbSBZ97ubyIuAOIM2+UcyaD77s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GWTRD0lQU4HNYNpd5y3f/3yXsPeXfej5LQUGGeD6FCBmgRVlTfcMlVHYQj4qO6dJuFIu8SVqw/nAgGa2h13Cvh2jRvhlpWXxhR9Vs+uvljQ8fuFGOBeehUHYTo1NsRt32rbJrAoJkgPc3mKF80uM2JpQAWi8u+arICLu4Xoy03o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oHSpdg5f; 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="oHSpdg5f" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D195C4CEC3; Mon, 21 Oct 2024 20:11:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729541495; bh=/qhSZkaPQ1kz9RfmlUbSBZ97ubyIuAOIM2+UcyaD77s=; h=From:To:Cc:Subject:Date:Reply-to:From; b=oHSpdg5fuwwGUOCbiIolUu3N2bUo595+OJn1qCemGg0xKz1kLyuHRa69/oHEmEKnn Dqm0fOjPeUdYHF1E9FFYpcEvvHzMKBOvNROao2q1Kmy1buOyvOIxFOXmPEzdT413PB PDayAOLE71tKkkU8bP6p+YQ8eAg/9y35vTlI39kc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48981: drm/shmem-helper: Remove errant put in error path Date: Mon, 21 Oct 2024 22:06:13 +0200 Message-ID: <2024102146-CVE-2022-48981-a877@gregkh> X-Mailer: git-send-email 2.47.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=2311; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/qhSZkaPQ1kz9RfmlUbSBZ97ubyIuAOIM2+UcyaD77s=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliW6Rsg52Ywr5yZJtnye5T6WNP7pVx/mbr/MTwwa+J9 d+zT8l3xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwEROrGKYn8m/LpCRd4XBlhMP 362V5L3V3cl1jmHB3vLlP9J/Gfgpy+3bNlF2TpvW51I/AA== 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: drm/shmem-helper: Remove errant put in error path drm_gem_shmem_mmap() doesn't own this reference, resulting in the GEM object getting prematurely freed leading to a later use-after-free. The Linux kernel CVE team has assigned CVE-2022-48981 to this issue. Affected and fixed versions =========================== Issue introduced in 5.2 with commit 2194a63a818d and fixed in 5.4.227 with commit 585a07b82005 Issue introduced in 5.2 with commit 2194a63a818d and fixed in 5.10.159 with commit 6a4da05acd06 Issue introduced in 5.2 with commit 2194a63a818d and fixed in 5.15.83 with commit 83e3da8bb92f Issue introduced in 5.2 with commit 2194a63a818d and fixed in 6.0.13 with commit 586847b98e20 Issue introduced in 5.2 with commit 2194a63a818d and fixed in 6.1 with commit 24013314be6e 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-48981 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/drm_gem_shmem_helper.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/585a07b820059462e0c93b76c7de2cd946b26b40 https://git.kernel.org/stable/c/6a4da05acd062ae7774b6b19cef2b7d922902d36 https://git.kernel.org/stable/c/83e3da8bb92fcfa7a1d232cf55f9e6c49bb84942 https://git.kernel.org/stable/c/586847b98e20ab02212ca5c1fc46680384e68a28 https://git.kernel.org/stable/c/24013314be6ee4ee456114a671e9fa3461323de8