HIGH Introduced in 6.11
gfs2 QuotaInit OOB
CVE-2026-97520
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
KernelScan AI3.4LOW
01Description
In the Linux kernel, the following vulnerability has been resolved: gfs2: move quota_init qc iterator increment Move qc++ from the loop body into the for-loop increment expression in gfs2_quota_init(). This keeps iterator progression explicit and avoids mixing pointer advance with duplicate-slot handling in the loop body.
02KernelScan AI Analysis
Risk summary
A bug in GFS2 quota initialization can cause an out-of-bounds read when mounting a crafted filesystem image. The issue requires local access with CAP_SYS_ADMIN to trigger via mount, limiting exposure to scenarios where an attacker can supply a malicious GFS2 disk image. Impact is limited to potential information disclosure and incorrect quota state.
Vulnerability analysis
During GFS2 filesystem mount, the quota initialization routine parses on-disk quota change entries using a pointer that is advanced inside the loop body rather than in the loop's increment expression. This placement causes the pointer to advance inconsistently relative to the loop counter when certain code paths—such as duplicate-slot handling—alter control flow, potentially reading beyond the intended buffer boundary. The fix moves the pointer advance into the for-loop increment expression so it progresses exactly once per iteration regardless of which path the body takes. The vulnerable code is reached only when mounting a GFS2 filesystem, which requires CAP_SYS_ADMIN in the initial namespace; it cannot be triggered by unprivileged users or from within a user namespace.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.12 | 6.11 | 6.12.111 | 04ec2f3b29b3 |
| 6.18 | 6.11 | 6.18.53 | 21a50a9373ad |
| mainline | 6.11 | 7.2 | 942202677f8f |
| cip/6.12 | 6.11 | 6.12.111-cip32 | 04ec2f3b29b3 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.111-cip32 |