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 D4C9F4642A for ; Wed, 1 May 2024 05:24: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=1714541040; cv=none; b=ff+TRlZGryXnpA8jdwMdtvNCDo9/nZwpJHnjBqSnBuzElJ6oaNkEzs4cMCQWKxlL6dGNcpJtZU3J58Ugb83+xWNdpTUoWZ5RVXcf8li4ZxKVxSiLh5sxwy5vRdq9xG/Hnzb6tAKcKvu/iJsGswo8a3ucWBYvp1KLtlNQiA0kMfI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714541040; c=relaxed/simple; bh=3AzyrEqX6NKiQ4Z+2R2Hx+ouFfXpAX9zE/zpFhYrSzQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZbXWlEhpUcoysBsk0qtyqK5Zw4cYqHNU+bFNxxgBnKdkDyDnVvpcXaRGGFf8pbYly4CDeJBAPpLVpYk4bklwMvBjBdxNZXe6JDfUirn80hHLhV1xRWf5eks7/F9vGQEu0PVRUK7fEi+x6Krt8YCHmzXBc9Hh1LyWsrdE8rX++Uk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XF3tWkWA; 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="XF3tWkWA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5CEBFC113CC; Wed, 1 May 2024 05:24:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714541040; bh=3AzyrEqX6NKiQ4Z+2R2Hx+ouFfXpAX9zE/zpFhYrSzQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=XF3tWkWAA1VN7ZO7jP11eKEQvCjXaRUWywWu2KEzrtS3Z5NHXhbuJuRwIbMB2kjVC U2POXILs3rP/gQC4GsaPh+m5EK2bs3c1ur7JVCikPCKLWEb5D3wJd8CQkv2YyOjE6U faCaTVcm+f+YDdUA9NmCme0sGczy8Oejkpp0+cMQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26979: drm/vmwgfx: Fix possible null pointer derefence with invalid contexts Date: Wed, 1 May 2024 07:22:09 +0200 Message-ID: <2024050134-CVE-2024-26979-43e8@gregkh> X-Mailer: git-send-email 2.44.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=3122; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3AzyrEqX6NKiQ4Z+2R2Hx+ouFfXpAX9zE/zpFhYrSzQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmGF+PSJrz8f6/hQMLJJObg7m+Tjs68orJtdlSGoNtyg Rr1azeUO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi9mYMC5YYvXCwV9/qEPGv 7viUrt7nZn37XjAs2BrT8o9rTz5bQvnMl5k7AzPYFntOBQA= 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/vmwgfx: Fix possible null pointer derefence with invalid contexts vmw_context_cotable can return either an error or a null pointer and its usage sometimes went unchecked. Subsequent code would then try to access either a null pointer or an error value. The invalid dereferences were only possible with malformed userspace apps which never properly initialized the rendering contexts. Check the results of vmw_context_cotable to fix the invalid derefs. Thanks: ziming zhang(@ezrak1e) from Ant Group Light-Year Security Lab who was the first person to discover it. Niels De Graef who reported it and helped to track down the poc. The Linux kernel CVE team has assigned CVE-2024-26979 to this issue. Affected and fixed versions =========================== Issue introduced in 4.20 with commit 9c079b8ce8bf and fixed in 5.10.215 with commit c560327d900b Issue introduced in 4.20 with commit 9c079b8ce8bf and fixed in 5.15.154 with commit 899e154f9546 Issue introduced in 4.20 with commit 9c079b8ce8bf and fixed in 6.1.84 with commit 07c3fe923ff7 Issue introduced in 4.20 with commit 9c079b8ce8bf and fixed in 6.6.24 with commit ff41e0d4f3fa Issue introduced in 4.20 with commit 9c079b8ce8bf and fixed in 6.7.12 with commit 9cb3755b1e36 Issue introduced in 4.20 with commit 9c079b8ce8bf and fixed in 6.8.3 with commit 585fec7361e7 Issue introduced in 4.20 with commit 9c079b8ce8bf and fixed in 6.9-rc1 with commit 517621b70600 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-2024-26979 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/vmwgfx/vmwgfx_execbuf.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/c560327d900bab968c2e1b4cd7fa2d46cd429e3d https://git.kernel.org/stable/c/899e154f9546fcae18065d74064889d08fff62c2 https://git.kernel.org/stable/c/07c3fe923ff7eccf684fb4f8c953d0a7cc8ded73 https://git.kernel.org/stable/c/ff41e0d4f3fa10d7cdd7d40f8026bea9fcc8b000 https://git.kernel.org/stable/c/9cb3755b1e3680b720b74dbedfac889e904605c7 https://git.kernel.org/stable/c/585fec7361e7850bead21fada49a7fcde2f2e791 https://git.kernel.org/stable/c/517621b7060096e48e42f545fa6646fc00252eac