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 E984E2E6CAB for ; Tue, 9 Dec 2025 01:31:19 +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=1765243881; cv=none; b=aTLhqtp6LqFTJCK0FS92zQtPKNot9AykDMvuZjSj5ZvuTeny6Kp/6b6OH6HIt/CKkVYlJ5WM6I0Nvgw/V/e8XOSpg40qOdm3uti7dFUYteyYkVyPNb27vCEXbpvYiB0UR+N6l6F97MXoJE4OSxsnFhgEhm72ziowEEVkzuRKkK0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765243881; c=relaxed/simple; bh=5mi6qhHYtyTDUKTQTuC6nEYQ0Lhy6tLfWITy8kI9HM8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=esLAperlFrPwXnBbZcaV4zbwlDON/2EfAH9hiuwzj3IhQ0bNqi3vLjzAGR7wmaNL/0G5qmpRiSyjkr2YW4k0US0CV76l84qMcnzcWzupHrOo5/Y7iC0JKZUypIdH4kF3KvznzU9cyv6rSxVOs/8eHK/yyhc8b5I6LQUkiCV+A7Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=U1+ElCRL; 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="U1+ElCRL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28C2AC4CEF1; Tue, 9 Dec 2025 01:31:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765243879; bh=5mi6qhHYtyTDUKTQTuC6nEYQ0Lhy6tLfWITy8kI9HM8=; h=From:To:Cc:Subject:Date:Reply-To:From; b=U1+ElCRLpyHsJooT1WUMiuLGPqtrgn6T2AuJUIHSZppvzTeYKUAuLK45r6Ga0QGDL 1jXVKTPlB7ftrxfKSB5tU2iOddhHk78v/CCY68Qh80fU9AC9cGPMwK0IIznAWcnxAm vUWCm9f5F5FHOrUn2rOPZhHNn0f+uv1NwTUYVhE0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50667: drm/vmwgfx: Fix memory leak in vmw_mksstat_add_ioctl() Date: Tue, 9 Dec 2025 10:30:52 +0900 Message-ID: <2025120945-CVE-2022-50667-01f6@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=2402; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mdvZwLNshpjA8HBb4EHsFo4gyIvC012Ro8hdUYpywQE=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnm1UdvT7/uLPrSXc2te4litMUm4QtqU16Uz5vevP7pG e/6F2cfd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEnOsZ5pe+1/FP7OL09/12 07fd3Vfs7iZBTYb5oaf5T9ZJZN2rVjxx6UKuDAf7TcN3AA== 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/vmwgfx: Fix memory leak in vmw_mksstat_add_ioctl() If the copy of the description string from userspace fails, then the page for the instance descriptor doesn't get freed before returning -EFAULT, which leads to a memleak. The Linux kernel CVE team has assigned CVE-2022-50667 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 7a7a933edd6c3a6d5d64e08093f2d564104cefcd and fixed in 5.15.75 with commit b47a37ad4a444d82f9caf153a79d090b79786ebb Issue introduced in 5.15 with commit 7a7a933edd6c3a6d5d64e08093f2d564104cefcd and fixed in 5.19.17 with commit 6ad40bbb2c25f17b899fcea114ebc0a46d8a938b Issue introduced in 5.15 with commit 7a7a933edd6c3a6d5d64e08093f2d564104cefcd and fixed in 6.0.3 with commit 53066b144715332ce9370143c33c50d9a4d3e809 Issue introduced in 5.15 with commit 7a7a933edd6c3a6d5d64e08093f2d564104cefcd and fixed in 6.1 with commit a40c7f61d12fbd1e785e59140b9efd57127c0c33 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-50667 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_msg.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/b47a37ad4a444d82f9caf153a79d090b79786ebb https://git.kernel.org/stable/c/6ad40bbb2c25f17b899fcea114ebc0a46d8a938b https://git.kernel.org/stable/c/53066b144715332ce9370143c33c50d9a4d3e809 https://git.kernel.org/stable/c/a40c7f61d12fbd1e785e59140b9efd57127c0c33