CVE-2026-31659 (GCVE-0-2026-31659)
Vulnerability from cvelistv5
Published
2026-04-24 14:45
Modified
2026-04-27 14:04
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: batman-adv: reject oversized global TT response buffers batadv_tt_prepare_tvlv_global_data() builds the allocation length for a global TT response in 16-bit temporaries. When a remote originator advertises a large enough global TT, the TT payload length plus the VLAN header offset can exceed 65535 and wrap before kmalloc(). The full-table response path still uses the original TT payload length when it fills tt_change, so the wrapped allocation is too small and batadv_tt_prepare_tvlv_global_data() writes past the end of the heap object before the later packet-size check runs. Fix this by rejecting TT responses whose TVLV value length cannot fit in the 16-bit TVLV payload length field.
Impacted products
Vendor Product Version
Linux Linux Version: 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b
Version: 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b
Version: 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b
Version: 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b
Version: 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b
Version: 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b
Version: 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b
Version: 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/batman-adv/translation-table.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "7e5d007e0df946bffb8542fb112e0044014a5897",
              "status": "affected",
              "version": "7ea7b4a142758deaf46c1af0ca9ceca6dd55138b",
              "versionType": "git"
            },
            {
              "lessThan": "2997f4bd1f982e7013709946e00be89b507693fa",
              "status": "affected",
              "version": "7ea7b4a142758deaf46c1af0ca9ceca6dd55138b",
              "versionType": "git"
            },
            {
              "lessThan": "95c71365a2222908441b54d6f2c315e0c79fcec3",
              "status": "affected",
              "version": "7ea7b4a142758deaf46c1af0ca9ceca6dd55138b",
              "versionType": "git"
            },
            {
              "lessThan": "69d61639bc7e963c3b645e570279d731e7c89062",
              "status": "affected",
              "version": "7ea7b4a142758deaf46c1af0ca9ceca6dd55138b",
              "versionType": "git"
            },
            {
              "lessThan": "f970646b9a39539d1bac86822ac78b5915455ea9",
              "status": "affected",
              "version": "7ea7b4a142758deaf46c1af0ca9ceca6dd55138b",
              "versionType": "git"
            },
            {
              "lessThan": "de6c1dc3c7d01a152607e6fcecee4d5288283f10",
              "status": "affected",
              "version": "7ea7b4a142758deaf46c1af0ca9ceca6dd55138b",
              "versionType": "git"
            },
            {
              "lessThan": "cf2199171ef799ca7270019125f4a91bd20ad4d9",
              "status": "affected",
              "version": "7ea7b4a142758deaf46c1af0ca9ceca6dd55138b",
              "versionType": "git"
            },
            {
              "lessThan": "3a359bf5c61d52e7f09754108309d637532164a6",
              "status": "affected",
              "version": "7ea7b4a142758deaf46c1af0ca9ceca6dd55138b",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/batman-adv/translation-table.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.13"
            },
            {
              "lessThan": "3.13",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.253",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.203",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.169",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.135",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.82",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.23",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.19.*",
              "status": "unaffected",
              "version": "6.19.13",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.0",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.253",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.203",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.169",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.135",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.82",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.23",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.19.13",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.0",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nbatman-adv: reject oversized global TT response buffers\n\nbatadv_tt_prepare_tvlv_global_data() builds the allocation length for a\nglobal TT response in 16-bit temporaries. When a remote originator\nadvertises a large enough global TT, the TT payload length plus the VLAN\nheader offset can exceed 65535 and wrap before kmalloc().\n\nThe full-table response path still uses the original TT payload length when\nit fills tt_change, so the wrapped allocation is too small and\nbatadv_tt_prepare_tvlv_global_data() writes past the end of the heap object\nbefore the later packet-size check runs.\n\nFix this by rejecting TT responses whose TVLV value length cannot fit in\nthe 16-bit TVLV payload length field."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 9.8,
            "baseSeverity": "CRITICAL",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          }
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-04-27T14:04:46.116Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/7e5d007e0df946bffb8542fb112e0044014a5897"
        },
        {
          "url": "https://git.kernel.org/stable/c/2997f4bd1f982e7013709946e00be89b507693fa"
        },
        {
          "url": "https://git.kernel.org/stable/c/95c71365a2222908441b54d6f2c315e0c79fcec3"
        },
        {
          "url": "https://git.kernel.org/stable/c/69d61639bc7e963c3b645e570279d731e7c89062"
        },
        {
          "url": "https://git.kernel.org/stable/c/f970646b9a39539d1bac86822ac78b5915455ea9"
        },
        {
          "url": "https://git.kernel.org/stable/c/de6c1dc3c7d01a152607e6fcecee4d5288283f10"
        },
        {
          "url": "https://git.kernel.org/stable/c/cf2199171ef799ca7270019125f4a91bd20ad4d9"
        },
        {
          "url": "https://git.kernel.org/stable/c/3a359bf5c61d52e7f09754108309d637532164a6"
        }
      ],
      "title": "batman-adv: reject oversized global TT response buffers",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-31659",
    "datePublished": "2026-04-24T14:45:10.254Z",
    "dateReserved": "2026-03-09T15:48:24.129Z",
    "dateUpdated": "2026-04-27T14:04:46.116Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…