{"api_version":"1","generated_at":"2026-09-09T15:54:47+00:00","cve":"CVE-2026-64218","urls":{"html":"https://cve.report/CVE-2026-64218","api":"https://cve.report/api/cve/CVE-2026-64218.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-64218","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-64218"},"summary":{"title":"batman-adv: bla: fix report_work leak on backbone_gw purge","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbatman-adv: bla: fix report_work leak on backbone_gw purge\n\nbatadv_bla_purge_backbone_gw() removes stale backbone gateway entries,\nbut fails to properly handle their associated report_work:\n\n- If report_work is running, the purge must wait for it to finish before\n  freeing the backbone_gw, otherwise the worker may access freed memory\n  (e.g. bat_priv).\n- If report_work is pending, the purge must cancel it and release the\n  reference held for that pending work item.\n\nThe previous implementation called hlist_for_each_entry_safe() inside a\nspin_lock_bh() section, but cancel_work_sync() may sleep and therefore\ncannot be called from within a spinlock-protected region.\n\nRestructure the loop to handle one entry per spinlock critical section:\nacquire the lock, find the next entry to purge, remove it from the hash\nlist, then release the lock before calling cancel_work_sync() and\ndropping the hash_entry reference. Repeat until no more entries require\npurging.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-07-24 16:16:49","updated_at":"2026-08-11 18:26:37"},"problem_types":["NVD-CWE-noinfo"],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"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","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/c6de1a5a9c406e30b91f1515a6ce05cc84023baa","name":"https://git.kernel.org/stable/c/c6de1a5a9c406e30b91f1515a6ce05cc84023baa","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f1303adb1e59582f76c22798a2e2e150e054a9e7","name":"https://git.kernel.org/stable/c/f1303adb1e59582f76c22798a2e2e150e054a9e7","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/eeddd7bab3d59c1e98642a204141f8c5d6194707","name":"https://git.kernel.org/stable/c/eeddd7bab3d59c1e98642a204141f8c5d6194707","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0459430add32ea41f3e2ef9351610e6d33627a6b","name":"https://git.kernel.org/stable/c/0459430add32ea41f3e2ef9351610e6d33627a6b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ce2c0ee4d76d5ee4b391fe0e31334361e25030ec","name":"https://git.kernel.org/stable/c/ce2c0ee4d76d5ee4b391fe0e31334361e25030ec","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/95a7034661274cf5985708bd2f6d86ee46f88fa9","name":"https://git.kernel.org/stable/c/95a7034661274cf5985708bd2f6d86ee46f88fa9","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/48663158222b3b7f6ee6791a67d512ede7fc94bb","name":"https://git.kernel.org/stable/c/48663158222b3b7f6ee6791a67d512ede7fc94bb","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/3423a45e5c3d3c5129f88143a9a969787d7d5a0a","name":"https://git.kernel.org/stable/c/3423a45e5c3d3c5129f88143a9a969787d7d5a0a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-64218","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64218","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 23721387c409087fd3b97e274f34d3ddc0970b74 ce2c0ee4d76d5ee4b391fe0e31334361e25030ec git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 23721387c409087fd3b97e274f34d3ddc0970b74 3423a45e5c3d3c5129f88143a9a969787d7d5a0a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 23721387c409087fd3b97e274f34d3ddc0970b74 f1303adb1e59582f76c22798a2e2e150e054a9e7 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 23721387c409087fd3b97e274f34d3ddc0970b74 48663158222b3b7f6ee6791a67d512ede7fc94bb git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 23721387c409087fd3b97e274f34d3ddc0970b74 eeddd7bab3d59c1e98642a204141f8c5d6194707 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 23721387c409087fd3b97e274f34d3ddc0970b74 c6de1a5a9c406e30b91f1515a6ce05cc84023baa git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 23721387c409087fd3b97e274f34d3ddc0970b74 95a7034661274cf5985708bd2f6d86ee46f88fa9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 23721387c409087fd3b97e274f34d3ddc0970b74 0459430add32ea41f3e2ef9351610e6d33627a6b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3.5","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 3.5 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.258 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.209 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.175 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.142 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.92 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.34 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.0.11 7.0.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2026","cve_id":"64218","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"64218","cve":"CVE-2026-64218","epss":"0.001290000","percentile":"0.029860000","score_date":"2026-08-03","updated_at":"2026-08-04 00:07:35"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["net/batman-adv/bridge_loop_avoidance.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"ce2c0ee4d76d5ee4b391fe0e31334361e25030ec","status":"affected","version":"23721387c409087fd3b97e274f34d3ddc0970b74","versionType":"git"},{"lessThan":"3423a45e5c3d3c5129f88143a9a969787d7d5a0a","status":"affected","version":"23721387c409087fd3b97e274f34d3ddc0970b74","versionType":"git"},{"lessThan":"f1303adb1e59582f76c22798a2e2e150e054a9e7","status":"affected","version":"23721387c409087fd3b97e274f34d3ddc0970b74","versionType":"git"},{"lessThan":"48663158222b3b7f6ee6791a67d512ede7fc94bb","status":"affected","version":"23721387c409087fd3b97e274f34d3ddc0970b74","versionType":"git"},{"lessThan":"eeddd7bab3d59c1e98642a204141f8c5d6194707","status":"affected","version":"23721387c409087fd3b97e274f34d3ddc0970b74","versionType":"git"},{"lessThan":"c6de1a5a9c406e30b91f1515a6ce05cc84023baa","status":"affected","version":"23721387c409087fd3b97e274f34d3ddc0970b74","versionType":"git"},{"lessThan":"95a7034661274cf5985708bd2f6d86ee46f88fa9","status":"affected","version":"23721387c409087fd3b97e274f34d3ddc0970b74","versionType":"git"},{"lessThan":"0459430add32ea41f3e2ef9351610e6d33627a6b","status":"affected","version":"23721387c409087fd3b97e274f34d3ddc0970b74","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["net/batman-adv/bridge_loop_avoidance.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"3.5"},{"lessThan":"3.5","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.258","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.209","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.175","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.142","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.92","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.34","versionType":"semver"},{"lessThanOrEqual":"7.0.*","status":"unaffected","version":"7.0.11","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.258","versionStartIncluding":"3.5","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.209","versionStartIncluding":"3.5","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.175","versionStartIncluding":"3.5","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.142","versionStartIncluding":"3.5","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.92","versionStartIncluding":"3.5","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.34","versionStartIncluding":"3.5","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.0.11","versionStartIncluding":"3.5","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.1","versionStartIncluding":"3.5","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbatman-adv: bla: fix report_work leak on backbone_gw purge\n\nbatadv_bla_purge_backbone_gw() removes stale backbone gateway entries,\nbut fails to properly handle their associated report_work:\n\n- If report_work is running, the purge must wait for it to finish before\n  freeing the backbone_gw, otherwise the worker may access freed memory\n  (e.g. bat_priv).\n- If report_work is pending, the purge must cancel it and release the\n  reference held for that pending work item.\n\nThe previous implementation called hlist_for_each_entry_safe() inside a\nspin_lock_bh() section, but cancel_work_sync() may sleep and therefore\ncannot be called from within a spinlock-protected region.\n\nRestructure the loop to handle one entry per spinlock critical section:\nacquire the lock, find the next entry to purge, remove it from the hash\nlist, then release the lock before calling cancel_work_sync() and\ndropping the hash_entry reference. Repeat until no more entries require\npurging."}],"metrics":[{"cvssV3_1":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"AV:L - Although mesh packets can enqueue report_work, exploitation requires purging or tearing down the mesh object, which a local attacker can perform through netlink in a controlled network namespace.\nAC:L - The attacker can observe the periodic loop-detect address, enqueue many VLAN-specific work items, and immediately delete the interface, controlling both sides of the race.\nPR:L - Mesh configuration and teardown require CAP_NET_ADMIN, but batman-adv supports network namespaces and GENL_UNS_ADMIN_PERM, making the path reachable by an otherwise unprivileged user through user namespaces.\nUI:N - The attacker can create, trigger, and tear down the affected mesh interface without action from another user.\nS:U - Exploitation compromises the host kernel within its existing security authority; this is standard kernel privilege escalation rather than a VM or hardware-boundary escape.\nC:H - The worker can dereference a freed bat_priv, net_device, and embedded kobject; controlled reallocation can turn these stale pointer chains into kernel-memory disclosure primitives.\nI:H - The use-after-free reaches kobject uevent processing and stale callback-bearing structures, making heap reuse and control-flow hijacking or arbitrary kernel modification plausible.\nA:H - The stale net_device and kobject dereferences can cause a kernel oops or panic, and an attacker can repeat the trigger through user-namespace-created mesh interfaces."}]}],"providerMetadata":{"dateUpdated":"2026-08-05T12:40:06.269Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/ce2c0ee4d76d5ee4b391fe0e31334361e25030ec"},{"url":"https://git.kernel.org/stable/c/3423a45e5c3d3c5129f88143a9a969787d7d5a0a"},{"url":"https://git.kernel.org/stable/c/f1303adb1e59582f76c22798a2e2e150e054a9e7"},{"url":"https://git.kernel.org/stable/c/48663158222b3b7f6ee6791a67d512ede7fc94bb"},{"url":"https://git.kernel.org/stable/c/eeddd7bab3d59c1e98642a204141f8c5d6194707"},{"url":"https://git.kernel.org/stable/c/c6de1a5a9c406e30b91f1515a6ce05cc84023baa"},{"url":"https://git.kernel.org/stable/c/95a7034661274cf5985708bd2f6d86ee46f88fa9"},{"url":"https://git.kernel.org/stable/c/0459430add32ea41f3e2ef9351610e6d33627a6b"}],"title":"batman-adv: bla: fix report_work leak on backbone_gw purge","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-64218","datePublished":"2026-07-24T15:23:05.814Z","dateReserved":"2026-07-19T15:36:31.770Z","dateUpdated":"2026-08-05T12:40:06.269Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-07-24 16:16:49","lastModifiedDate":"2026-08-11 18:26:37","problem_types":["NVD-CWE-noinfo"],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"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","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.5","versionEndExcluding":"5.10.258","matchCriteriaId":"87228D43-E81A-4C73-9457-94467C1D5AB5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.15.209","matchCriteriaId":"919C10A9-7951-4A74-BADD-C135A0A8D8B4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.1.175","matchCriteriaId":"92385813-D91D-480D-83A1-F423D2CBB2BA"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.6.142","matchCriteriaId":"FBFF77B0-526A-4AF1-84D0-ED7187624A67"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.12.92","matchCriteriaId":"9CB90BD9-95B7-4D7F-9F17-4ECE6CFB66C9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"6.18.34","matchCriteriaId":"A4B1EF6D-18D7-4838-BC37-7499D5DCC3C0"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19","versionEndExcluding":"7.0.11","matchCriteriaId":"0520D091-FC52-4A50-AF07-70AE7D08B750"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*","matchCriteriaId":"B1EF7059-E670-45F4-B422-54C40FA86390"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*","matchCriteriaId":"0D38F0BF-A728-4133-A358-D44A2F7EE6D6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*","matchCriteriaId":"EC732D08-5F7B-46D9-B154-E60C7F4F0A97"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*","matchCriteriaId":"E5910A9D-F60A-409A-B486-FE66BFEBA9B9"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"64218","Ordinal":"1","Title":"batman-adv: bla: fix report_work leak on backbone_gw purge","CVE":"CVE-2026-64218","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"64218","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nbatman-adv: bla: fix report_work leak on backbone_gw purge\n\nbatadv_bla_purge_backbone_gw() removes stale backbone gateway entries,\nbut fails to properly handle their associated report_work:\n\n- If report_work is running, the purge must wait for it to finish before\n  freeing the backbone_gw, otherwise the worker may access freed memory\n  (e.g. bat_priv).\n- If report_work is pending, the purge must cancel it and release the\n  reference held for that pending work item.\n\nThe previous implementation called hlist_for_each_entry_safe() inside a\nspin_lock_bh() section, but cancel_work_sync() may sleep and therefore\ncannot be called from within a spinlock-protected region.\n\nRestructure the loop to handle one entry per spinlock critical section:\nacquire the lock, find the next entry to purge, remove it from the hash\nlist, then release the lock before calling cancel_work_sync() and\ndropping the hash_entry reference. Repeat until no more entries require\npurging.","Type":"Description","Title":"batman-adv: bla: fix report_work leak on backbone_gw purge"}]}}}