CVE-2026-99837 (GCVE-0-2026-99837)

Vulnerability from cvelistv5 – Published: 2026-11-30 13:17 – Updated: 2026-12-01 05:43
VLAI
Title
apparmor: avoid potential double free when remapping DFA tables
Summary
In the Linux kernel, the following vulnerability has been resolved: apparmor: avoid potential double free when remapping DFA tables When unpacking a DFA, aa_dfa_unpack() stores a table in dfa->tables before attempting to remap a 16-bit table to 32-bit. However, remap_data16_to_data32() frees the original table when allocation of the new table fails. This leaves the corresponding dfa->tables entry pointing to freed memory. If the unpacking then fails, dfa_free() attempts to free the same table again. Only publish the table to dfa->tables after any required remapping has completed successfully, so that dfa->tables never contains a pointer to a table that has already been freed.
Assigner
Linux CNA under the mitre root
CNA scorecard D 52/100 over 8585 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: b1a3e925e4fecb4a4b58f38ec39b550f8c849fe9 , < 7710dc49ae10d3493a18e5d53d7ef05913025e2d (git)
Affected: 5955e8a3e956721594d618ae3f50a1541ef0dd09 , < 76688f427045ed2332bcd9fea6dac6e5b6117efa (git)
Affected: 9208c05f9fdfd927ea160b97dfef3c379049fff2 , < 4971c6f821ff06a01c0779d0b1f9d0fd6452e3fe (git)
Affected: 9208c05f9fdfd927ea160b97dfef3c379049fff2 , < 8d41718618ed58bab0cce12811c6a62491988f45 (git)
Affected: 9208c05f9fdfd927ea160b97dfef3c379049fff2 , < 7ccd884a5e5386f4c7d98625113f4924f70286b4 (git)
guessed Create a notification for this product.
Linux Linux Affected: 6.13
Unaffected: 0 , < 6.13 (semver)
Unaffected: 6.18.63 , ≤ 6.18.* (semver)
Unaffected: 7.3.4 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "security/apparmor/match.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "7710dc49ae10d3493a18e5d53d7ef05913025e2d",
              "status": "affected",
              "version": "b1a3e925e4fecb4a4b58f38ec39b550f8c849fe9",
              "versionType": "git"
            },
            {
              "lessThan": "76688f427045ed2332bcd9fea6dac6e5b6117efa",
              "status": "affected",
              "version": "5955e8a3e956721594d618ae3f50a1541ef0dd09",
              "versionType": "git"
            },
            {
              "lessThan": "4971c6f821ff06a01c0779d0b1f9d0fd6452e3fe",
              "status": "affected",
              "version": "9208c05f9fdfd927ea160b97dfef3c379049fff2",
              "versionType": "git"
            },
            {
              "lessThan": "8d41718618ed58bab0cce12811c6a62491988f45",
              "status": "affected",
              "version": "9208c05f9fdfd927ea160b97dfef3c379049fff2",
              "versionType": "git"
            },
            {
              "lessThan": "7ccd884a5e5386f4c7d98625113f4924f70286b4",
              "status": "affected",
              "version": "9208c05f9fdfd927ea160b97dfef3c379049fff2",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "security/apparmor/match.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.13"
            },
            {
              "lessThan": "6.13",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.63",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.63",
                  "versionStartIncluding": "6.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.4",
                  "versionStartIncluding": "6.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc1",
                  "versionStartIncluding": "6.13",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: avoid potential double free when remapping DFA tables\n\nWhen unpacking a DFA, aa_dfa_unpack() stores a table in dfa-\u003etables\nbefore attempting to remap a 16-bit table to 32-bit.\n\nHowever, remap_data16_to_data32() frees the original table when\nallocation of the new table fails. This leaves the corresponding\ndfa-\u003etables entry pointing to freed memory. If the unpacking then\nfails, dfa_free() attempts to free the same table again.\n\nOnly publish the table to dfa-\u003etables after any required remapping\nhas completed successfully, so that dfa-\u003etables never contains a\npointer to a table that has already been freed."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - Reached only by a local write() to AppArmor securityfs .load/.replace (profile_load -\u003e policy_update -\u003e aa_replace_profiles -\u003e aa_unpack -\u003e unpack_pdb -\u003e unpack_dfa -\u003e aa_dfa_unpack); the oversized DATA16 DEF/NXT/CHK table comes from the caller\u0027s own policy blob, with no remote input.\nAC:H - The double kvfree only happens if remap_data16_to_data32()\u0027s kvzalloc fails. The attacker can force that with td_lolen \u003e= 2^29 (u32 size \u003e INT_MAX), but that u16 table is vmalloc\u0027d and vfree() rejects the 2nd free with a WARN. Corruption needs the lazily purged VA reused inside the dfa_free window, or a real unaccounted GFP_KERNEL failure on a kmalloc\u0027d table.\nPR:L - aa_may_manage_policy() -\u003e aa_policy_admin_capable() needs CAP_MAC_ADMIN in the caller\u0027s userns plus aa_policy_view_capable(). With unprivileged_userns_apparmor_policy=1 (the default), container root in a child AppArmor namespace (LXD) passes; a bare unshare -U fails the level check.\nUI:N - The attacker builds the malformed DFA and issues the .load write() themselves; no other user or administrator action is involved.\nS:U - The stale dfa-\u003etables[] pointer and both kvfree() calls stay inside kernel memory management in the same authority; no guest/host, IOMMU or sandbox boundary is crossed.\nC:H - dfa_free() frees dfa-\u003etables[td_id] a second time. If the freed table\u0027s slab object, its large-kmalloc pages or the reused vmalloc VA is reallocated first, the attacker gets a UAF of a live kernel object that can be used to read kernel memory.\nI:H - A second kvfree of a kmalloc\u0027d table corrupts the SLUB freelist or the large-kmalloc folio refcount. For a vmalloc\u0027d table it frees whatever busy vmap_area now covers the address. Either way it yields overlapping allocations usable as kernel write primitives.\nA:H - Even the forceable \u003eINT_MAX path fires WARN_ON_ONCE in __kvmalloc_node_noprof and the \u0027Trying to vfree() nonexistent vm area\u0027 WARN, which panic on panic_on_warn. A slab double free hits the SLAB_FREELIST_HARDENED BUG or corrupts the heap."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-12-01T05:43:41.590Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/7710dc49ae10d3493a18e5d53d7ef05913025e2d"
        },
        {
          "url": "https://git.kernel.org/stable/c/76688f427045ed2332bcd9fea6dac6e5b6117efa"
        },
        {
          "url": "https://git.kernel.org/stable/c/4971c6f821ff06a01c0779d0b1f9d0fd6452e3fe"
        },
        {
          "url": "https://git.kernel.org/stable/c/8d41718618ed58bab0cce12811c6a62491988f45"
        },
        {
          "url": "https://git.kernel.org/stable/c/7ccd884a5e5386f4c7d98625113f4924f70286b4"
        }
      ],
      "title": "apparmor: avoid potential double free when remapping DFA tables",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-99837",
    "datePublished": "2026-11-30T13:17:30.853Z",
    "dateReserved": "2026-09-25T10:25:14.437Z",
    "dateUpdated": "2026-12-01T05:43:41.590Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-99837",
      "date": "2026-12-04",
      "epss": "0.00177",
      "percentile": "0.07537"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "security/apparmor/match.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "7710dc49ae10d3493a18e5d53d7ef05913025e2d",
                    "status": "affected",
                    "version": "b1a3e925e4fecb4a4b58f38ec39b550f8c849fe9",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "76688f427045ed2332bcd9fea6dac6e5b6117efa",
                    "status": "affected",
                    "version": "5955e8a3e956721594d618ae3f50a1541ef0dd09",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "4971c6f821ff06a01c0779d0b1f9d0fd6452e3fe",
                    "status": "affected",
                    "version": "9208c05f9fdfd927ea160b97dfef3c379049fff2",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "8d41718618ed58bab0cce12811c6a62491988f45",
                    "status": "affected",
                    "version": "9208c05f9fdfd927ea160b97dfef3c379049fff2",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "7ccd884a5e5386f4c7d98625113f4924f70286b4",
                    "status": "affected",
                    "version": "9208c05f9fdfd927ea160b97dfef3c379049fff2",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "security/apparmor/match.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "6.13"
                  },
                  {
                    "lessThan": "6.13",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.63",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.4",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc1",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: avoid potential double free when remapping DFA tables\n\nWhen unpacking a DFA, aa_dfa_unpack() stores a table in dfa-\u003etables\nbefore attempting to remap a 16-bit table to 32-bit.\n\nHowever, remap_data16_to_data32() frees the original table when\nallocation of the new table fails. This leaves the corresponding\ndfa-\u003etables entry pointing to freed memory. If the unpacking then\nfails, dfa_free() attempts to free the same table again.\n\nOnly publish the table to dfa-\u003etables after any required remapping\nhas completed successfully, so that dfa-\u003etables never contains a\npointer to a table that has already been freed."
          }
        ],
        "id": "CVE-2026-99837",
        "lastModified": "2026-12-01T06:17:52.880",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "HIGH",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.0,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.0,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-30T14:20:16.693",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/4971c6f821ff06a01c0779d0b1f9d0fd6452e3fe"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/76688f427045ed2332bcd9fea6dac6e5b6117efa"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/7710dc49ae10d3493a18e5d53d7ef05913025e2d"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/7ccd884a5e5386f4c7d98625113f4924f70286b4"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/8d41718618ed58bab0cce12811c6a62491988f45"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-12-01T07:04:35+00:00",
      "cve": "CVE-2026-99837",
      "id": "CVE-2026-99837",
      "initial_release_date": "2026-11-30T13:17:30.853000+00:00",
      "product_status:known_not_affected": "280",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Denial of Service via double-free in AppArmor table remapping",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99837.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.