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 0FD8228B7C7 for ; Wed, 18 Jun 2025 11:10:29 +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=1750245029; cv=none; b=eTfE3aXfdkfvGae/4voTjojq9W1iMeUa9PYuQ9kqg/d7PxGurNCoqp0cBhBvhRyPEANop1ntmuDOIHQcZwM7bewUBoP2a1y/QsjOVpVyX7dxdaVHWI2wDOgOK31IKwkJpWTp6iI7aGlPRB/9deboE9BwhHF0LZoShgWQnBL6DGc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245029; c=relaxed/simple; bh=9rCaBCERtozc325RUkgyGplW/4i4D4+irkid5KvLbVI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=g/7SZTlAHc01tTobitCvs5jbT/DYfiDXHtYa0djq00AnyCCStP2hgodbNTThEmV6/fZKzThdG+SpGhiRKwKYxdQ2bNkLX4/3j3mz9ahF1y9o8ipqN3/L4rdDBJaH+Nvdxt3l2+//Lr+GAvJvVWB4IxABGcb/Btut92jEbnlArXA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KINTaKcW; 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="KINTaKcW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 728F3C4CEE7; Wed, 18 Jun 2025 11:10:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245028; bh=9rCaBCERtozc325RUkgyGplW/4i4D4+irkid5KvLbVI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=KINTaKcWEjlPmV4dW/AquIvWIDdcl2U2rMzcc30UkCCJzaWlUadyiSHecdndEQ5Fz 2AV4EeIUKBAZlsUXUqbpXMO4mVwsboHdOpnHB3KU+0Oe8js1KWTpxOLiQJRMFmdSAc 4KLXtAoXFmWzSso57GJ3gvwGsm8q1uBd1L/Q+MhQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50101: video: fbdev: vt8623fb: Check the size of screen before memset_io() Date: Wed, 18 Jun 2025 13:02:46 +0200 Message-ID: <2025061804-CVE-2022-50101-9556@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=3928; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qmQYRgtaQtBCM4hJjYtH2BfDsFxgQBKvaKK70qEyLDM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBcwq+9D1UTtXK3bwjplYj42FmcqBvXb3DLzE52Uox3 6+WU890xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwER+NDMs6PgwaZKL6muGPQX6 wVNtHiQ3HNaaxbDgguqVzFVas7kSF5nMmPLC5g2X2rd+AA== 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: video: fbdev: vt8623fb: Check the size of screen before memset_io() In the function vt8623fb_set_par(), the value of 'screen_size' is calculated by the user input. If the user provides the improper value, the value of 'screen_size' may larger than 'info->screen_size', which may cause the following bug: [ 583.339036] BUG: unable to handle page fault for address: ffffc90005000000 [ 583.339049] #PF: supervisor write access in kernel mode [ 583.339052] #PF: error_code(0x0002) - not-present page [ 583.339074] RIP: 0010:memset_orig+0x33/0xb0 [ 583.339110] Call Trace: [ 583.339118] vt8623fb_set_par+0x11cd/0x21e0 [ 583.339146] fb_set_var+0x604/0xeb0 [ 583.339181] do_fb_ioctl+0x234/0x670 [ 583.339209] fb_ioctl+0xdd/0x130 Fix the this by checking the value of 'screen_size' before memset_io(). The Linux kernel CVE team has assigned CVE-2022-50101 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.22 with commit 558b7bd86c32978648cda5deb5c758d77ef0c165 and fixed in 4.14.291 with commit 73280a184aa2e1a625ce54ce761042955cc79cd0 Issue introduced in 2.6.22 with commit 558b7bd86c32978648cda5deb5c758d77ef0c165 and fixed in 4.19.256 with commit 52ad9bfeb8a0e62de30de6d39e8a49a72dd78150 Issue introduced in 2.6.22 with commit 558b7bd86c32978648cda5deb5c758d77ef0c165 and fixed in 5.4.211 with commit d71528ccdc7ae8d7500d414091d27805c51407a2 Issue introduced in 2.6.22 with commit 558b7bd86c32978648cda5deb5c758d77ef0c165 and fixed in 5.10.137 with commit bd8269e57621e5b38cc0b4bd2fa02e85c9f2a441 Issue introduced in 2.6.22 with commit 558b7bd86c32978648cda5deb5c758d77ef0c165 and fixed in 5.15.61 with commit 4a3cef1eaced13ba9b55381d46bfad937a3dac2c Issue introduced in 2.6.22 with commit 558b7bd86c32978648cda5deb5c758d77ef0c165 and fixed in 5.18.18 with commit b17caec5127bba6f90af92bcc85871df54548ac0 Issue introduced in 2.6.22 with commit 558b7bd86c32978648cda5deb5c758d77ef0c165 and fixed in 5.19.2 with commit c7a3f41e4b133d4dd25bc996b69039b19a34d69d Issue introduced in 2.6.22 with commit 558b7bd86c32978648cda5deb5c758d77ef0c165 and fixed in 6.0 with commit ec0754c60217248fa77cc9005d66b2b55200ac06 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-50101 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/video/fbdev/vt8623fb.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/73280a184aa2e1a625ce54ce761042955cc79cd0 https://git.kernel.org/stable/c/52ad9bfeb8a0e62de30de6d39e8a49a72dd78150 https://git.kernel.org/stable/c/d71528ccdc7ae8d7500d414091d27805c51407a2 https://git.kernel.org/stable/c/bd8269e57621e5b38cc0b4bd2fa02e85c9f2a441 https://git.kernel.org/stable/c/4a3cef1eaced13ba9b55381d46bfad937a3dac2c https://git.kernel.org/stable/c/b17caec5127bba6f90af92bcc85871df54548ac0 https://git.kernel.org/stable/c/c7a3f41e4b133d4dd25bc996b69039b19a34d69d https://git.kernel.org/stable/c/ec0754c60217248fa77cc9005d66b2b55200ac06