{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-23410",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-01-13T15:37:46.013Z",
        "datePublished": "2026-04-01T08:36:39.202Z",
        "dateUpdated": "2026-08-05T12:21:30.404Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T12:21:30.404Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: fix race on rawdata dereference\n\nThere is a race condition that leads to a use-after-free situation:\nbecause the rawdata inodes are not refcounted, an attacker can start\nopen()ing one of the rawdata files, and at the same time remove the\nlast reference to this rawdata (by removing the corresponding profile,\nfor example), which frees its struct aa_loaddata; as a result, when\nseq_rawdata_open() is reached, i_private is a dangling pointer and\nfreed memory is accessed.\n\nThe rawdata inodes weren't refcounted to avoid a circular refcount and\nwere supposed to be held by the profile rawdata reference.  However\nduring profile removal there is a window where the vfs and profile\ndestruction race, resulting in the use after free.\n\nFix this by moving to a double refcount scheme. Where the profile\nrefcount on rawdata is used to break the circular dependency. Allowing\nfor freeing of the rawdata once all inode references to the rawdata\nare put."
                }
            ],
            "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 vulnerability is in AppArmor's securityfs interface, which is only accessible locally via filesystem operations (open/read on /sys/kernel/security/apparmor/ rawdata files). No network or adjacent attack vector exists.\nAC:L - The attacker controls both sides of the race — they can open rawdata files and simultaneously remove profiles in their own namespace. The race can be retried indefinitely, making exploitation reliable.\nPR:L - With default unprivileged_userns_apparmor_policy=1, an unprivileged local user can create a user namespace, obtain CAP_MAC_ADMIN within it, load/remove profiles, and trigger the race without real root privileges.\nUI:N - No user interaction is required. The attacker can trigger both sides of the race (opening rawdata files and removing profiles) entirely autonomously.\nS:U - This is a standard kernel privilege escalation within the same security authority (kernel context). No VM escape, IOMMU bypass, or sandbox boundary crossing is involved.\nC:H - The use-after-free allows the attacker to control the contents of the freed aa_loaddata allocation via heap spraying, enabling arbitrary kernel memory reads and information disclosure.\nI:H - The use-after-free enables heap spraying to place attacker-controlled data in the freed allocation, providing arbitrary write primitives and potential code execution in kernel context.\nA:H - The use-after-free causes access to freed memory which reliably triggers kernel crashes (oops/panic), especially since kfree_sensitive zeros the freed memory, causing NULL pointer dereferences on the stale data."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "security/apparmor/apparmorfs.c",
                        "security/apparmor/include/policy_unpack.h",
                        "security/apparmor/policy.c",
                        "security/apparmor/policy_unpack.c"
                    ],
                    "versions": [
                        {
                            "version": "5d5182cae40115c03933989473288e54afb39c7c",
                            "lessThan": "3b8e77c7abab40e6de9ad9de730d77984a498840",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "5d5182cae40115c03933989473288e54afb39c7c",
                            "lessThan": "d9d8560b9b7932f8cffc4c068c14289220900f79",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "5d5182cae40115c03933989473288e54afb39c7c",
                            "lessThan": "6b6ba87579c7e7c669e0bec91823e7fb693bc5df",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "5d5182cae40115c03933989473288e54afb39c7c",
                            "lessThan": "6ef1f2926c41ab96952d9696d55a052f1b3a9418",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "5d5182cae40115c03933989473288e54afb39c7c",
                            "lessThan": "f9761add6d100962a23996cb68f3d6abdd4d1815",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "5d5182cae40115c03933989473288e54afb39c7c",
                            "lessThan": "af782cc8871e3683ddd5a3cd2f7df526599863a9",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "5d5182cae40115c03933989473288e54afb39c7c",
                            "lessThan": "763e838adc3c7ec5a7df2990ce84cad951e42721",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "5d5182cae40115c03933989473288e54afb39c7c",
                            "lessThan": "a0b7091c4de45a7325c8780e6934a894f92ac86b",
                            "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/apparmorfs.c",
                        "security/apparmor/include/policy_unpack.h",
                        "security/apparmor/policy.c",
                        "security/apparmor/policy_unpack.c"
                    ],
                    "versions": [
                        {
                            "version": "4.13",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.13",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.253",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.203",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.169",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.130",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.77",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.18",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.19.8",
                            "lessThanOrEqual": "6.19.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.0",
                            "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": "4.13",
                                    "versionEndExcluding": "5.10.253"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "5.15.203"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "6.1.169"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "6.6.130"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "6.12.77"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "6.18.18"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "6.19.8"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "7.0"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/3b8e77c7abab40e6de9ad9de730d77984a498840"
                },
                {
                    "url": "https://git.kernel.org/stable/c/d9d8560b9b7932f8cffc4c068c14289220900f79"
                },
                {
                    "url": "https://git.kernel.org/stable/c/6b6ba87579c7e7c669e0bec91823e7fb693bc5df"
                },
                {
                    "url": "https://git.kernel.org/stable/c/6ef1f2926c41ab96952d9696d55a052f1b3a9418"
                },
                {
                    "url": "https://git.kernel.org/stable/c/f9761add6d100962a23996cb68f3d6abdd4d1815"
                },
                {
                    "url": "https://git.kernel.org/stable/c/af782cc8871e3683ddd5a3cd2f7df526599863a9"
                },
                {
                    "url": "https://git.kernel.org/stable/c/763e838adc3c7ec5a7df2990ce84cad951e42721"
                },
                {
                    "url": "https://git.kernel.org/stable/c/a0b7091c4de45a7325c8780e6934a894f92ac86b"
                }
            ],
            "title": "apparmor: fix race on rawdata dereference",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}