# CVE-2024-56584: io\_uring/tctx: work around xa\_store() allocation error issue

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-770
- **Published:** 2024-12-27T14:50:52.735Z
- **Modified:** 2026-11-05T21:17:35.760Z

## Who should check

- Anyone running Linux \>= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, \< e05c070b401f6365c503e2b59f091331965c4fb9; \>= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, \< 3a84fa784710990964c1e35df743851ab2863898; \>= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, \< 94ad56f61b873ffeebcc620d451eacfbdf9d40f0; \>= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, \< 42882b583095dcf747da6e3af1daeff40e27033e; \>= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, \< d5b2ddf1f90c7248eff9630b95895c8950f2f36d; \>= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, \< 7eb75ce7527129d7f1fee6951566af409a37a1c4
- Anyone running Linux 5.1

## 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.

## Affected and fixed versions

- Linux: \>= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, \< e05c070b401f6365c503e2b59f091331965c4fb9; \>= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, \< 3a84fa784710990964c1e35df743851ab2863898; \>= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, \< 94ad56f61b873ffeebcc620d451eacfbdf9d40f0; \>= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, \< 42882b583095dcf747da6e3af1daeff40e27033e; \>= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, \< d5b2ddf1f90c7248eff9630b95895c8950f2f36d; \>= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, \< 7eb75ce7527129d7f1fee6951566af409a37a1c4 (cvelist)
- Linux: 5.1 (cvelist)

## Mitigation

- Upgrade Linux to 7eb75ce7527129d7f1fee6951566af409a37a1c4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-56584. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-56584.md
Affected: Linux >= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, < e05c070b401f6365c503e2b59f091331965c4fb9; >= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, < 3a84fa784710990964c1e35df743851ab2863898; >= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, < 94ad56f61b873ffeebcc620d451eacfbdf9d40f0; >= 2b188cc1bb857a9d4701ae5…
Fixed in: Linux 3a84fa784710990964c1e35df743851ab2863898, Linux 94ad56f61b873ffeebcc620d451eacfbdf9d40f0, Linux 42882b583095dcf747da6e3af1daeff40e27033e, Linux 7eb75ce7527129d7f1fee6951566af409a37a1c4

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-56584 being exploited?

There is no confirmed exploitation: CVE-2024-56584 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-56584?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-56584?

Linux \>= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, \< e05c070b401f6365c503e2b59f091331965c4fb9; \>= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, \< 3a84fa784710990964c1e35df743851ab2863898; \>= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, \< 94ad56f61b873ffeebcc620d451eacfbdf9d40f0; \>= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, \< 42882b583095dcf747da6e3af1daeff40e27033e; \>= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, \< d5b2ddf1f90c7248eff9630b95895c8950f2f36d; \>= 2b188cc1bb857a9d4701ae59aa7768b5124e262e, \< 7eb75ce7527129d7f1fee6951566af409a37a1c4; Linux 5.1.

### Is there a fix for CVE-2024-56584?

Yes. Fixed in Linux 3a84fa784710990964c1e35df743851ab2863898, Linux 94ad56f61b873ffeebcc620d451eacfbdf9d40f0, Linux 42882b583095dcf747da6e3af1daeff40e27033e, Linux 7eb75ce7527129d7f1fee6951566af409a37a1c4. Upgrade Linux to 7eb75ce7527129d7f1fee6951566af409a37a1c4 or later.

### How do I check if I'm affected by CVE-2024-56584?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/94ad56f61b873ffeebcc620d451eacfbdf9d40f0>
- patch: <https://git.kernel.org/stable/c/42882b583095dcf747da6e3af1daeff40e27033e>
- patch: <https://git.kernel.org/stable/c/d5b2ddf1f90c7248eff9630b95895c8950f2f36d>
- patch: <https://git.kernel.org/stable/c/7eb75ce7527129d7f1fee6951566af409a37a1c4>
- other: <https://git.kernel.org/stable/c/e05c070b401f6365c503e2b59f091331965c4fb9>
- other: <https://git.kernel.org/stable/c/3a84fa784710990964c1e35df743851ab2863898>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-56584>

HTML: <https://flawdb.com/CVE-2024-56584> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-56584>
