{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-99838",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-09-25T10:25:14.437Z",
        "datePublished": "2026-11-30T13:17:31.392Z",
        "dateUpdated": "2026-11-30T13:17:31.392Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-30T13:17:31.392Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: fix refcount leak in aa_get_newest_profile()\n\nThe labels_profile() macro is evaluating its argument twice\n\n  #define labels_profile(X) ((X)->vec[(X)->size - 1])\n\nunfortunately aa_get_newest_profile() passes\n   aa_get_newest_label(&p->label)\nso every call to aa_get_newest_profile results in 2 refcounts\nbeing taken with one being leaked.\n\nThere is no need for labels_profile() to be a macro. Convert it to\nan inline fn, which ensures all uses are passing the correct struct\nand removes the double evaluation."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "security/apparmor/include/label.h",
                        "security/apparmor/label.c"
                    ],
                    "versions": [
                        {
                            "version": "637f688dc3dc304a89f441d76f49a0e35bc49c08",
                            "lessThan": "d8a4aac994f8497b20ace6c3ca33425c80ab7492",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "637f688dc3dc304a89f441d76f49a0e35bc49c08",
                            "lessThan": "c70aba4b08a081cae49aaa7f94e76758b221b01b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "637f688dc3dc304a89f441d76f49a0e35bc49c08",
                            "lessThan": "52e2c4b19e5a097e7c3fa99a39ad66b9d307c33a",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "637f688dc3dc304a89f441d76f49a0e35bc49c08",
                            "lessThan": "d8bc7adff286996fd3e5e984e25eb2359eb5cd94",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "637f688dc3dc304a89f441d76f49a0e35bc49c08",
                            "lessThan": "e89a7966686b80e9a0e4b49c6040b6a18c6c98aa",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "637f688dc3dc304a89f441d76f49a0e35bc49c08",
                            "lessThan": "8c054c71d47d19472d2aa2efbae89d2c85e0b7cf",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "637f688dc3dc304a89f441d76f49a0e35bc49c08",
                            "lessThan": "dabd6ac70acaa838e011df72286734faa318f99b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "637f688dc3dc304a89f441d76f49a0e35bc49c08",
                            "lessThan": "33ed50716251d5b2875706c40d0c8082d46be0b1",
                            "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/include/label.h",
                        "security/apparmor/label.c"
                    ],
                    "versions": [
                        {
                            "version": "4.13",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.13",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.275",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.226",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.193",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.163",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.117",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.63",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.4",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "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.275"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "6.12.117"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "6.18.63"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "7.3.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/d8a4aac994f8497b20ace6c3ca33425c80ab7492"
                },
                {
                    "url": "https://git.kernel.org/stable/c/c70aba4b08a081cae49aaa7f94e76758b221b01b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/52e2c4b19e5a097e7c3fa99a39ad66b9d307c33a"
                },
                {
                    "url": "https://git.kernel.org/stable/c/d8bc7adff286996fd3e5e984e25eb2359eb5cd94"
                },
                {
                    "url": "https://git.kernel.org/stable/c/e89a7966686b80e9a0e4b49c6040b6a18c6c98aa"
                },
                {
                    "url": "https://git.kernel.org/stable/c/8c054c71d47d19472d2aa2efbae89d2c85e0b7cf"
                },
                {
                    "url": "https://git.kernel.org/stable/c/dabd6ac70acaa838e011df72286734faa318f99b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/33ed50716251d5b2875706c40d0c8082d46be0b1"
                }
            ],
            "title": "apparmor: fix refcount leak in aa_get_newest_profile()",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}