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 0C93728C2B3 for ; Wed, 18 Jun 2025 11:11:45 +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=1750245105; cv=none; b=a/+X3pDvinPOsLZba5Az5N+p9vACwUv3PT0YLb4ChJF4JGH0ziJmyz0241+Bu0cAMJgDwMWvrAJMwkjpFKnk405/7QRkX3PxOC535xrujNRi6p9K69Q5JpqAxrWWVQsbZA5EbrQfQWze9kYk4oiVEn409JaoG2sG8hdXumnEN04= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245105; c=relaxed/simple; bh=6zoCW/P+AIUp0/0tXx6ytkdjEQvyoEUG6Va8V+9mLu8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QDgzkjJzJfjNXZeeOX3eaOqPT1mnnhGk/LsvxSEurzQafMOMl2zUf2UePB+4MpZiJOtCq3O3X2EbtR30lvbC8qycfbIlinDCUdz0uDyuWNJzcj+YY7ski6Nzs8XNBKlcMlANMVBY/TPjiiKCpx0ebRwq6nkscMULcbb+8GABZk8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OPr+V7YS; 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="OPr+V7YS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 872FEC4CEE7; Wed, 18 Jun 2025 11:11:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245104; bh=6zoCW/P+AIUp0/0tXx6ytkdjEQvyoEUG6Va8V+9mLu8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=OPr+V7YStDd29UfNCLNY9ulQjnFms1Y1jrH7j5BMVxXuM1ML6HvHyDrOvCPfnxLTV CR/nO8XwJzjYyM9oa+ekZWsgCdOzWrR1GwDoxSICLpUE99bnjqerfmT8qkaTaVCvI4 FdSagyY6VlAH4A9KvEnoV6/dALm+YnBk1P4iUR1Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50130: staging: fbtft: core: set smem_len before fb_deferred_io_init call Date: Wed, 18 Jun 2025 13:03:15 +0200 Message-ID: <2025061814-CVE-2022-50130-b9e9@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=2351; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ldFheghzSLSzGuLA0FwMzNWpV62lbSuO4pfOxLL2bRE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc6qMz2XP5CjS5ji4rzd5A6+M9aFK1asZ4ieFGYRzk jfZvr7QEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPJ+c0w37/nTUbK4tvfGTkd vFcl8E9o1YkOYVjQXp+2+t4RlrYFq5ezWxVMa5ROunECAA== 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: staging: fbtft: core: set smem_len before fb_deferred_io_init call The fbtft_framebuffer_alloc() calls fb_deferred_io_init() before initializing info->fix.smem_len. It is set to zero by the framebuffer_alloc() function. It will trigger a WARN_ON() at the start of fb_deferred_io_init() and the function will not do anything. The Linux kernel CVE team has assigned CVE-2022-50130 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18.3 with commit 6a9ae2fe887042f76fd3d334349e64e8ab3c55a2 and fixed in 5.18.18 with commit 5185c319e8ea67657e0d3edd520a7276516c506a Issue introduced in 5.19 with commit 856082f021a28221db2c32bd0531614a8382be67 and fixed in 5.19.2 with commit 6ae6abe240306f878557d6eadd950a2e2561f59f Issue introduced in 5.19 with commit 856082f021a28221db2c32bd0531614a8382be67 and fixed in 6.0 with commit 81e878887ff82a7dd42f22951391069a5d520627 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-50130 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/staging/fbtft/fbtft-core.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/4178bfa3fc9de556dfe248a6eabe29280f0ffda5 https://git.kernel.org/stable/c/5185c319e8ea67657e0d3edd520a7276516c506a https://git.kernel.org/stable/c/6ae6abe240306f878557d6eadd950a2e2561f59f https://git.kernel.org/stable/c/81e878887ff82a7dd42f22951391069a5d520627