CVE-2024-35247: fpga: region: add owner module and take its refcount
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 fpgaregion 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.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-35247?
CVE-2024-35247 is classified with a severity level that reflects potential impacts on system integrity and availability.
What versions of the Linux kernel are affected by CVE-2024-35247?
CVE-2024-35247 affects multiple versions of the Linux kernel between 4.10 and 6.6.33.
How do I fix CVE-2024-35247?
To address CVE-2024-35247, users should update to fixed versions of the Linux kernel specified as 5.10.223-1, 5.10.226-1, 6.1.123-1, 6.1.119-1, 6.12.10-1, or 6.12.11-1.
What is the nature of CVE-2024-35247 vulnerability?
CVE-2024-35247 involves a flaw in the FPGA region implementation within the Linux kernel related to driver ownership and reference counting.
Is there a known exploit for CVE-2024-35247?
As of now, there are no publicly disclosed exploits associated with CVE-2024-35247.