SecurityContext

CVE-2024-56584: Linux Kernel - Use After Free

  • Cve: CVE-2024-56584
  • Name: Linux Kernel - Use After Free
  • Description: In the Linux kernel, the following vulnerability has been resolved: io_uring/tctx: work around xa_store() allocation error issue syzbot triggered the following WARN_ON: WARNING: CPU: 0 PID: 16 at io_uring/tctx.c:51 __io_uring_free+0xfa/0x140 io_uring/tctx.c:51 which is the WARN_ON_ONCE(!xa_empty(&tctx->xa)); sanity check in __io_uring_free() when a io_uring_task is going through its final put. The syzbot test case includes injecting memory allocation failures, and it very much looks like xa_store() can fail one of its memory allocations and end up with ->head being non-NULL even though no entries exist in the xarray. Until this issue gets sorted out, work around it by attempting to iterate entries in our xarray, and WARN_ON_ONCE() if one is found.
  • Impact: Potential denial of service or memory corruption due to incorrect handling of xa_store() failures during io_uring cleanup.
  • Remediation: Apply the workaround to check for entries in the xarray before freeing, and update to the latest kernel version where the issue is fixed.
  • Vulnerability type: use_after_free
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • 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.00238
  • Epss percentile: 0.14893
  • Assignee: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  • Published at: 2024-12-27T15:15:17Z
  • Age in days: 697
  • Modified at: 2026-11-05T21:17:35Z
  • Patch available: yes
  • References total: 7
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-56584
  • 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: requirements, hackerone

Cwe

IdName
CWE-770Allocation of Resources Without Limits or Throttling

References

Same in every row:

  • Source: nvd
UrlTags
https://git.kernel.org/stable/c/42882b583095dcf747da6e3af1daeff40e27033ePatch
https://git.kernel.org/stable/c/7eb75ce7527129d7f1fee6951566af409a37a1c4Patch
https://git.kernel.org/stable/c/94ad56f61b873ffeebcc620d451eacfbdf9d40f0Patch
https://git.kernel.org/stable/c/d5b2ddf1f90c7248eff9630b95895c8950f2f36dPatch
https://git.kernel.org/stable/c/3a84fa784710990964c1e35df743851ab2863898
https://git.kernel.org/stable/c/e05c070b401f6365c503e2b59f091331965c4fb9
https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html

Products

ProductAffectedPlatform boundSourcesUrl
linux:linux_kernel>= 6.7, < 6.12.5; >= 6.2, < 6.6.66; >= 5.1, < 6.1.120nonvd/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