{"api_version":"1","generated_at":"2026-08-21T21:42:29+00:00","cve":"CVE-2026-72461","urls":{"html":"https://cve.report/CVE-2026-72461","api":"https://cve.report/api/cve/CVE-2026-72461.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-72461","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-72461"},"summary":{"title":"apparmor: fix refcount leak when updating the sk_ctx","description":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: fix refcount leak when updating the sk_ctx\n\nCurrently update_sk_ctx() transfers the plabel reference, unfortunately\nit is also unconditionally put in the caller. Ideally we would make\nthe caller conditionally put the reference based on whether it was\ntransferred but for now just fix the bug by getting a reference.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-08-15 06:22:20","updated_at":"2026-08-17 06:19:13"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"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","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/b8642f1478982a97ca2eb59f70f631a9de42ae11","name":"https://git.kernel.org/stable/c/b8642f1478982a97ca2eb59f70f631a9de42ae11","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6d25e7b47616cb2db43351210929c8f19dc305a3","name":"https://git.kernel.org/stable/c/6d25e7b47616cb2db43351210929c8f19dc305a3","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/045dbe89ac31709abd73390d0805d52fece7ef39","name":"https://git.kernel.org/stable/c/045dbe89ac31709abd73390d0805d52fece7ef39","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-72461","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72461","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 88fec3526e84123997ecebd6bb6778eb4ce779b7 045dbe89ac31709abd73390d0805d52fece7ef39 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 88fec3526e84123997ecebd6bb6778eb4ce779b7 b8642f1478982a97ca2eb59f70f631a9de42ae11 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 88fec3526e84123997ecebd6bb6778eb4ce779b7 6d25e7b47616cb2db43351210929c8f19dc305a3 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.17","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.17 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.40 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.1.5 7.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"72461","cve":"CVE-2026-72461","epss":"0.001360000","percentile":"0.035430000","score_date":"2026-08-17","updated_at":"2026-08-18 00:11:47"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["security/apparmor/af_unix.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"045dbe89ac31709abd73390d0805d52fece7ef39","status":"affected","version":"88fec3526e84123997ecebd6bb6778eb4ce779b7","versionType":"git"},{"lessThan":"b8642f1478982a97ca2eb59f70f631a9de42ae11","status":"affected","version":"88fec3526e84123997ecebd6bb6778eb4ce779b7","versionType":"git"},{"lessThan":"6d25e7b47616cb2db43351210929c8f19dc305a3","status":"affected","version":"88fec3526e84123997ecebd6bb6778eb4ce779b7","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["security/apparmor/af_unix.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.17"},{"lessThan":"6.17","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.40","versionType":"semver"},{"lessThanOrEqual":"7.1.*","status":"unaffected","version":"7.1.5","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.40","versionStartIncluding":"6.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.1.5","versionStartIncluding":"6.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.2","versionStartIncluding":"6.17","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: fix refcount leak when updating the sk_ctx\n\nCurrently update_sk_ctx() transfers the plabel reference, unfortunately\nit is also unconditionally put in the caller. Ideally we would make\nthe caller conditionally put the reference based on whether it was\ntransferred but for now just fix the bug by getting a reference."}],"metrics":[{"cvssV3_1":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"AV:L - The bug is reached only through local Unix-domain socket operations (sendmsg/recvmsg SCM_RIGHTS fd passing, exec file inheritance, or socket file permission revalidation) that invoke AppArmor LSM hooks; it is not reachable via remote network protocols.\nAC:L - An attacker can reliably trigger update_sk_ctx() by creating connected abstract/anonymous AF_UNIX sockets and repeatedly passing the fd across AppArmor confinement boundaries, controlling both endpoints and syscall timing without external race luck.\nPR:L - Only a local unprivileged process subject to AppArmor confinement is required (typical Ubuntu snap/container workloads); no init-namespace root, CAP_MAC_ADMIN, or policy-loading privileges are needed to exercise unix socket mediation.\nUI:N - Exploitation is driven entirely by attacker-initiated syscalls and automated fd-receive paths; no additional voluntary action from another human user is required beyond normal daemon recvmsg behavior.\nS:U - The flaw corrupts AppArmor label refcounting in the host kernel heap; impact stays within the same kernel security authority and does not by itself cross VM, IOMMU, or container hypervisor boundaries.\nC:H - update_sk_ctx() stored plabel in peer_lastupdate without aa_get_label() while the caller aa_put_label(plabel), allowing aa_label objects to be freed while still referenced, creating a heap use-after-free readable via later pointer comparisons and teardown.\nI:H - Use-after-free/double-free of aa_label structures on socket teardown enables attacker-influenced heap reuse of label objects, which can be leveraged for arbitrary kernel memory corruption and local privilege escalation.\nA:H - Incorrect refcounting causes premature aa_label free and an extra aa_put_label() at sk teardown, provoking refcount underflow, kernel oops, or panic on AppArmor-enabled systems under repeated unix fd passing."}]}],"providerMetadata":{"dateUpdated":"2026-08-17T05:44:27.397Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/045dbe89ac31709abd73390d0805d52fece7ef39"},{"url":"https://git.kernel.org/stable/c/b8642f1478982a97ca2eb59f70f631a9de42ae11"},{"url":"https://git.kernel.org/stable/c/6d25e7b47616cb2db43351210929c8f19dc305a3"}],"title":"apparmor: fix refcount leak when updating the sk_ctx","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-72461","datePublished":"2026-08-15T05:57:06.042Z","dateReserved":"2026-08-09T03:40:39.933Z","dateUpdated":"2026-08-17T05:44:27.397Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-08-15 06:22:20","lastModifiedDate":"2026-08-17 06:19:13","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"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","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"72461","Ordinal":"1","Title":"apparmor: fix refcount leak when updating the sk_ctx","CVE":"CVE-2026-72461","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"72461","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: fix refcount leak when updating the sk_ctx\n\nCurrently update_sk_ctx() transfers the plabel reference, unfortunately\nit is also unconditionally put in the caller. Ideally we would make\nthe caller conditionally put the reference based on whether it was\ntransferred but for now just fix the bug by getting a reference.","Type":"Description","Title":"apparmor: fix refcount leak when updating the sk_ctx"}]}}}