CVE-2024-35247

fpga: region: add owner module and take its refcount

State
Published
Severity
Not scored
Published
Jun 24, 2024
Updated
May 11, 2026
Reserved
Jun 24, 2024

Read the record on cve.org

Description

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

fpga: region: add owner module and take its refcount

The current implementation of the fpga region assumes that the low-level module registers a driver for the parent device and uses its owner pointer to take the module's refcount. This approach is problematic since it can lead to a null pointer dereference while attempting to get the region during programming if the parent device does not have a driver.

To address this problem, add a module owner pointer to the fpga_region struct and use it to take the module's refcount. Modify the functions for registering a region to take an additional owner module parameter and rename them to avoid conflicts. Use the old function names for helper macros that automatically set the module that registers the region as the owner. This ensures compatibility with existing low-level control modules and reduces the chances of registering a region without setting the owner.

Also, update the documentation to keep it consistent with the new interface for registering an fpga region.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 0fa20cdfcc1f68847cdfc47824476301eedc8297 to before 26e6e25d742e29885cf44274fcf6b744366c4702Affected
  • 0fa20cdfcc1f68847cdfc47824476301eedc8297 to before 9b4eee8572dcf82b2ed17d9a328c7fb87df2f0e8Affected
  • 0fa20cdfcc1f68847cdfc47824476301eedc8297 to before 75a001914a8d2ccdcbe4b8cc7e94ac71d0e66093Affected
  • 0fa20cdfcc1f68847cdfc47824476301eedc8297 to before 4d7d12b643c00e7eea51b49a60a2ead182633ec8Affected
  • 0fa20cdfcc1f68847cdfc47824476301eedc8297 to before 2279c09c36165ccded4d506d11a7714e13b56019Affected
  • 0fa20cdfcc1f68847cdfc47824476301eedc8297 to before b7c0e1ecee403a43abc89eb3e75672b01ff2ece9Affected
LinuxLinux
  • 4.10Affected
  • before 4.10Not affected
  • 5.10.219 through 5.10.*Not affected
  • 5.15.161 through 5.15.*Not affected
  • 6.1.93 through 6.1.*Not affected
  • 6.6.33 through 6.6.*Not affected
  • 6.9.4 through 6.9.*Not affected
  • 6.10 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.