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 DE61B2BEC3D for ; Wed, 18 Jun 2025 11:16:41 +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=1750245402; cv=none; b=nTBB3E/TRz8qxYA8FDaG04dNNNDNQNqEbzD1eQApg+xfqhQFKGx/1kiBqGTJZF9gpdsJYITdaG72P0YC+4lx7uZOeE04PhFS0JUVGUpSEvzEpZ+SgkcHawBefvZd5Z14UKoszhgRRN5uXw3XOedxLlr9zRGMzGnv4WVdsblBwH4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245402; c=relaxed/simple; bh=XGaII9/ltvRgC+lpFeiwNJow1OGHYkE1l/2aeQiHuuI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XDQrFiyq0hmKGiwu5H7DweWHGRYGq/r0GmL6b9ebAAkeqnCxyPjLmC050yh8PF5kmuFDfe8lx/qCPaJJ8PdhmuUVI5q150bdLd8XXBDv6QRo0lR39s2ZOjmEcGZyo0ZJMVwD+wkdeJo++Om7nEgGDVqxJnabkHjJ+v3hMD22OdM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AWeU6QCg; 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="AWeU6QCg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C5C1C4CEE7; Wed, 18 Jun 2025 11:16:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245401; bh=XGaII9/ltvRgC+lpFeiwNJow1OGHYkE1l/2aeQiHuuI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=AWeU6QCg1wi1Oj3Az+iWZllv4lf8Lp6kwYnWdOibmULgQIOFzGITgxCIeJ2Rglo87 ahxXgttHDZNkBYJyFCKpw2bhkhJC+maTn60PBYvHrkJ1qP1XJQTlqCZicqLAi6CXla N3ZMuYpL830UPytuHSWjGKtIZzk7DoSCWHffNdBQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50222: tty: vt: initialize unicode screen buffer Date: Wed, 18 Jun 2025 13:04:47 +0200 Message-ID: <2025061847-CVE-2022-50222-bb8e@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=2905; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=PGtw8dNK0eJ2giR+ZUaSbY3l24LLIdWMBrwWndsF7Yc=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc2YvaSgwz/vZc/T0woTNUhv/3p86XX/5ViFhZ9Ulb ae8OveUdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEvv1lmMXEorFI7vOkY60z bV5erjI1tvbbb82woP/VL44ShRjJ04Xr05K4gnXfGL90BQA= 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: tty: vt: initialize unicode screen buffer syzbot reports kernel infoleak at vcs_read() [1], for buffer can be read immediately after resize operation. Initialize buffer using kzalloc(). ---------- #include #include #include #include int main(int argc, char *argv[]) { struct fb_var_screeninfo var = { }; const int fb_fd = open("/dev/fb0", 3); ioctl(fb_fd, FBIOGET_VSCREENINFO, &var); var.yres = 0x21; ioctl(fb_fd, FBIOPUT_VSCREENINFO, &var); return read(open("/dev/vcsu", O_RDONLY), &var, sizeof(var)) == -1; } ---------- The Linux kernel CVE team has assigned CVE-2022-50222 to this issue. Affected and fixed versions =========================== Fixed in 4.19.256 with commit e02fa87e572bb7d90dcdbce9c0f519f1eb992e96 Fixed in 5.4.211 with commit cc9e874dace0c89ae535230c7da19b764746811e Fixed in 5.10.137 with commit 5c6c65681f39bf71bc72ed589dec3b8b20e75cac Fixed in 5.15.61 with commit 446f123aa6021e5f75a20789f05ff3f7ae51a42f Fixed in 5.18.18 with commit 777a462e1ae50a01fc4a871efa8e34d596a1e17d Fixed in 5.19.2 with commit e0ef23e9b0ad18b9fd3741b0f1ad2282e4a18def Fixed in 6.0 with commit af77c56aa35325daa2bc2bed5c2ebf169be61b86 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-50222 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/tty/vt/vt.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/e02fa87e572bb7d90dcdbce9c0f519f1eb992e96 https://git.kernel.org/stable/c/cc9e874dace0c89ae535230c7da19b764746811e https://git.kernel.org/stable/c/5c6c65681f39bf71bc72ed589dec3b8b20e75cac https://git.kernel.org/stable/c/446f123aa6021e5f75a20789f05ff3f7ae51a42f https://git.kernel.org/stable/c/777a462e1ae50a01fc4a871efa8e34d596a1e17d https://git.kernel.org/stable/c/e0ef23e9b0ad18b9fd3741b0f1ad2282e4a18def https://git.kernel.org/stable/c/af77c56aa35325daa2bc2bed5c2ebf169be61b86