{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2021-47482",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2021-47482",
    "idYear": 2021,
    "status": "PUBLISHED",
    "publishedAt": "2024-05-22T08:19:34.174Z",
    "updatedAt": "2026-05-11T13:55:32.415Z",
    "importedAt": "2026-10-24T01:56:36.661Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "net: batman-adv: fix error handling",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: batman-adv: fix error handling\n\nSyzbot reported ODEBUG warning in batadv_nc_mesh_free(). The problem was\nin wrong error handling in batadv_mesh_init().\n\nBefore this patch batadv_mesh_init() was calling batadv_mesh_free() in case\nof any batadv_*_init() calls failure. This approach may work well, when\nthere is some kind of indicator, which can tell which parts of batadv are\ninitialized; but there isn't any.\n\nAll written above lead to cleaning up uninitialized fields. Even if we hide\nODEBUG warning by initializing bat_priv->nc.work, syzbot was able to hit\nGPF in batadv_nc_purge_paths(), because hash pointer in still NULL. [1]\n\nTo fix these bugs we can unwind batadv_*_init() calls one by one.\nIt is good approach for 2 reasons: 1) It fixes bugs on error handling\npath 2) It improves the performance, since we won't call unneeded\nbatadv_*_free() functions.\n\nSo, this patch makes all batadv_*_init() clean up all allocated memory\nbefore returning with an error to no call correspoing batadv_*_free()\nand open-codes batadv_mesh_free() with proper order to avoid touching\nuninitialized fields.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "c6c8fea29769d998d94fcec9b9f14d4b52b349d3",
              "status": "affected",
              "versionType": "git",
              "lessThan": "0c6b199f09be489c48622537a550787fc80aea73"
            },
            {
              "version": "c6c8fea29769d998d94fcec9b9f14d4b52b349d3",
              "status": "affected",
              "versionType": "git",
              "lessThan": "07533f1a673ce1126d0a72ef1e4b5eaaa3dd6d20"
            },
            {
              "version": "c6c8fea29769d998d94fcec9b9f14d4b52b349d3",
              "status": "affected",
              "versionType": "git",
              "lessThan": "e50f957652190b5a88a8ebce7e5ab14ebd0d3f00"
            },
            {
              "version": "c6c8fea29769d998d94fcec9b9f14d4b52b349d3",
              "status": "affected",
              "versionType": "git",
              "lessThan": "fbf150b16a3635634b7dfb7f229d8fcd643c6c51"
            },
            {
              "version": "c6c8fea29769d998d94fcec9b9f14d4b52b349d3",
              "status": "affected",
              "versionType": "git",
              "lessThan": "6422e8471890273994fe8cc6d452b0dcd2c9483e"
            },
            {
              "version": "c6c8fea29769d998d94fcec9b9f14d4b52b349d3",
              "status": "affected",
              "versionType": "git",
              "lessThan": "b0a2cd38553c77928ef1646ed1518486b1e70ae8"
            },
            {
              "version": "c6c8fea29769d998d94fcec9b9f14d4b52b349d3",
              "status": "affected",
              "versionType": "git",
              "lessThan": "a8f7359259dd5923adc6129284fdad12fc5db347"
            },
            {
              "version": "c6c8fea29769d998d94fcec9b9f14d4b52b349d3",
              "status": "affected",
              "versionType": "git",
              "lessThan": "6f68cd634856f8ca93bafd623ba5357e0f648c68"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "2.6.38",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "2.6.38"
            },
            {
              "version": "4.4.293",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.4.*"
            },
            {
              "version": "4.9.289",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.9.*"
            },
            {
              "version": "4.14.254",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.14.*"
            },
            {
              "version": "4.19.215",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.19.*"
            },
            {
              "version": "5.4.157",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.4.*"
            },
            {
              "version": "5.10.77",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.14.16",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.14.*"
            },
            {
              "version": "5.15",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}