Skip to contentSkip to conversation

CVE-2022-50623: fpga: prevent integer overflow in dfl_feature_ioctl_set_irq()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 8, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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