Description
In the Linux kernel, the following vulnerability has been resolved:

lsm: hold cred_guard_mutex for lsm_set_self_attr()

Just as proc_pid_attr_write() already does before calling the LSM
hook. This only matters for SELinux and AppArmor which check
whether the process is being ptraced and if so, whether to
allow the transition.
Published: 2026-07-19
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel's lsm_set_self_attr() routine does not acquire the cred_guard_mutex before performing security checks, violating the mutex locking discipline described in CWE‑412. This omission creates a race condition that a local process can exploit while ptrace checks are underway. By manipulating the timing, an attacker can alter its own security attributes before the mutex is acquired, potentially bypassing SELinux or AppArmor policies and elevating privileges.

Affected Systems

All Linux kernel releases that ship with SELinux or AppArmor enabled and that have not yet incorporated the patch fixing the missing cred_guard_mutex acquisition are affected. The CPE list shows kernel 7.1 rc1 through rc4; the issue likely applies to earlier versions as well. For any kernel that supports these Security Module hooks and runs with SELinux/AppArmor, the vulnerability is present unless the patch has been applied.

Risk and Exploitability

The CVSS score of 7.1 indicates a High severity. The EPSS score of less than 1% implies a low current exploitation probability. The issue is not listed in the CISA KEV catalog. The attack vector is local; an attacker must trigger a race condition during a ptrace operation to exploit the flaw, as inferred from the description.

Generated by OpenCVE AI on August 13, 2026 at 12:53 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the kernel to a version that includes the patch for acquiring cred_guard_mutex in lsm_set_self_attr()
  • If an immediate kernel upgrade is not possible, temporarily disable SELinux or AppArmor to remove the ptrace permission checks that trigger the race condition
  • Monitor for ptrace operations and unexpected changes in LSM attributes to detect possible exploitation

Generated by OpenCVE AI on August 13, 2026 at 12:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8593-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8663-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8664-1 Linux kernel (NVIDIA BaseOS) vulnerabilities
History

Wed, 12 Aug 2026 16:00:00 +0000

Type Values Removed Values Added
Weaknesses NVD-CWE-noinfo
CPEs cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*

Sun, 26 Jul 2026 08:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-852

Tue, 21 Jul 2026 22:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-852

Tue, 21 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-412
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 20 Jul 2026 14:45:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'}


Sun, 19 Jul 2026 16:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: lsm: hold cred_guard_mutex for lsm_set_self_attr() Just as proc_pid_attr_write() already does before calling the LSM hook. This only matters for SELinux and AppArmor which check whether the process is being ptraced and if so, whether to allow the transition.
Title lsm: hold cred_guard_mutex for lsm_set_self_attr()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-05T12:39:20.048Z

Reserved: 2026-07-19T07:54:57.035Z

Link: CVE-2026-64111

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-07-19T16:17:52.463

Modified: 2026-08-12T15:50:39.560

Link: CVE-2026-64111

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-19T00:00:00Z

Links: CVE-2026-64111 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T13:00:04Z

Weaknesses