{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-72461",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-08-09T03:40:39.933Z",
        "datePublished": "2026-08-15T05:57:06.042Z",
        "dateUpdated": "2026-08-17T05:44:27.397Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-17T05:44:27.397Z"
            },
            "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": {
                        "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"
                    },
                    "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."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "security/apparmor/af_unix.c"
                    ],
                    "versions": [
                        {
                            "version": "88fec3526e84123997ecebd6bb6778eb4ce779b7",
                            "lessThan": "045dbe89ac31709abd73390d0805d52fece7ef39",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "88fec3526e84123997ecebd6bb6778eb4ce779b7",
                            "lessThan": "b8642f1478982a97ca2eb59f70f631a9de42ae11",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "88fec3526e84123997ecebd6bb6778eb4ce779b7",
                            "lessThan": "6d25e7b47616cb2db43351210929c8f19dc305a3",
                            "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/apparmor/af_unix.c"
                    ],
                    "versions": [
                        {
                            "version": "6.17",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.17",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.40",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.1.5",
                            "lessThanOrEqual": "7.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.2",
                            "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.17",
                                    "versionEndExcluding": "6.18.40"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.17",
                                    "versionEndExcluding": "7.1.5"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.17",
                                    "versionEndExcluding": "7.2"
                                }
                            ]
                        }
                    ]
                }
            ],
            "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"
            }
        }
    }
}