All reports
Low

kernel: fs: Fix uninitialized 'offp' in statmount_string()

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-68212

Probability of exploitation in the next 30 days: 0.16%

FIRST EPSS · 2026-11-22

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.

A flaw was found in the Linux kernel. The statmount_string() function, when processing STATMOUNT_MNT_UIDMAP or STATMOUNT_MNT_GIDMAP flags, fails to initialize an offset pointer (offp). This oversight can lead to an uninitialized dereference when the pointer is later accessed. A local attacker could exploit this vulnerability to cause a denial of service (system crash).