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 AE7CB313D4E for ; Thu, 18 Sep 2025 16:04:26 +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=1758211466; cv=none; b=PpOyZZfRkyTBGl8I5amQjmW6C433WRUnFrpCsMo4/FybcExA+6CLCRWWNihKrh3JbjiYu5qNqoZplulR9qTL+z6HgDcP7cEbi6QOGZJqYtASNIVsf0COD7h2ainJI9sJzZqMP7a6nLhh6dypsKMBhriL1kIRLmX0X/+cd6DadGI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758211466; c=relaxed/simple; bh=IxJmjXbc4Umn21utowJntvxq6kCyB34qgNI7lzZszKA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RBiIuaxIFTvX6GVOn5TSMt1ajwJrvx0ydY7yb8+xs8DRqND1S9ZZBCs6aUh9POZgKCPERKZ3lcm4kG0p4tfnKG2MEYg2KvHEUJ2fajTqeMXQXaZwra/slqz42uwU9j139wu8q5/T5h8CRgtwiWKztHBYwBGH+zWQV2XfR3Jc084= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eLpObE+u; 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="eLpObE+u" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DAAB6C4CEE7; Thu, 18 Sep 2025 16:04:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758211466; bh=IxJmjXbc4Umn21utowJntvxq6kCyB34qgNI7lzZszKA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=eLpObE+u/ixkrKP4yfBwJtqo+GGTHySBmRZZe89Har7yFG5uvCUQpA7BY2vRiVwVK PzA+ithAiswLBatv9GESYJZLnJ/P2sk9cSmLHBd+vrYOnV75lamZ+FOfxEKrSodgHh LkpB7n19p3LD3qS/BZxe6BNItLoP/SF/gwVnR8Ng= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50404: fbdev: fbcon: release buffer when fbcon_do_set_font() failed Date: Thu, 18 Sep 2025 18:03:54 +0200 Message-ID: <2025091852-CVE-2022-50404-5db4@gregkh> X-Mailer: git-send-email 2.51.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=2534; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=j3eByfne7zpp60H3jJwKMR/fVUtT18/0CyAePxH9S+0=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlndDNulb7LFCxynrql7siNBHvhF638ixIefLKXW9Q3c S6j+4apHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRDfoMcziOPnsy877QCtOG sPT2wrVPJDj+TWNY0H9lWuKVxK2tOz5Me3qgdX+kXaJYBgA= 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: fbdev: fbcon: release buffer when fbcon_do_set_font() failed syzbot is reporting memory leak at fbcon_do_set_font() [1], for commit a5a923038d70 ("fbdev: fbcon: Properly revert changes when vc_resize() failed") missed that the buffer might be newly allocated by fbcon_set_font(). The Linux kernel CVE team has assigned CVE-2022-50404 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15.64 with commit ebd6f886aa2447fcfcdce5450c9e1028e1d681bb and fixed in 5.15.86 with commit 88ec6d11052da527eb9268831e7a9bc5bbad02f6 Issue introduced in 6.0 with commit a5a923038d70d2d4a86cb4e3f32625a5ee6e7e24 and fixed in 6.0.16 with commit 06926607b9fddf7ce8017493899ce6eb7e79a123 Issue introduced in 6.0 with commit a5a923038d70d2d4a86cb4e3f32625a5ee6e7e24 and fixed in 6.1.2 with commit a609bfc1e644a8467cb31945ed1488374ebdc013 Issue introduced in 6.0 with commit a5a923038d70d2d4a86cb4e3f32625a5ee6e7e24 and fixed in 6.2 with commit 3c3bfb8586f848317ceba5d777e11204ba3e5758 Issue introduced in 5.19.6 with commit f08ccb792d3eaf1dc62d8cbf6a30d6522329f660 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-50404 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/core/fbcon.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/88ec6d11052da527eb9268831e7a9bc5bbad02f6 https://git.kernel.org/stable/c/06926607b9fddf7ce8017493899ce6eb7e79a123 https://git.kernel.org/stable/c/a609bfc1e644a8467cb31945ed1488374ebdc013 https://git.kernel.org/stable/c/3c3bfb8586f848317ceba5d777e11204ba3e5758