All reports
Medium

kernel: xfs: don't let hidden_space go negative in xfs_metafile_resv_init

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-98446

Probability of exploitation in the next 30 days: 0.17%

FIRST EPSS · 2026-11-17

Description

In the Linux kernel, the following vulnerability has been resolved: xfs: don't let hidden_space go negative in xfs_metafile_resv_init LOLLM points out that if the amount of fdblocks that we can reserve for a metadata btree file goes below the space already used by that file, then the hidden_space subtraction can underflow, causing xfs_dec_fdblocks to subtract a huge amount of space. We never want the target to be less than the used sapce, so fix the logic that adjusts dblocks_avail downwards. Also fix an error in the adjacent comment.

A flaw was found in the Linux kernel's XFS file system. When calculating space reservations for file system metadata, the kernel does not prevent an arithmetic underflow if the available reservable blocks drop below the amount already in use. A local user could exploit this condition during file operations to cause an excessively large subtraction of available space, resulting in file system corruption or a Denial of Service (DoS).