CVE-2026-72158

fpga: dfl: add bounds check in dfh_get_param_size()

State
Published
Severity
Not scored
Published
Aug 15, 2026
Updated
Aug 17, 2026
Reserved
Aug 9, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 4747ab89b4a652f835494fcf8342aaa0efb9b0fd to before b2f6220e929b2a43605331d0139e65dc1640c05cAffected
  • 4747ab89b4a652f835494fcf8342aaa0efb9b0fd to before 3b622aa447cf26104f96a8be39539367863bc6b6Affected
  • 4747ab89b4a652f835494fcf8342aaa0efb9b0fd to before 012683accbb7d2bcf1264f2a0ecd6aa1dcea4d68Affected
  • 4747ab89b4a652f835494fcf8342aaa0efb9b0fd to before f3df5386e3bb54626c117bd85e0158d45fb4aea9Affected
  • 4747ab89b4a652f835494fcf8342aaa0efb9b0fd to before 9e8bc49f91f3f81d957c4f1c1f09fe94e2f88f6aAffected
LinuxLinux
  • 6.3Affected
  • before 6.3Not affected
  • 6.6.145 through 6.6.*Not affected
  • 6.12.97 through 6.12.*Not affected
  • 6.18.40 through 6.18.*Not affected
  • 7.1.5 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.