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 A6F251C1F22 for ; Fri, 2 May 2025 16:00:14 +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=1746201614; cv=none; b=VRDHMT87f27CGSTjr3FutVZ7fzXMOOpEHYAzHYzhR8X3CJGkHVhiIKN34FBr4NiZRG3l6zMd2Qk85ZexJJcnXz7eCKN/OvkaQ1PIRgED4Sc5MZDr06am5TZ1/tkMwZ5mHEL90LDDVa2VTV4wSjgF9ZrmXKK3p8L9UoAZudv+ir8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746201614; c=relaxed/simple; bh=tNnaNtZCKf7WR/sFaDQrDknk/71HGLHXypIyDi42ALA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=O6Iz1CnoBbOywB4m+SRe3k+VGApOv+rtK+7S7K+Wu49FmxCe6f4HU99zZgSkuZ+TTK0Z1OVukSwlrIaZyeeIx4wrKpd55U5QW99ZA2V0Xp6kWm3AvsD1xj/oP8pGWUTZ1oyGiyexOJS7Gywo1W/G2tX0reZmjni8KEfi+LSKD60= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CYFmWVyH; 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="CYFmWVyH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A0B1C4CEE4; Fri, 2 May 2025 16:00:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746201614; bh=tNnaNtZCKf7WR/sFaDQrDknk/71HGLHXypIyDi42ALA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=CYFmWVyH91fr9nw2fAIDkFlxJ9jjFKAG3gfMoxd9gpi5EtVnnzpgQX2Sy8BomwmZy y93VUfsYgXPkYUy/uy7+ZaPdfCZhJa2Cft3lhSfC7iEtskJxdKTXDq1aYkckzvukUf Q00QasjUXIOEQeLTMPwdBJIuhOCfykajRt9wAXXA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53084: drm/shmem-helper: Remove another errant put in error path Date: Fri, 2 May 2025 17:55:49 +0200 Message-ID: <2025050218-CVE-2023-53084-b380@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=2713; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RyydV9Y3jJd4k6dUccWam/RDXpt1MlxRN/gYGt8YK5E=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkir5658jxWjwguUFrnPUVQZ8avV1erDnyYcu3lzccbF 938zGU+vSOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAm8u8Xw/w4ry4u3XvRlpIn HxUEfbGbzfun9SDDghMCBn4H1DpWPWFpm7F70bL2S43KXQA= 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/shmem-helper: Remove another errant put in error path drm_gem_shmem_mmap() doesn't own reference in error code path, resulting in the dma-buf shmem GEM object getting prematurely freed leading to a later use-after-free. The Linux kernel CVE team has assigned CVE-2023-53084 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit f49a51bfdc8ea717c97ccd4cc98b7e6daaa5553a and fixed in 5.10.176 with commit 684c7372bbd6447c2e86a2a84e97a1478604d21f Issue introduced in 5.10 with commit f49a51bfdc8ea717c97ccd4cc98b7e6daaa5553a and fixed in 5.15.104 with commit 5cfb617967b05f8f27e862c97db1fabd8485f4db Issue introduced in 5.10 with commit f49a51bfdc8ea717c97ccd4cc98b7e6daaa5553a and fixed in 6.1.21 with commit dede8c14a37a7ac458f9add56154a074ed78e7cf Issue introduced in 5.10 with commit f49a51bfdc8ea717c97ccd4cc98b7e6daaa5553a and fixed in 6.2.8 with commit 77d26c824aa5a7e0681ef1d5b75fe538d746addc Issue introduced in 5.10 with commit f49a51bfdc8ea717c97ccd4cc98b7e6daaa5553a and fixed in 6.3 with commit ee9adb7a45516cfa536ca92253d7ae59d56db9e4 Issue introduced in 5.9.5 with commit 4655afcf0e3874af03afff8c8704b52350bdba47 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-2023-53084 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/684c7372bbd6447c2e86a2a84e97a1478604d21f https://git.kernel.org/stable/c/5cfb617967b05f8f27e862c97db1fabd8485f4db https://git.kernel.org/stable/c/dede8c14a37a7ac458f9add56154a074ed78e7cf https://git.kernel.org/stable/c/77d26c824aa5a7e0681ef1d5b75fe538d746addc https://git.kernel.org/stable/c/ee9adb7a45516cfa536ca92253d7ae59d56db9e4