CVE-2024-35247
fpga: region: add owner module and take its refcount
Check your servers for CVE-2024-35247
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-35247 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 14.5% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Sep 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 0fa20cdfcc1f68847cdfc47824476301eedc8297, before 26e6e25d742e29885cf44274fcf6b744366c4702 affected from 0fa20cdfcc1f68847cdfc47824476301eedc8297, before 9b4eee8572dcf82b2ed17d9a328c7fb87df2f0e8 affected from 0fa20cdfcc1f68847cdfc47824476301eedc8297, before 75a001914a8d2ccdcbe4b8cc7e94ac71d0e66093 affected from 0fa20cdfcc1f68847cdfc47824476301eedc8297, before 4d7d12b643c00e7eea51b49a60a2ead182633ec8 affected from 0fa20cdfcc1f68847cdfc47824476301eedc8297, before 2279c09c36165ccded4d506d11a7714e13b56019 affected from 0fa20cdfcc1f68847cdfc47824476301eedc8297, before b7c0e1ecee403a43abc89eb3e75672b01ff2ece9
Other versions: unaffected
|
| Linux |
affected 4.10 unaffected before 4.10 unaffected from 5.10.219 up to and including 5.10.* unaffected from 5.15.161 up to and including 5.15.* unaffected from 6.1.93 up to and including 6.1.* unaffected from 6.6.33 up to and including 6.6.* unaffected from 6.9.4 up to and including 6.9.* unaffected 6.10 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-35247 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-35247
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-35247
trivy image --scanners vuln IMAGE | grep CVE-2024-35247
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/26e6e25d742e29885cf44274fcf6b744366c4702 git.kernel.org
- https://git.kernel.org/stable/c/9b4eee8572dcf82b2ed17d9a328c7fb87df2f0e8 git.kernel.org
- https://git.kernel.org/stable/c/75a001914a8d2ccdcbe4b8cc7e94ac71d0e66093 git.kernel.org
- https://git.kernel.org/stable/c/4d7d12b643c00e7eea51b49a60a2ead182633ec8 git.kernel.org
- https://git.kernel.org/stable/c/2279c09c36165ccded4d506d11a7714e13b56019 git.kernel.org
- https://git.kernel.org/stable/c/b7c0e1ecee403a43abc89eb3e75672b01ff2ece9 git.kernel.org
Source: the record CVE-2024-35247 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse