{"id":"CVE-2026-72460","state":"PUBLISHED","title":"apparmor: check label build before no_new_privs test","description":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: check label build before no_new_privs test\n\naa_change_profile() builds a replacement label with\nfn_label_build_in_scope() before the no_new_privs subset check. The build\nhelper can fail and return NULL or an ERR_PTR, but the result was passed\nto aa_label_is_unconfined_subset() before the existing IS_ERR_OR_NULL()\ncheck.\n\nReuse the existing target-label build failure handling immediately after\nthe build. This preserves the current audit handling while preventing the\nsubset helper from dereferencing an invalid label.","publishedAt":"2026-08-15T05:57:05.404Z","updatedAt":"2026-08-17T05:44:26.306Z","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:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e00b02bb6ac2a1893227ce8014b649028d6425d2","status":"affected","lessThan":"a29f06db44b4c94597ded58f639eed3e21781ac3","versionType":"git"},{"version":"e00b02bb6ac2a1893227ce8014b649028d6425d2","status":"affected","lessThan":"cfc224866530a6842b6c2d2d30ef6a9b0e64bb9c","versionType":"git"},{"version":"e00b02bb6ac2a1893227ce8014b649028d6425d2","status":"affected","lessThan":"31cb109db5e6322ed22304fd5c0dedbaa438d6d3","versionType":"git"},{"version":"e00b02bb6ac2a1893227ce8014b649028d6425d2","status":"affected","lessThan":"b7c45c05a396a017c49ac7949de240a0dfc0ac4e","versionType":"git"},{"version":"e00b02bb6ac2a1893227ce8014b649028d6425d2","status":"affected","lessThan":"d84bb195d208adbf77f012ca2a96e11163f6def1","versionType":"git"},{"version":"e00b02bb6ac2a1893227ce8014b649028d6425d2","status":"affected","lessThan":"d82160132345688a09cbaa648cfdd16bb32e8ea2","versionType":"git"},{"version":"e00b02bb6ac2a1893227ce8014b649028d6425d2","status":"affected","lessThan":"ec926b2a351eeeb31e6c9aee02e0c32f94b5588f","versionType":"git"},{"version":"e00b02bb6ac2a1893227ce8014b649028d6425d2","status":"affected","lessThan":"a58cafd38b46fb1a2220e2fbbcfe291ea75fa147","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/apparmor/domain.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.13","versionType":"semver"},{"version":"5.10.261","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.212","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.178","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.145","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.97","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/apparmor/domain.c"]}],"references":["https://git.kernel.org/stable/c/a29f06db44b4c94597ded58f639eed3e21781ac3","https://git.kernel.org/stable/c/cfc224866530a6842b6c2d2d30ef6a9b0e64bb9c","https://git.kernel.org/stable/c/31cb109db5e6322ed22304fd5c0dedbaa438d6d3","https://git.kernel.org/stable/c/b7c45c05a396a017c49ac7949de240a0dfc0ac4e","https://git.kernel.org/stable/c/d84bb195d208adbf77f012ca2a96e11163f6def1","https://git.kernel.org/stable/c/d82160132345688a09cbaa648cfdd16bb32e8ea2","https://git.kernel.org/stable/c/ec926b2a351eeeb31e6c9aee02e0c32f94b5588f","https://git.kernel.org/stable/c/a58cafd38b46fb1a2220e2fbbcfe291ea75fa147"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:58.252Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/72xxx/CVE-2026-72460.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-72460","state":"PUBLISHED","datePublished":"2026-08-15T05:57:05.404Z","dateUpdated":"2026-08-17T05:44:26.306Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-09T03:40:39.932Z"},"containers":{"cna":{"title":"apparmor: check label build before no_new_privs test","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: check label build before no_new_privs test\n\naa_change_profile() builds a replacement label with\nfn_label_build_in_scope() before the no_new_privs subset check. The build\nhelper can fail and return NULL or an ERR_PTR, but the result was passed\nto aa_label_is_unconfined_subset() before the existing IS_ERR_OR_NULL()\ncheck.\n\nReuse the existing target-label build failure handling immediately after\nthe build. This preserves the current audit handling while preventing the\nsubset helper from dereferencing an invalid label."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e00b02bb6ac2a1893227ce8014b649028d6425d2","status":"affected","lessThan":"a29f06db44b4c94597ded58f639eed3e21781ac3","versionType":"git"},{"version":"e00b02bb6ac2a1893227ce8014b649028d6425d2","status":"affected","lessThan":"cfc224866530a6842b6c2d2d30ef6a9b0e64bb9c","versionType":"git"},{"version":"e00b02bb6ac2a1893227ce8014b649028d6425d2","status":"affected","lessThan":"31cb109db5e6322ed22304fd5c0dedbaa438d6d3","versionType":"git"},{"version":"e00b02bb6ac2a1893227ce8014b649028d6425d2","status":"affected","lessThan":"b7c45c05a396a017c49ac7949de240a0dfc0ac4e","versionType":"git"},{"version":"e00b02bb6ac2a1893227ce8014b649028d6425d2","status":"affected","lessThan":"d84bb195d208adbf77f012ca2a96e11163f6def1","versionType":"git"},{"version":"e00b02bb6ac2a1893227ce8014b649028d6425d2","status":"affected","lessThan":"d82160132345688a09cbaa648cfdd16bb32e8ea2","versionType":"git"},{"version":"e00b02bb6ac2a1893227ce8014b649028d6425d2","status":"affected","lessThan":"ec926b2a351eeeb31e6c9aee02e0c32f94b5588f","versionType":"git"},{"version":"e00b02bb6ac2a1893227ce8014b649028d6425d2","status":"affected","lessThan":"a58cafd38b46fb1a2220e2fbbcfe291ea75fa147","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/apparmor/domain.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.13","versionType":"semver"},{"version":"5.10.261","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.212","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.178","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.145","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.97","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/apparmor/domain.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/a29f06db44b4c94597ded58f639eed3e21781ac3"},{"url":"https://git.kernel.org/stable/c/cfc224866530a6842b6c2d2d30ef6a9b0e64bb9c"},{"url":"https://git.kernel.org/stable/c/31cb109db5e6322ed22304fd5c0dedbaa438d6d3"},{"url":"https://git.kernel.org/stable/c/b7c45c05a396a017c49ac7949de240a0dfc0ac4e"},{"url":"https://git.kernel.org/stable/c/d84bb195d208adbf77f012ca2a96e11163f6def1"},{"url":"https://git.kernel.org/stable/c/d82160132345688a09cbaa648cfdd16bb32e8ea2"},{"url":"https://git.kernel.org/stable/c/ec926b2a351eeeb31e6c9aee02e0c32f94b5588f"},{"url":"https://git.kernel.org/stable/c/a58cafd38b46fb1a2220e2fbbcfe291ea75fa147"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","baseScore":7.1,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The flaw is reached only through a local write to /proc/self/attr/current or /proc/self/attr/exec (changeprofile/exec), which flows through proc_pid_attr_write and the AppArmor setprocattr hook into aa_change_profile(); there is no network, adjacent-radio, or physical-device entry point.\nAC:L - Once a confined task with policy-granted changeprofile and PR_SET_NO_NEW_PRIVS calls the interface, fn_label_build_in_scope() failure (e.g., GFP_KERNEL ENOMEM from memory pressure) is reliably attacker-influenced and immediately triggers the invalid dereference without races or victim-dependent timing.\nPR:L - Exploitation requires a local unprivileged process confined by AppArmor whose policy permits changeprofile/onexec to the requested target; prctl(PR_SET_NO_NEW_PRIVS) is self-settable and does not require real root or init-namespace capabilities.\nUI:N - The attacker triggers the bug by writing to their own process attribute file; no separate victim action such as opening a file, mounting a filesystem, or clicking a link is required.\nS:U - The vulnerable AppArmor kernel code and the resulting kernel oops/panic affect the same OS security authority; this is not a VM escape, IOMMU bypass, or cross-authority sandbox breakout as defined by CVSS scope.\nC:H - aa_label_is_unconfined_subset() dereferences the failed label pointer (NULL or ERR_PTR) to read aa_label fields such as size/vec; ERR_PTR values are non-NULL kernel-range addresses, so the fault path includes an invalid kernel-memory read that can leak data before oops under worst-case layout.\nI:N - The bug performs invalid reads through a bad label pointer and does not write memory, corrupt adjacent objects, or complete an unauthorized aa_replace_current_label(); failed builds are still rejected later, so integrity impact is limited to the read-side fault rather than modification or code execution.\nA:H - Dereferencing NULL or ERR_PTR labels in aa_label_is_unconfined_subset() causes a kernel BUG/oops/panic, yielding host-wide denial of service on AppArmor-enabled systems and repeatable crashes from the same procattr write."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-17T05:44:26.306Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"5.10.261"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"5.15.212"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"6.1.178"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"6.6.145"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"6.12.97"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"6.18.40"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"7.1.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}