{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-72462",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-08-09T03:40:39.933Z",
        "datePublished": "2026-08-15T05:57:06.705Z",
        "dateUpdated": "2026-08-17T05:44:28.507Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-17T05:44:28.507Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: fix race in unix socket mediation when peer_path is used\n\nThe holding a reference to the peer_sk is not enough to ensure access\nto the peer sk path. Accessing the path outside of the state lock\nallows for a race with unix_release_sock(). Fix this by taking the\nstate lock and getting a reference to the path under lock.\n\nIdeally for connected sockets we would cache this information so we\ndon't have to take the lock here. But for now just fix the race."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
                        "baseScore": 8.8,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - Exploitation requires local Unix domain socket syscalls (connect/read/write/close) that reach the AppArmor file_permission LSM hook on a connected PF_UNIX socket; there is no network packet or remote protocol path to this code.\nAC:L - The attacker controls both ends of the race by concurrently I/O'ing on an abstract/anonymous socket connected to a filesystem-bound peer while closing the peer socket, repeatedly timing read/write against peer teardown until the window is hit.\nPR:L - Any unprivileged local user can create and connect Unix sockets and trigger revalidation on confined workloads (snaps, containers, desktop services on AppArmor-enabled Ubuntu/Debian); no real-root or init-namespace capabilities are required.\nUI:N - Exploitation is fully attacker-driven through automated concurrent socket operations and does not require any victim user action such as opening files or mounting filesystems.\nS:C - Winning the race can bypass AppArmor Unix peer_path mediation (implicit allow when dentry is cleared) or corrupt kernel objects via dentry UAF, crossing the AppArmor confinement boundary that normally separates confined from unconfined authority.\nC:H - Use-after-free of the peer socket's dentry/inode during unix_fs_perm/aa_path_perm allows dereferencing freed kernel heap memory, which per kernel CVSS guidance for UAF enables arbitrary kernel memory disclosure primitives.\nI:H - The UAF on struct path/dentry/inode is heap memory corruption that can be leveraged for arbitrary kernel writes and control-flow hijack; the race can also silently bypass AppArmor peer filesystem permission enforcement.\nA:H - Dereferencing a released peer_path dentry in unix_fs_perm can cause kernel oops/panic; UAF during active socket I/O on production AppArmor-confined services (D-Bus, journald, snap apps) enables repeatable denial of service."
                        }
                    ]
                }
            ],
            "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": "bc6e5f6933b8e7b74858ac830d5b9b4ca10a099a",
                            "lessThan": "d8ea44f6090c087fe255d9512fb808574b4d88e8",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "bc6e5f6933b8e7b74858ac830d5b9b4ca10a099a",
                            "lessThan": "d680472db98823d90fc91362910901e468269318",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "bc6e5f6933b8e7b74858ac830d5b9b4ca10a099a",
                            "lessThan": "b1aea2c1960771a276d7e68c7424168eccd0c3da",
                            "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/d8ea44f6090c087fe255d9512fb808574b4d88e8"
                },
                {
                    "url": "https://git.kernel.org/stable/c/d680472db98823d90fc91362910901e468269318"
                },
                {
                    "url": "https://git.kernel.org/stable/c/b1aea2c1960771a276d7e68c7424168eccd0c3da"
                }
            ],
            "title": "apparmor: fix race in unix socket mediation when peer_path is used",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}