{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-64111",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-07-19T07:54:57.035Z",
        "datePublished": "2026-07-19T15:40:13.007Z",
        "dateUpdated": "2026-08-05T12:39:20.048Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T12:39:20.048Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nlsm: hold cred_guard_mutex for lsm_set_self_attr()\n\nJust as proc_pid_attr_write() already does before calling the LSM\nhook. This only matters for SELinux and AppArmor which check\nwhether the process is being ptraced and if so, whether to\nallow the transition."
                }
            ],
            "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:N",
                        "baseScore": 7.1,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - Exploitation requires invoking the `lsm_set_self_attr` syscall (NR 460), which is strictly a local kernel entry point with no network, adjacent-wireless, or physical-device path to the vulnerable code.\nAC:L - The bug is a TOCTOU race between `lsm_set_self_attr` and concurrent ptrace attach/detach; an attacker can control both the tracee thread issuing the syscall and a tracer thread (e.g., via fork/PTRACE_TRACEME), making the race reliably winnable without conditions outside attacker control.\nPR:L - Any unprivileged local user can reach `sys_lsm_set_self_attr`; there is no capability or root requirement at the syscall boundary, and ptrace coordination is achievable within the same UID via standard unprivileged ptrace APIs.\nUI:N - Exploitation does not require any action from a separate victim user such as opening a file or mounting a filesystem; the attacker drives both the setattr syscall and the ptrace race directly.\nS:U - Successful exploitation changes the calling process's LSM credentials within the same kernel/OS security authority (SELinux domain or AppArmor profile transition), constituting standard local MAC bypass rather than crossing a VM, container-host, or IOMMU boundary.\nC:H - Bypassing the ptrace-mediated transition check allows committing a new SELinux SID or AppArmor profile without tracer authorization, granting read access to data and resources denied under the prior confined context.\nI:H - The attack culminates in `commit_creds()` with an unauthorized LSM security context (SELinux `crsec->sid` or AppArmor label replacement), constituting arbitrary modification of the process's mandatory access control identity and associated permissions.\nA:N - The vulnerability is a missing mutex enabling a policy-bypass race; it does not involve memory corruption, kernel oops, panic, hang, or other availability-impacting failure modes."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "security/lsm_syscalls.c"
                    ],
                    "versions": [
                        {
                            "version": "a04a1198088a1378d0389c250cc684f649bcc91e",
                            "lessThan": "82d3acee88593e3d9e71cad4b7d6b3cf70de9d07",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a04a1198088a1378d0389c250cc684f649bcc91e",
                            "lessThan": "5b906f31e977286888a9e31282589b545b249139",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a04a1198088a1378d0389c250cc684f649bcc91e",
                            "lessThan": "a010cadaf5727b8417f62fe9021fcef14a5f9b51",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a04a1198088a1378d0389c250cc684f649bcc91e",
                            "lessThan": "4a9b16541ad3faf8bccb398532bf3f8b6bbf1188",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "security/lsm_syscalls.c"
                    ],
                    "versions": [
                        {
                            "version": "6.8",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.8",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.92",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.34",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.0.11",
                            "lessThanOrEqual": "7.0.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.1",
                            "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.8",
                                    "versionEndExcluding": "6.12.92"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.8",
                                    "versionEndExcluding": "6.18.34"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.8",
                                    "versionEndExcluding": "7.0.11"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.8",
                                    "versionEndExcluding": "7.1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/82d3acee88593e3d9e71cad4b7d6b3cf70de9d07"
                },
                {
                    "url": "https://git.kernel.org/stable/c/5b906f31e977286888a9e31282589b545b249139"
                },
                {
                    "url": "https://git.kernel.org/stable/c/a010cadaf5727b8417f62fe9021fcef14a5f9b51"
                },
                {
                    "url": "https://git.kernel.org/stable/c/4a9b16541ad3faf8bccb398532bf3f8b6bbf1188"
                }
            ],
            "title": "lsm: hold cred_guard_mutex for lsm_set_self_attr()",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}