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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2024-56695— drm/amdkfd: Use dynamic allocation for CU occupancy array in 'kfd_get_cu_occupancy()'

EPSS 0.05% · P14
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2024-56695

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
drm/amdkfd: Use dynamic allocation for CU occupancy array in 'kfd_get_cu_occupancy()'
Source: NVD (National Vulnerability Database)
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: Use dynamic allocation for CU occupancy array in 'kfd_get_cu_occupancy()' The `kfd_get_cu_occupancy` function previously declared a large `cu_occupancy` array as a local variable, which could lead to stack overflows due to excessive stack usage. This commit replaces the static array allocation with dynamic memory allocation using `kcalloc`, thereby reducing the stack size. This change avoids the risk of stack overflows in kernel space, in scenarios where `AMDGPU_MAX_QUEUES` is large. The allocated memory is freed using `kfree` before the function returns to prevent memory leaks. Fixes the below with gcc W=1: drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c: In function ‘kfd_get_cu_occupancy’: drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c:322:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=] 322 | } | ^
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存在安全漏洞,该漏洞源于drm/amdkfd子系统中kfd_get_cu_occupancy函数中静态数组分配导致的栈溢出问题。
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 6ae9e1aba97e4cdaa31a0bfdc07497ad0e915c84 ~ 6d9f07196389f35a3afebcf1a12c1425725caddd -
LinuxLinux 6.12 -

II. Public POCs for CVE-2024-56695

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-56695

登录查看更多情报信息。

Same Patch Batch · Linux · 2024-12-28 · 32 CVEs total

CVE-2024-56693brd: defer automatic disk creation until module initialization succeeds
CVE-2024-56708EDAC/igen6: Avoid segmentation fault on module unload
CVE-2024-56707octeontx2-pf: handle otx2_mbox_get_rsp errors in otx2_dmac_flt.c
CVE-2024-56705media: atomisp: Add check for rgby_data memory allocation failure
CVE-2024-56706s390/cpum_sf: Fix and protect memory allocation of SDBs with mutex
CVE-2024-567049p/xen: fix release of IRQ
CVE-2024-56703ipv6: Fix soft lockups in fib6_select_path under high next hop churn
CVE-2024-56701powerpc/pseries: Fix dtl_access_lock to be a rw_semaphore
CVE-2024-56702bpf: Mark raw_tp arguments with PTR_MAYBE_NULL
CVE-2024-56700media: wl128x: Fix atomicity violation in fmc_send_cmd()
CVE-2024-56699s390/pci: Fix potential double remove of hotplug slot
CVE-2024-56698usb: dwc3: gadget: Fix looping of queued SG entries
CVE-2024-56697drm/amdgpu: Fix the memory allocation issue in amdgpu_discovery_get_nps_info()
CVE-2024-56696ALSA: core: Fix possible NULL dereference caused by kunit_kzalloc()
CVE-2024-56694bpf: fix recursive lock when verdict program return SK_PASS
CVE-2024-56692f2fs: fix to do sanity check on node blkaddr in truncate_node()
CVE-2024-56676thermal: testing: Initialize some variables annoteded with _free()
CVE-2024-56691mfd: intel_soc_pmic_bxtwc: Use IRQ domain for USB Type-C device
CVE-2024-56689PCI: endpoint: epf-mhi: Avoid NULL dereference if DT lacks 'mmio'
CVE-2024-56690crypto: pcrypt - Call crypto layer directly when padata_do_parallel() return -EBUSY

Showing top 20 of 32 CVEs. View all on vendor page → →

IV. Related Vulnerabilities

V. Comments for CVE-2024-56695

No comments yet


Leave a comment