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 5B0B914F9D6 for ; Mon, 8 Dec 2025 01:17: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=1765156665; cv=none; b=K5r096/V+SdUSQ9j8DZ4/uJnDaPVfjz5UM8dXA5OCZFv0zOFe89MnS7UiiOz3TEPYeMj0KC1xZJxZ4k4AtW6WCY0YJgTB3rO6NMCdRkEvEjTlallM9EhJJqHc5yOrUUjCjnLUDdwEBiVgFt8VFJlCNkw/j/nYidkFzWf9LJbHbU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765156665; c=relaxed/simple; bh=wNx9NewWB3J5cn31PNFuk/RxYA6Gh83tOCGktxgefP4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PAAZ1WwTst+ZcpBiqaWwCWlGW8QrwAe7QWAB/U/YFakse4t355pN8C8v7n/uCtOrmkm7m10WTDaa4VT0pnYDdWD2y3DASiFOCAcP896JyXHvKcLBjmGwoOrZGOkLsH6PHFJNCsdj797w+egei3qprV7uVrAYVx+a96QXGb1N1hs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QrvzOvII; 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="QrvzOvII" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EBDD2C4CEFB; Mon, 8 Dec 2025 01:17:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765156665; bh=wNx9NewWB3J5cn31PNFuk/RxYA6Gh83tOCGktxgefP4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=QrvzOvIIgHAthTEE3SwgDfnxfHCF/KkruJu7aRNAAmD6+3ONjoV3BWVw0fix2y2mT 8z7eewKzMmhDScbuKpHztdqgJzK7PSNBnurC1sAIGE8iHF1SPAtpo7ESJ4n20ssJdx +nBzgdWPv79wFevTjAEzGmtYPtOjkJHsUeSI8xkE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50623: fpga: prevent integer overflow in dfl_feature_ioctl_set_irq() Date: Mon, 8 Dec 2025 10:17:00 +0900 Message-ID: <2025120853-CVE-2022-50623-03df@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=2581; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=LG5uGOoILBtvt+ZCYICMC4V8YQtKWVj49ZUjYeJVfA8=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlm6qyBE/J7b7gZX3pxi2OvyVP7ui9RIns/1Ez/91nrv mfSA5sbHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARH2GGBWsXHT6gmXPjbOCM 7QmBv8Qusb95u59hfqpC85I5j0+XPt2bkTh5nVuWI+NGPgA= 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: fpga: prevent integer overflow in dfl_feature_ioctl_set_irq() The "hdr.count * sizeof(s32)" multiplication can overflow on 32 bit systems leading to memory corruption. Use array_size() to fix that. The Linux kernel CVE team has assigned CVE-2022-50623 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit 322b598be4d9b9090cda560c4caab78704615ab4 and fixed in 5.10.150 with commit f59861946fa51bcc1f305809e4ebc1013b0ee61c Issue introduced in 5.9 with commit 322b598be4d9b9090cda560c4caab78704615ab4 and fixed in 5.15.75 with commit b94605f5cb99e90c8ca91523597a40e1bd59546b Issue introduced in 5.9 with commit 322b598be4d9b9090cda560c4caab78704615ab4 and fixed in 5.19.17 with commit 1b5a931594f7ffd26d706614c37d4da0f2ffb6e7 Issue introduced in 5.9 with commit 322b598be4d9b9090cda560c4caab78704615ab4 and fixed in 6.0.3 with commit 940253af8b3865b76de8d1b46bcd4a700104852e Issue introduced in 5.9 with commit 322b598be4d9b9090cda560c4caab78704615ab4 and fixed in 6.1 with commit 939bc5453b8cbdde9f1e5110ce8309aedb1b501a 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-50623 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/fpga/dfl.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/f59861946fa51bcc1f305809e4ebc1013b0ee61c https://git.kernel.org/stable/c/b94605f5cb99e90c8ca91523597a40e1bd59546b https://git.kernel.org/stable/c/1b5a931594f7ffd26d706614c37d4da0f2ffb6e7 https://git.kernel.org/stable/c/940253af8b3865b76de8d1b46bcd4a700104852e https://git.kernel.org/stable/c/939bc5453b8cbdde9f1e5110ce8309aedb1b501a