CVE-2026-72158: fpga: dfl: add bounds check in dfh_get_param_size()
In the Linux kernel, the following vulnerability has been resolved:
fpga: dfl: add bounds check in dfhgetparamsize()
dfhgetparamsize() can return a parameter size larger than the feature region because the loop bounds check is evaluated before incrementing size. If the EOP (End of Parameters) bit is set in the same iteration, the inflated size is returned without re-validation against max.
This can cause createfeatureinstance() to call memcpyfromio() with a size exceeding the ioremap'd region when a malicious FPGA device provides crafted DFHv1 parameter headers.
Add a bounds check after the size increment to ensure the accumulated size never exceeds the feature boundary.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-72158?
The severity of CVE-2026-72158 is risk 44, indicating a significant potential impact.
How do I fix CVE-2026-72158?
To fix CVE-2026-72158, update your Linux kernel to the latest version where the vulnerability has been patched.
What components are affected by CVE-2026-72158?
CVE-2026-72158 affects the FPGA subsystem in the Linux kernel.
What impact does CVE-2026-72158 have on my system?
CVE-2026-72158 can lead to improper memory access which may result in system instability or crashes.
Is there a workaround for CVE-2026-72158?
There are no known workarounds for CVE-2026-72158, so applying the kernel patch is essential.