Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1310 CNY

100%

CVE-2024-37021— fpga: manager: add owner module and take its refcount

AI Predicted 6.9 Difficulty: Theoretical EPSS 0.03% · P8

Affected Version Matrix 10

VendorProductVersion RangeStatus
LinuxLinux654ba4cc0f3ed7c0f08bfb39f66059d8c42943ee< 304f8032d601d4f9322ca841cd0b573bd1beb158affected
654ba4cc0f3ed7c0f08bfb39f66059d8c42943ee< 2da62a139a6221a345db4eb9f4f1c4b0937c89adaffected
654ba4cc0f3ed7c0f08bfb39f66059d8c42943ee< 62ac496a01c9337a11362cea427038ba621ca9ebaffected
654ba4cc0f3ed7c0f08bfb39f66059d8c42943ee< 4d4d2d4346857bf778fafaa97d6f76bb1663e3c9affected
4.4affected
< 4.4unaffected
6.1.120≤ 6.1.*unaffected
6.6.33≤ 6.6.*unaffected
… +2 more rows
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2024-37021

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
fpga: manager: add owner module and take its refcount
Source: NVD (National Vulnerability Database)
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: fpga: manager: add owner module and take its refcount The current implementation of the fpga manager 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 manager if the parent device does not have a driver. To address this problem, add a module owner pointer to the fpga_manager struct and use it to take the module's refcount. Modify the functions for registering the manager 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 manager as the owner. This ensures compatibility with existing low-level control modules and reduces the chances of registering a manager without setting the owner. Also, update the documentation to keep it consistent with the new interface for registering an fpga manager. Other changes: opportunistically move put_device() from __fpga_mgr_get() to fpga_mgr_get() and of_fpga_mgr_get() to improve code clarity since the manager device is taken in these functions.
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel 存在安全漏洞,该漏洞源于 fpga:manager 模块存在引用计数错误。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
LinuxLinux 654ba4cc0f3ed7c0f08bfb39f66059d8c42943ee ~ 304f8032d601d4f9322ca841cd0b573bd1beb158 -
LinuxLinux 4.4 -

II. Public POCs for CVE-2024-37021

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-37021

登录查看更多情报信息。

Patches & Fixes for CVE-2024-37021 (1)

Other References for CVE-2024-37021 (3)

Same Patch Batch · Linux · 2024-06-24 · 14 CVEs total

CVE-2024-38384blk-cgroup: fix list corruption from reorder of WRITE ->lqueued
CVE-2024-38664drm: zynqmp_dpsub: Always register bridge
CVE-2024-38663blk-cgroup: fix list corruption from resetting io stat
CVE-2024-38667riscv: prevent pt_regs corruption for secondary idle threads
CVE-2024-39291drm/amdgpu: Fix buffer size in gfx_v9_4_3_init_ cp_compute_microcode() and rlc_microcode()
CVE-2024-39292um: Add winch to winch_handlers before registering winch IRQ
CVE-2024-32936media: ti: j721e-csi2rx: Fix races while restarting DMA
CVE-2024-33847f2fs: compress: don't allow unaligned truncation on released compress inode
CVE-2024-34027f2fs: compress: fix to cover {reserve,release}_compress_blocks() w/ cp_rwsem lock
CVE-2024-34030PCI: of_property: Return error for int_map allocation failure
CVE-2024-35247fpga: region: add owner module and take its refcount
CVE-2024-36479fpga: bridge: add owner module and take its refcount
CVE-2024-37026drm/xe: Only use reserved BCS instances for usm migrate exec queue

IV. Related Vulnerabilities

V. Comments for CVE-2024-37021

No comments yet


Leave a comment