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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-21842— amdkfd: properly free gang_ctx_bo when failed to init user queue

Quick assessment

Affected
Linux Linux
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于amdkfd模块在初始化用户队列失败时未正确释放gang_ctx_bo。

CVSS 7.8 · High EPSS 0.24% · P14

Possible ATT&CK Techniques 1 AI

T1207 · Rogue Domain Controller

Affected Version Matrix 8

VendorProduct Version RangeStatus
Linux Linux fb91065851cd5f2735348c5f3eddeeca3d7c2973< ae5ab1c1ae504f622cc1ff48830a9ed48428146d affected
fb91065851cd5f2735348c5f3eddeeca3d7c2973< 091a68c58c1bbd2ab7d05d1b32c1306394ec691d affected
fb91065851cd5f2735348c5f3eddeeca3d7c2973< a33f7f9660705fb2ecf3467b2c48965564f392ce affected
6.12 affected
< 6.12 unaffected
6.12.16≤ 6.12.* unaffected
6.13.4≤ 6.13.* unaffected
6.14≤ * unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-21842

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
amdkfd: properly free gang_ctx_bo when failed to init user queue
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: amdkfd: properly free gang_ctx_bo when failed to init user queue The destructor of a gtt bo is declared as void amdgpu_amdkfd_free_gtt_mem(struct amdgpu_device *adev, void **mem_obj); Which takes void** as the second parameter. GCC allows passing void* to the function because void* can be implicitly casted to any other types, so it can pass compiling. However, passing this void* parameter into the function's execution process(which expects void** and dereferencing void**) will result in errors.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于amdkfd模块在初始化用户队列失败时未正确释放gang_ctx_bo。
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

Vendor Product Affected Versions CPE Subscribe
Linux Linux fb91065851cd5f2735348c5f3eddeeca3d7c2973 ~ ae5ab1c1ae504f622cc1ff48830a9ed48428146d -
Linux Linux 6.12 -

II. Public POCs for CVE-2025-21842

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-21842

请登录查看更多情报信息。

Patches & Fixes for CVE-2025-21842 (3)

Same Patch Batch · Linux · 2025-03-07 · 8 CVEs total

CVE-2025-21836 7.8 HIGH io_uring/kbuf: reallocate buf lists on upgrade
CVE-2025-21839 7.3 HIGH KVM: x86: Load DR6 with guest value only before entering .vcpu_run() loop
CVE-2025-21835 usb: gadget: f_midi: fix MIDI Streaming descriptor lengths
CVE-2025-21838 usb: gadget: core: flush gadget workqueue after device removal
CVE-2025-21840 thermal/netlink: Prevent userspace segmentation fault by adjusting UAPI header
CVE-2025-21841 cpufreq/amd-pstate: Fix cpufreq_policy ref counting
CVE-2025-21843 drm/panthor: avoid garbage value in panthor_ioctl_dev_query()

IV. Related Vulnerabilities

V. Comments for CVE-2025-21842

No comments yet


Leave a comment