# CVE-2024-55641: xfs: unlock inodes when erroring out of xfs\_trans\_alloc\_dir

> 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.26% (percentile 11, 2026-11-26)
- **Published:** 2025-01-11T12:29:56.052Z
- **Modified:** 2026-06-17T08:11:20.537Z

## Who should check

- Anyone running Linux \>= bd5562111d58392298a3c3b93caad71dff681b4b, \< 6aefe5d97ae57b1343dc60d8bb6a4ed070e5bcea; \>= bd5562111d58392298a3c3b93caad71dff681b4b, \< 53b001a21c9dff73b64e8c909c41991f01d5d00f
- Anyone running Linux 6.10

## Description

In the Linux kernel, the following vulnerability has been resolved:

xfs: unlock inodes when erroring out of xfs\_trans\_alloc\_dir

Debugging a filesystem patch with generic/475 caused the system to hang
after observing the following sequences in dmesg:

 XFS (dm-0): metadata I/O error in "xfs\_imap\_to\_bp+0x61/0xe0 \[xfs\]" at daddr 0x491520 len 32 error 5
 XFS (dm-0): metadata I/O error in "xfs\_btree\_read\_buf\_block+0xba/0x160 \[xfs\]" at daddr 0x3445608 len 8 error 5
 XFS (dm-0): metadata I/O error in "xfs\_imap\_to\_bp+0x61/0xe0 \[xfs\]" at daddr 0x138e1c0 len 32 error 5
 XFS (dm-0): log I/O error -5
 XFS (dm-0): Metadata I/O Error (0x1) detected at xfs\_trans\_read\_buf\_map+0x1ea/0x4b0 \[xfs\] (fs/xfs/xfs\_trans\_buf.c:311).  Shutting down filesystem.
 XFS (dm-0): Please unmount the filesystem and rectify the problem(s)
 XFS (dm-0): Internal error dqp-\>q\_ino.reserved \< dqp-\>q\_ino.count at line 869 of file fs/xfs/xfs\_trans\_dquot.c.  Caller xfs\_trans\_dqresv+0x236/0x440 \[xfs\]
 XFS (dm-0): Corruption detected. Unmount and run xfs\_repair
 XFS (dm-0): Unmounting Filesystem be6bcbcc-9921-4deb-8d16-7cc94e335fa7

The system is stuck in unmount trying to lock a couple of inodes so that
they can be purged.  The dquot corruption notice above is a clue to what
happened -- a link() call tried to set up a transaction to link a child
into a directory.  Quota reservation for the transaction failed after IO
errors shut down the filesystem, but then we forgot to unlock the inodes
on our way out.  Fix that.

## Affected and fixed versions

- Linux: \>= bd5562111d58392298a3c3b93caad71dff681b4b, \< 6aefe5d97ae57b1343dc60d8bb6a4ed070e5bcea; \>= bd5562111d58392298a3c3b93caad71dff681b4b, \< 53b001a21c9dff73b64e8c909c41991f01d5d00f (cvelist)
- Linux: 6.10 (cvelist)

## Mitigation

- Upgrade Linux to 53b001a21c9dff73b64e8c909c41991f01d5d00f 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-55641. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-55641.md
Affected: Linux >= bd5562111d58392298a3c3b93caad71dff681b4b, < 6aefe5d97ae57b1343dc60d8bb6a4ed070e5bcea; >= bd5562111d58392298a3c3b93caad71dff681b4b, < 53b001a21c9dff73b64e8c909c41991f01d5d00f; Linux 6.10
Fixed in: Linux 6aefe5d97ae57b1343dc60d8bb6a4ed070e5bcea, Linux 53b001a21c9dff73b64e8c909c41991f01d5d00f

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-55641 being exploited?

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

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

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

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

Linux \>= bd5562111d58392298a3c3b93caad71dff681b4b, \< 6aefe5d97ae57b1343dc60d8bb6a4ed070e5bcea; \>= bd5562111d58392298a3c3b93caad71dff681b4b, \< 53b001a21c9dff73b64e8c909c41991f01d5d00f; Linux 6.10.

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

Yes. Fixed in Linux 6aefe5d97ae57b1343dc60d8bb6a4ed070e5bcea, Linux 53b001a21c9dff73b64e8c909c41991f01d5d00f. Upgrade Linux to 53b001a21c9dff73b64e8c909c41991f01d5d00f or later.

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

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/6aefe5d97ae57b1343dc60d8bb6a4ed070e5bcea>
- patch: <https://git.kernel.org/stable/c/53b001a21c9dff73b64e8c909c41991f01d5d00f>

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

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