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.
Published: 2026-08-15
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In the Linux kernel FPGA device driver, a flaw in the dfh_get_param_size() function permits the reported size of a parameter to exceed the bounds of the feature region. The function increments the size before performing a bounds check, so if the End of Parameters bit is set during the same iteration, the inflated size is returned without re‑validation. This erroneous size is then used by create_feature_instance() to copy data via memcpy_fromio(). The code thus attempts to copy more data than the mapped FPGA region contains, which can overwrite kernel memory and potentially lead to privilege escalation, arbitrary code execution, or a denial of service. The issue is a classic bounds‑checking bypass that results in a buffer overrun in kernel space, identified as CWE‑805.

Affected Systems

The vulnerability exists in all Linux kernel builds that include the FPGA device driver (DFL) without the patched bounds check. The vendor is the Linux project, and the product is the Linux kernel. No specific kernel versions are enumerated, so any currently running kernel that lacks the fix may be affected.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate severity, and the EPSS score of less than 1% suggests a low probability of exploitation in the wild. However, the flaw is a kernel‑mode buffer overflow, making it highly destructive if triggered. Exploitation requires a malicious or compromised FPGA device that can provide crafted DFHv1 parameter headers and direct interaction with the affected driver. The vulnerability is not listed in CISA's KEV catalog, but the potential impact and the need for a kernel update remain critical.

Generated by OpenCVE AI on August 22, 2026 at 11:35 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest vendor‑supplied Linux kernel update that contains the corrected bounds check in the DFL driver.
  • Reboot the system to ensure the updated kernel and driver are active.
  • If the kernel update cannot be applied immediately, unload or disable the DFL module or block access to FPGA devices that could supply crafted parameter headers.

Generated by OpenCVE AI on August 22, 2026 at 11:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 22 Aug 2026 10:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119

Wed, 19 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-805
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Sat, 15 Aug 2026 20:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119

Sat, 15 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
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.
Title fpga: dfl: add bounds check in dfh_get_param_size()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:09:18.602Z

Reserved: 2026-08-09T03:40:39.909Z

Link: CVE-2026-72158

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:21:33.617

Modified: 2026-08-17T06:18:16.040

Link: CVE-2026-72158

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-72158 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T11:45:03Z

Weaknesses
  • CWE-805

    Buffer Access with Incorrect Length Value