SecurityContext

CVE-2025-21842: Linux Kernel - Improper Pointer Handling

  • Cve: CVE-2025-21842
  • Name: Linux Kernel - Improper Pointer Handling
  • 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.
  • Impact: Local users may cause kernel crashes or instability by exploiting improper pointer handling, leading to denial of service.
  • Remediation: Apply patches that correctly handle pointer types and ensure proper casting and dereferencing.
  • Vulnerability impact: denial_of_service
  • Requirement type: admin_privileges
  • Requirements: Attacker needs kernel module access or ability to execute code in kernel context.
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.5
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.00237
  • Epss percentile: 0.14618
  • Assignee: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  • Published at: 2025-03-07T09:15:17Z
  • Age in days: 627
  • Modified at: 2026-07-30T06:21:40Z
  • Patch available: yes
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-21842
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: vulnerability type, hackerone

Cwe

IdName
NVD-CWE-noinfo—

References

Same in every row:

  • Source: nvd
  • Tags: Patch
Url
https://git.kernel.org/stable/c/091a68c58c1bbd2ab7d05d1b32c1306394ec691d
https://git.kernel.org/stable/c/a33f7f9660705fb2ecf3467b2c48965564f392ce
https://git.kernel.org/stable/c/ae5ab1c1ae504f622cc1ff48830a9ed48428146d

Products

ProductAffectedPlatform boundSourcesUrl
linux:linux_kernel= 6.14 rc1; = 6.14 rc2; >= 6.13, < 6.13.4; >= 6.12, < 6.12.16nonvd/v1/products/linux/linux_kernel

Projects

RepositoryLink kindsIndexedUrl
torvalds/linuxcna_commit, commityes/v1/repositories/torvalds/linux

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Exposed hosts: 10038339
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports