xfs: don't wrap around quota ids in dqiterate
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
xfs: don't wrap around quota ids in dqiterate
LOLLM noticed that q_id is an unsigned 32-bit variable. If it happens to be set to XFS_DQ_ID_MAX due to a filesystem that actually has a dquot for ID_MAX, then this addition will truncate to zero and the iteration starts over. Fix this by casting to u64.
From the CVE record · Linux
In the Linux kernel’s XFS dqiterate, a 32-bit quota ID can wrap to zero and restart iteration when the filesystem has a dquot for XFS_DQ_ID_MAX. The input does not establish an attacker action or specify whether exploitation requires local or network access, authentication, or user interaction.
Engineers running the Linux kernel with XFS should check their systems; affected versions are not specified.