{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "33a3bb4a3345bb511f9c69c913da95d4693e2a4e"
            },
            {
              "fixed": "35264c4d46067d6312871488c810cef387f8c1f6"
            },
            {
              "fixed": "1381b021bf886b793fa5ffb895a8efae7ba0318f"
            },
            {
              "fixed": "d08b69da40a101df1e28bfe1e8fa7a09ffa41107"
            },
            {
              "fixed": "cd74176cf1685f35a2e5f212d15748bbfecb53b6"
            },
            {
              "fixed": "ac229c86e49fdb96d91f51bc2fa37a9c4f58c44f"
            },
            {
              "fixed": "7d2a44bc6bbe39aed03c68864aa0e54e04a50278"
            },
            {
              "fixed": "585616dab0aa9c45bc11b2c8082ca78533bc00e9"
            },
            {
              "fixed": "33ccd52f3cc9ed46ce395199f89aa3234dc83314"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "4.8.0"
            },
            {
              "fixed": "5.10.260"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.211"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.177"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.144"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.95"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.38"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.1.3"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63836.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nbatman-adv: tp_meter: avoid divide-by-zero for dec_cwnd\n\nThe cwnd is always MSS \u003c= cwnd \u003c= 0x20000000. But the calculation in\nbatadv_tp_update_cwnd() assumes unsigned 32 bit arithmetics.\n\n    ((mss * 8) ** 2) / (cwnd * 8)\n\nIn case cwnd is actually 0x20000000, it will be shifted by 3 bit to the\nleft end up at 0x100000000 or U32_MAX + 1. It will therefore wrap around\nand be 0 - resulting in:\n\n    ((mss * 8) ** 2) / 0\n\nThis is of course invalid and cannot be calculated. The calculation should\nmust be simplified to avoid this overflow:\n\n   (mss ** 2) * 8 / cwnd\n\nIt will keep the precision enhancement from the scaling (by 8) but avoid\nthe overflow in the divisor.\n\nIn theory, there could still be an overflow in the dividend. It is at the\nmoment fixed to BATADV_TP_PLEN in batadv_tp_recv_ack() - so it is not an\nimminent problem. But allowing it to use the whole u32 bit range, would\nmean that it can still use up to 67 bits. To keep this calculation safe for\n32 bit arithmetic, mss must never use more than floor((32 - 3) / 2) bits -\nor in other words: must never be larger than 16383.",
  "id": "CVE-2026-63836",
  "modified": "2026-07-21T03:42:01.954366564Z",
  "published": "2026-07-19T12:02:27.166Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1381b021bf886b793fa5ffb895a8efae7ba0318f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/33ccd52f3cc9ed46ce395199f89aa3234dc83314"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/35264c4d46067d6312871488c810cef387f8c1f6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/585616dab0aa9c45bc11b2c8082ca78533bc00e9"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7d2a44bc6bbe39aed03c68864aa0e54e04a50278"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ac229c86e49fdb96d91f51bc2fa37a9c4f58c44f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/cd74176cf1685f35a2e5f212d15748bbfecb53b6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d08b69da40a101df1e28bfe1e8fa7a09ffa41107"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63836.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-63836"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.8.0",
  "summary": "batman-adv: tp_meter: avoid divide-by-zero for dec_cwnd"
}