{"id":"CVE-2026-64111","state":"PUBLISHED","title":"lsm: hold cred_guard_mutex for lsm_set_self_attr()","description":"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.","publishedAt":"2026-07-19T15:40:13.007Z","updatedAt":"2026-08-05T12:39:20.048Z","severity":{"score":7.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a04a1198088a1378d0389c250cc684f649bcc91e","status":"affected","lessThan":"82d3acee88593e3d9e71cad4b7d6b3cf70de9d07","versionType":"git"},{"version":"a04a1198088a1378d0389c250cc684f649bcc91e","status":"affected","lessThan":"5b906f31e977286888a9e31282589b545b249139","versionType":"git"},{"version":"a04a1198088a1378d0389c250cc684f649bcc91e","status":"affected","lessThan":"a010cadaf5727b8417f62fe9021fcef14a5f9b51","versionType":"git"},{"version":"a04a1198088a1378d0389c250cc684f649bcc91e","status":"affected","lessThan":"4a9b16541ad3faf8bccb398532bf3f8b6bbf1188","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/lsm_syscalls.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.8","versionType":"semver"},{"version":"6.12.92","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.34","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.11","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/lsm_syscalls.c"]}],"references":["https://git.kernel.org/stable/c/82d3acee88593e3d9e71cad4b7d6b3cf70de9d07","https://git.kernel.org/stable/c/5b906f31e977286888a9e31282589b545b249139","https://git.kernel.org/stable/c/a010cadaf5727b8417f62fe9021fcef14a5f9b51","https://git.kernel.org/stable/c/4a9b16541ad3faf8bccb398532bf3f8b6bbf1188"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:41.951Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/64xxx/CVE-2026-64111.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-64111","state":"PUBLISHED","datePublished":"2026-07-19T15:40:13.007Z","dateUpdated":"2026-08-05T12:39:20.048Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-07-19T07:54:57.035Z"},"containers":{"cna":{"title":"lsm: hold cred_guard_mutex for lsm_set_self_attr()","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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a04a1198088a1378d0389c250cc684f649bcc91e","status":"affected","lessThan":"82d3acee88593e3d9e71cad4b7d6b3cf70de9d07","versionType":"git"},{"version":"a04a1198088a1378d0389c250cc684f649bcc91e","status":"affected","lessThan":"5b906f31e977286888a9e31282589b545b249139","versionType":"git"},{"version":"a04a1198088a1378d0389c250cc684f649bcc91e","status":"affected","lessThan":"a010cadaf5727b8417f62fe9021fcef14a5f9b51","versionType":"git"},{"version":"a04a1198088a1378d0389c250cc684f649bcc91e","status":"affected","lessThan":"4a9b16541ad3faf8bccb398532bf3f8b6bbf1188","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/lsm_syscalls.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.8","versionType":"semver"},{"version":"6.12.92","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.34","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.11","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/lsm_syscalls.c"]}],"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"}],"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."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:39:20.048Z"},"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"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}