CVE-2025-68212
JSON

7.8high

fs: Fix uninitialized 'offp' in statmount_string()

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.15% (higher than 4% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 37c4a9590e1efcae7749682239fc22a330d2d325 before acfde9400e611c8d2668f1c70053c4a1d6ecfc36, from 37c4a9590e1efcae7749682239fc22a330d2d325 before 0778ac7df5137d5041783fadfc201f8fd55a1d9b, 6.15
Not affected: before 6.15, from 6.17.10 up to 6.17.*, from 6.18 up to *
CVE List

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: fs: Corrección de 'offp' no inicializado en statmount_string() En statmount_string(), la mayoría de las banderas asignan un puntero de desplazamiento de salida (offp) que luego se actualiza con el desplazamiento de la cadena. Sin embargo, los casos STATMOUNT_MNT_UIDMAP y STATMOUNT_MNT_GIDMAP establecen directamente los campos de la estructura en lugar de usar offp. Esto deja a offp sin inicializar, lo que lleva a una posible desreferencia no inicializada cuando offp se actualiza. Corríjalo asignando offp también para UIDMAP y GIDMAP, manteniendo la ruta del código consistente.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-68212 changed 2026-08-05CVE Terms of Use
NVDCVE-2025-68212 changed 2026-10-14Public domain