{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "637f688dc3dc304a89f441d76f49a0e35bc49c08"
            },
            {
              "fixed": "086a46c82e33270815c8bbbdae5238136d44cb19"
            },
            {
              "fixed": "fd17fdf972e16cbbcc7e930a8e03fdb694319aa9"
            },
            {
              "fixed": "2390625ee60eb12b6ffd9834511df250c1634bb3"
            },
            {
              "fixed": "ce94927fa4173fcc1eca27bdc65a140064c8f1e6"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "4.13.0"
            },
            {
              "fixed": "6.12.119"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.65"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99831.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: fix profile leak when a policy load fails\n\nThe error paths of aa_replace_profiles() and aa_unpack() do not break\nthe refcount cycle between label and proxy. They just aa_put_profile()\nthe new profiles, which drops the label refcount from 2 to 1, and the\nproxy keeps the profile alive. Every failed atomic policy load\n(e.g. \"profile can not be replaced\", or a later profile in the blob\nfailing to unpack) leaks every new profile in the set, along with its\nproxy, rules and its loaddata reference.\n\nThe leak is usually not visible from userspace, because the raw_data\ndirectory for a failed load is not created, but it becomes visible\nwhen the blob is deduplicated onto an existing loaddata, which then\nkeeps its policy/raw_data/\u003crev\u003e directory forever.\n\nAdd aa_put_unpublished_profile(), which drops the profile's own proxy\nbefore putting the profile, and use it on those error paths. The\nproxy of an unpacked profile is always freshly allocated and not\nreferenced by anything else before the profile is published, so\nputting it is safe.",
  "id": "CVE-2026-99831",
  "modified": "2026-11-30T14:45:59.590965526Z",
  "published": "2026-11-30T13:17:27.557Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/086a46c82e33270815c8bbbdae5238136d44cb19"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2390625ee60eb12b6ffd9834511df250c1634bb3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ce94927fa4173fcc1eca27bdc65a140064c8f1e6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/fd17fdf972e16cbbcc7e930a8e03fdb694319aa9"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99831.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99831"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "apparmor: fix profile leak when a policy load fails"
}