{"id":"CVE-2026-72158","summary":"fpga: dfl: add bounds check in dfh_get_param_size()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nfpga: dfl: add bounds check in dfh_get_param_size()\n\ndfh_get_param_size() can return a parameter size larger than the feature\nregion because the loop bounds check is evaluated before incrementing\nsize. If the EOP (End of Parameters) bit is set in the same iteration,\nthe inflated size is returned without re-validation against max.\n\nThis can cause create_feature_instance() to call memcpy_fromio() with a\nsize exceeding the ioremap'd region when a malicious FPGA device provides\ncrafted DFHv1 parameter headers.\n\nAdd a bounds check after the size increment to ensure the accumulated\nsize never exceeds the feature boundary.","modified":"2026-08-18T03:31:03.139730347Z","published":"2026-08-15T05:53:27.454Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72158.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/012683accbb7d2bcf1264f2a0ecd6aa1dcea4d68"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3b622aa447cf26104f96a8be39539367863bc6b6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9e8bc49f91f3f81d957c4f1c1f09fe94e2f88f6a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b2f6220e929b2a43605331d0139e65dc1640c05c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f3df5386e3bb54626c117bd85e0158d45fb4aea9"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72158.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72158"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"4747ab89b4a652f835494fcf8342aaa0efb9b0fd"},{"fixed":"b2f6220e929b2a43605331d0139e65dc1640c05c"},{"fixed":"3b622aa447cf26104f96a8be39539367863bc6b6"},{"fixed":"012683accbb7d2bcf1264f2a0ecd6aa1dcea4d68"},{"fixed":"f3df5386e3bb54626c117bd85e0158d45fb4aea9"},{"fixed":"9e8bc49f91f3f81d957c4f1c1f09fe94e2f88f6a"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72158.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.3.0"},{"fixed":"6.6.145"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.97"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.40"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.1.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72158.json"}}],"schema_version":"1.9.0"}