Linux
fs: Fix uninitialized 'offp' in statmount_string()
In the Linux kernel, the following vulnerability has been resolved: fs: Fix uninitialized 'offp' in statmount_string() In statmount_string(), most flags assign an output offset pointer (offp) which is later updated with the string offset. However, the STATMOUNT_MNT_UIDMAP and STATMOUNT_MNT_GIDMAP cases directly set the struct fields instead of using offp. This leaves offp uninitialized, leading to a possible uninitialized dereference when *offp is updated. Fix it by assigning offp for UIDMAP and GIDMAP as well, keeping the code path consistent.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 37c4a9590e1efcae7749682239fc22a330d2d325, < acfde9400e611c8d2668f1c70053c4a1d6ecfc36
- >= 37c4a9590e1efcae7749682239fc22a330d2d325, < 0778ac7df5137d5041783fadfc201f8fd55a1d9b
Fixed in acfde9400e611c8d2668f1c70053c4a1d6ecfc36, 0778ac7df5137d5041783fadfc201f8fd55a1d9b
- 6.15
Fixed in 0, 6.17.10, 6.18
Mitigation
Upgrade Linux to acfde9400e611c8d2668f1c70053c4a1d6ecfc36 or 0778ac7df5137d5041783fadfc201f8fd55a1d9b or later.
Upgrade Linux to 0 or 6.17.10 or 6.18 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.