CVE-2025-68212

fs: Fix uninitialized 'offp' in statmount_string()

State
Published
Severity
7.8 High
Published
Dec 16, 2025
Updated
Aug 5, 2026
Reserved
Dec 16, 2025

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 37c4a9590e1efcae7749682239fc22a330d2d325 to before acfde9400e611c8d2668f1c70053c4a1d6ecfc36Affected
  • 37c4a9590e1efcae7749682239fc22a330d2d325 to before 0778ac7df5137d5041783fadfc201f8fd55a1d9bAffected
LinuxLinux
  • 6.15Affected
  • before 6.15Not affected
  • 6.17.10 through 6.17.*Not affected
  • 6.18 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.