CVE-2026-64218 (GCVE-0-2026-64218)

Vulnerability from cvelistv5 – Published: 2026-07-24 15:23 – Updated: 2026-07-24 15:23
VLAI
Title
batman-adv: bla: fix report_work leak on backbone_gw purge
Summary
In the Linux kernel, the following vulnerability has been resolved: batman-adv: bla: fix report_work leak on backbone_gw purge batadv_bla_purge_backbone_gw() removes stale backbone gateway entries, but fails to properly handle their associated report_work: - If report_work is running, the purge must wait for it to finish before freeing the backbone_gw, otherwise the worker may access freed memory (e.g. bat_priv). - If report_work is pending, the purge must cancel it and release the reference held for that pending work item. The previous implementation called hlist_for_each_entry_safe() inside a spin_lock_bh() section, but cancel_work_sync() may sleep and therefore cannot be called from within a spinlock-protected region. Restructure the loop to handle one entry per spinlock critical section: acquire the lock, find the next entry to purge, remove it from the hash list, then release the lock before calling cancel_work_sync() and dropping the hash_entry reference. Repeat until no more entries require purging.
Severity
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 23721387c409087fd3b97e274f34d3ddc0970b74 , < ce2c0ee4d76d5ee4b391fe0e31334361e25030ec (git)
Affected: 23721387c409087fd3b97e274f34d3ddc0970b74 , < 3423a45e5c3d3c5129f88143a9a969787d7d5a0a (git)
Affected: 23721387c409087fd3b97e274f34d3ddc0970b74 , < f1303adb1e59582f76c22798a2e2e150e054a9e7 (git)
Affected: 23721387c409087fd3b97e274f34d3ddc0970b74 , < 48663158222b3b7f6ee6791a67d512ede7fc94bb (git)
Affected: 23721387c409087fd3b97e274f34d3ddc0970b74 , < eeddd7bab3d59c1e98642a204141f8c5d6194707 (git)
Affected: 23721387c409087fd3b97e274f34d3ddc0970b74 , < c6de1a5a9c406e30b91f1515a6ce05cc84023baa (git)
Affected: 23721387c409087fd3b97e274f34d3ddc0970b74 , < 95a7034661274cf5985708bd2f6d86ee46f88fa9 (git)
Affected: 23721387c409087fd3b97e274f34d3ddc0970b74 , < 0459430add32ea41f3e2ef9351610e6d33627a6b (git)
Create a notification for this product.
Linux Linux Affected: 3.5
Unaffected: 0 , < 3.5 (semver)
Unaffected: 5.10.258 , ≤ 5.10.* (semver)
Unaffected: 5.15.209 , ≤ 5.15.* (semver)
Unaffected: 6.1.175 , ≤ 6.1.* (semver)
Unaffected: 6.6.142 , ≤ 6.6.* (semver)
Unaffected: 6.12.92 , ≤ 6.12.* (semver)
Unaffected: 6.18.34 , ≤ 6.18.* (semver)
Unaffected: 7.0.11 , ≤ 7.0.* (semver)
Unaffected: 7.1 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "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."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-07-24T15:23:05.814Z",
        "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-07-24T15:23:05.814Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-64218\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-07-24T16:16:49.520\",\"lastModified\":\"2026-07-24T16:16:49.520\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"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.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"net/batman-adv/bridge_loop_avoidance.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"23721387c409087fd3b97e274f34d3ddc0970b74\",\"lessThan\":\"ce2c0ee4d76d5ee4b391fe0e31334361e25030ec\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"23721387c409087fd3b97e274f34d3ddc0970b74\",\"lessThan\":\"3423a45e5c3d3c5129f88143a9a969787d7d5a0a\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"23721387c409087fd3b97e274f34d3ddc0970b74\",\"lessThan\":\"f1303adb1e59582f76c22798a2e2e150e054a9e7\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"23721387c409087fd3b97e274f34d3ddc0970b74\",\"lessThan\":\"48663158222b3b7f6ee6791a67d512ede7fc94bb\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"23721387c409087fd3b97e274f34d3ddc0970b74\",\"lessThan\":\"eeddd7bab3d59c1e98642a204141f8c5d6194707\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"23721387c409087fd3b97e274f34d3ddc0970b74\",\"lessThan\":\"c6de1a5a9c406e30b91f1515a6ce05cc84023baa\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"23721387c409087fd3b97e274f34d3ddc0970b74\",\"lessThan\":\"95a7034661274cf5985708bd2f6d86ee46f88fa9\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"23721387c409087fd3b97e274f34d3ddc0970b74\",\"lessThan\":\"0459430add32ea41f3e2ef9351610e6d33627a6b\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"net/batman-adv/bridge_loop_avoidance.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"3.5\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"3.5\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.10.258\",\"lessThanOrEqual\":\"5.10.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.209\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.1.175\",\"lessThanOrEqual\":\"6.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.142\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.12.92\",\"lessThanOrEqual\":\"6.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.18.34\",\"lessThanOrEqual\":\"6.18.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.0.11\",\"lessThanOrEqual\":\"7.0.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/0459430add32ea41f3e2ef9351610e6d33627a6b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/3423a45e5c3d3c5129f88143a9a969787d7d5a0a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/48663158222b3b7f6ee6791a67d512ede7fc94bb\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/95a7034661274cf5985708bd2f6d86ee46f88fa9\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c6de1a5a9c406e30b91f1515a6ce05cc84023baa\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/ce2c0ee4d76d5ee4b391fe0e31334361e25030ec\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/eeddd7bab3d59c1e98642a204141f8c5d6194707\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/f1303adb1e59582f76c22798a2e2e150e054a9e7\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

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.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…