{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2025-68212",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2025-12-16T13:41:40.256Z",
        "datePublished": "2025-12-16T13:57:08.327Z",
        "dateUpdated": "2026-08-05T12:10:14.921Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T12:10:14.921Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nfs: Fix uninitialized 'offp' in statmount_string()\n\nIn statmount_string(), most flags assign an output offset pointer (offp)\nwhich is later updated with the string offset. However, the\nSTATMOUNT_MNT_UIDMAP and STATMOUNT_MNT_GIDMAP cases directly set the\nstruct fields instead of using offp. This leaves offp uninitialized,\nleading to a possible uninitialized dereference when *offp is updated.\n\nFix it by assigning offp for UIDMAP and GIDMAP as well, keeping the code\npath consistent."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7.8,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - The vulnerability is reached through the local statmount() syscall by requesting UID or GID mappings for an idmapped mount.\nAC:L - No race or uncontrollable condition is required; an attacker can reliably issue the request against a visible idmapped mount with a resolvable mapping.\nPR:L - No capability is required for a mount reachable beneath the caller's root, and an unprivileged user can access or create suitable idmapped mounts through user namespaces.\nUI:N - Exploitation requires only attacker-controlled syscalls and no action by another user.\nS:U - The corruption affects the host kernel within the same operating-system security authority, so ordinary privilege escalation does not change scope.\nC:H - The uninitialized write can partially corrupt seq.buf before it is used as a copy_to_user() source, creating a plausible kernel-memory disclosure primitive.\nI:H - The four-byte kernel write corrupts live pointers such as root.mnt or seq.buf, which are subsequently passed to mntput() or kvfree(), enabling further memory corruption and potential code execution.\nA:H - The malformed pointer is subsequently dereferenced or freed, producing a repeatable kernel oops and potentially a system-wide panic."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/namespace.c"
                    ],
                    "versions": [
                        {
                            "version": "37c4a9590e1efcae7749682239fc22a330d2d325",
                            "lessThan": "acfde9400e611c8d2668f1c70053c4a1d6ecfc36",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "37c4a9590e1efcae7749682239fc22a330d2d325",
                            "lessThan": "0778ac7df5137d5041783fadfc201f8fd55a1d9b",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/namespace.c"
                    ],
                    "versions": [
                        {
                            "version": "6.15",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.15",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.17.10",
                            "lessThanOrEqual": "6.17.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.15",
                                    "versionEndExcluding": "6.17.10"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.15",
                                    "versionEndExcluding": "6.18"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/acfde9400e611c8d2668f1c70053c4a1d6ecfc36"
                },
                {
                    "url": "https://git.kernel.org/stable/c/0778ac7df5137d5041783fadfc201f8fd55a1d9b"
                }
            ],
            "title": "fs: Fix uninitialized 'offp' in statmount_string()",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}