KernelScan.io

HIGH Introduced in 6.11

gfs2 QuotaInit OOB

CVE-2026-97520

CVSS 7.1 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

KernelScan AI3.4LOW

01

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.

02

Engine v0.6.0

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.

Affectedfs/gfs2/quota.c (gfs2 filesystem)

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.

03

BranchIntroducedFixed inPatch commit
6.126.116.12.11104ec2f3b29b3
6.186.116.18.5321a50a9373ad
mainline6.117.2942202677f8f
cip/6.126.116.12.111-cip3204ec2f3b29b3

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.111-cip32