{"api_version":"1","generated_at":"2026-12-01T06:50:19+00:00","cve":"CVE-2026-99837","urls":{"html":"https://cve.report/CVE-2026-99837","api":"https://cve.report/api/cve/CVE-2026-99837.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99837","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99837"},"summary":{"title":"apparmor: avoid potential double free when remapping DFA tables","description":"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->tables\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->tables 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->tables after any required remapping\nhas completed successfully, so that dfa->tables never contains a\npointer to a table that has already been freed.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:20:16","updated_at":"2026-12-01 06:17:52"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"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"}}],"references":[{"url":"https://git.kernel.org/stable/c/7710dc49ae10d3493a18e5d53d7ef05913025e2d","name":"https://git.kernel.org/stable/c/7710dc49ae10d3493a18e5d53d7ef05913025e2d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8d41718618ed58bab0cce12811c6a62491988f45","name":"https://git.kernel.org/stable/c/8d41718618ed58bab0cce12811c6a62491988f45","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7ccd884a5e5386f4c7d98625113f4924f70286b4","name":"https://git.kernel.org/stable/c/7ccd884a5e5386f4c7d98625113f4924f70286b4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/76688f427045ed2332bcd9fea6dac6e5b6117efa","name":"https://git.kernel.org/stable/c/76688f427045ed2332bcd9fea6dac6e5b6117efa","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4971c6f821ff06a01c0779d0b1f9d0fd6452e3fe","name":"https://git.kernel.org/stable/c/4971c6f821ff06a01c0779d0b1f9d0fd6452e3fe","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99837","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99837","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b1a3e925e4fecb4a4b58f38ec39b550f8c849fe9 7710dc49ae10d3493a18e5d53d7ef05913025e2d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5955e8a3e956721594d618ae3f50a1541ef0dd09 76688f427045ed2332bcd9fea6dac6e5b6117efa git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9208c05f9fdfd927ea160b97dfef3c379049fff2 4971c6f821ff06a01c0779d0b1f9d0fd6452e3fe git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9208c05f9fdfd927ea160b97dfef3c379049fff2 8d41718618ed58bab0cce12811c6a62491988f45 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9208c05f9fdfd927ea160b97dfef3c379049fff2 7ccd884a5e5386f4c7d98625113f4924f70286b4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.13","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.13 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"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->tables\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->tables 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->tables after any required remapping\nhas completed successfully, so that dfa->tables 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 -> policy_update -> aa_replace_profiles -> aa_unpack -> unpack_pdb -> unpack_dfa -> aa_dfa_unpack); the oversized DATA16 DEF/NXT/CHK table comes from the caller's own policy blob, with no remote input.\nAC:H - The double kvfree only happens if remap_data16_to_data32()'s kvzalloc fails. The attacker can force that with td_lolen >= 2^29 (u32 size > INT_MAX), but that u16 table is vmalloc'd 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'd table.\nPR:L - aa_may_manage_policy() -> aa_policy_admin_capable() needs CAP_MAC_ADMIN in the caller's 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->tables[] 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->tables[td_id] a second time. If the freed table's 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'd table corrupts the SLUB freelist or the large-kmalloc folio refcount. For a vmalloc'd 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 >INT_MAX path fires WARN_ON_ONCE in __kvmalloc_node_noprof and the 'Trying to vfree() nonexistent vm area' 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"},"nvd":{"publishedDate":"2026-11-30 14:20:16","lastModifiedDate":"2026-12-01 06:17:52","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99837","Ordinal":"1","Title":"apparmor: avoid potential double free when remapping DFA tables","CVE":"CVE-2026-99837","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99837","Ordinal":"1","NoteData":"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->tables\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->tables 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->tables after any required remapping\nhas completed successfully, so that dfa->tables never contains a\npointer to a table that has already been freed.","Type":"Description","Title":"apparmor: avoid potential double free when remapping DFA tables"}]}}}