CVE-2026-72158

Source
https://cve.org/CVERecord?id=CVE-2026-72158
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72158.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-72158
Downstream
Published
2026-08-15T05:53:27Z
Modified
2026-08-18T03:31:03Z
Summary
fpga: dfl: add bounds check in dfh_get_param_size()
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72158.json"
}
References

Affected packages

Git / 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"

Linux / Kernel

Package

Name
Kernel

Affected 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"