# CVE-2026-72158: fpga: dfl: add bounds check in dfh_get_param_size()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 6% of CVEs (2026-11-30)
- Published: 2026-08-15T05:53:27.454Z
- Modified: 2026-08-17T06:18:16.040Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

fpga: dfl: add bounds check in dfh_get_param_size()

dfh_get_param_size() 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 create_feature_instance() to call memcpy_fromio() 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 4747ab89b4a652f835494fcf8342aaa0efb9b0fd before b2f6220e929b2a43605331d0139e65dc1640c05c; from 4747ab89b4a652f835494fcf8342aaa0efb9b0fd before 3b622aa447cf26104f96a8be39539367863bc6b6; from 4747ab89b4a652f835494fcf8342aaa0efb9b0fd before 012683accbb7d2bcf1264f2a0ecd6aa1dcea4d68; from 4747ab89b4a652f835494fcf8342aaa0efb9b0fd before f3df5386e3bb54626c117bd85e0158d45fb4aea9; from 4747ab89b4a652f835494fcf8342aaa0efb9b0fd before 9e8bc49f91f3f81d957c4f1c1f09fe94e2f88f6a; 6.3 (not affected: before 6.3; from 6.6.145 up to 6.6.*; from 6.12.97 up to 6.12.*; from 6.18.40 up to 6.18.*; from 7.1.5 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/b2f6220e929b2a43605331d0139e65dc1640c05c>
- <https://git.kernel.org/stable/c/3b622aa447cf26104f96a8be39539367863bc6b6>
- <https://git.kernel.org/stable/c/012683accbb7d2bcf1264f2a0ecd6aa1dcea4d68>
- <https://git.kernel.org/stable/c/f3df5386e3bb54626c117bd85e0158d45fb4aea9>
- <https://git.kernel.org/stable/c/9e8bc49f91f3f81d957c4f1c1f09fe94e2f88f6a>

## Sources

- CVE List: [CVE-2026-72158](https://www.cve.org/CVERecord?id=CVE-2026-72158), CVE Terms of Use, modified 2026-08-17
- NVD: [CVE-2026-72158](https://nvd.nist.gov/vuln/detail/CVE-2026-72158), Public domain, modified 2026-08-17

---

Page: https://cve.day/CVE-2026-72158 · Whole record: https://cve.day/CVE-2026-72158.json · Rebuilt by cve.day 2026-11-25T22:59:33.026Z
