VDB

CVE-2024-55641

CVE-2024-55641 PUBLISHED

xfs: unlock inodes when erroring out of xfs_trans_alloc_dir

Reported by linux · Published January 11, 2025

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.

EPSS 0.18% · 7.2th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
LinuxLinux6aefe5d97ae57b1343dc60d8bb6a4ed070e5bcea, 6.10, 53b001a21c9dff73b64e8c909c41991f01d5d00f

Risk scores

EPSS Score
0.18%
7.2th percentile

Affected products

VendorProductVersions
LinuxLinuxbd5562111d58392298a3c3b93caad71dff681b4b, bd5562111d58392298a3c3b93caad71dff681b4b
LinuxLinux6.10, 0, 6.12.6
LinuxLinux0, 6.13, *
linuxlinux_kernel6.10, 6.10

Timeline

  • Jan 11, 2025 CVE Published
  • Jan 12, 2025 EPSS Score (30 in total, the first dated here)
  • May 26, 2025 Coalition ESS Score (7 in total, the first dated here)
  • Dec 30, 2025 Security Advisory (127 in total, the first dated here)
  • Sep 24, 2026 Distribution Patch (111 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-55641
vulnetix vdb fixes CVE-2024-55641

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-55641/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›