CVE-2026-63836
batman-adv: tp_meter: avoid divide-by-zero for dec_cwnd
Reported by linux · Published July 19, 2026
In the Linux kernel, the following vulnerability has been resolved: batman-adv: tp_meter: avoid divide-by-zero for dec_cwnd The cwnd is always MSS <= cwnd <= 0x20000000. But the calculation in batadv_tp_update_cwnd() assumes unsigned 32 bit arithmetics. ((mss * 8) ** 2) / (cwnd * 8) In case cwnd is actually 0x20000000, it will be shifted by 3 bit to the left end up at 0x100000000 or U32_MAX + 1. It will therefore wrap around and be 0 - resulting in: ((mss * 8) ** 2) / 0 This is of course invalid and cannot be calculated. The calculation should must be simplified to avoid this overflow: (mss ** 2) * 8 / cwnd It will keep the precision enhancement from the scaling (by 8) but avoid the overflow in the divisor. In theory, there could still be an overflow in the dividend. It is at the moment fixed to BATADV_TP_PLEN in batadv_tp_recv_ack() - so it is not an imminent problem. But allowing it to use the whole u32 bit range, would mean that it can still use up to 67 bits. To keep this calculation safe for 32 bit arithmetic, mss must never use more than floor((32 - 3) / 2) bits - or in other words: must never be larger than 16383.
EPSS 0.12% · 1.9th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux_kernel | linux | 7.1.3, 6.18.38, 6.12.95, 6.6.144, 6.1.177, 5.15.211, 5.10.260 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 33a3bb4a3345bb511f9c69c913da95d4693e2a4e, 33a3bb4a3345bb511f9c69c913da95d4693e2a4e, 33a3bb4a3345bb511f9c69c913da95d4693e2a4e |
| Linux | Linux | 4.8, 0, 5.10.260 |
| linux | linux_kernel | 4.8, 4.8, 4.8 |
| Linux | Linux | 33a3bb4a3345bb511f9c69c913da95d4693e2a4e, 33a3bb4a3345bb511f9c69c913da95d4693e2a4e, 33a3bb4a3345bb511f9c69c913da95d4693e2a4e |
Timeline
- Jul 19, 2026 CVE Published
- Jul 20, 2026 Security Advisory (31 in total, the first dated here)
- Aug 7, 2026 EPSS Score (12 in total, the first dated here)
- Aug 12, 2026 Distribution Patch (30 in total, the first dated here)
- Sep 16, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-63836
vulnetix vdb fixes CVE-2026-63836
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-63836/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart