CVE-2026-63836
batman-adv: tp_meter: avoid divide-by-zero for dec_cwnd
Check your servers for CVE-2026-63836
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-63836 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Exploitation
EPSS 0.12%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 2.09% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 33a3bb4a3345bb511f9c69c913da95d4693e2a4e, before 35264c4d46067d6312871488c810cef387f8c1f6 affected from 33a3bb4a3345bb511f9c69c913da95d4693e2a4e, before 1381b021bf886b793fa5ffb895a8efae7ba0318f affected from 33a3bb4a3345bb511f9c69c913da95d4693e2a4e, before d08b69da40a101df1e28bfe1e8fa7a09ffa41107 affected from 33a3bb4a3345bb511f9c69c913da95d4693e2a4e, before cd74176cf1685f35a2e5f212d15748bbfecb53b6 affected from 33a3bb4a3345bb511f9c69c913da95d4693e2a4e, before ac229c86e49fdb96d91f51bc2fa37a9c4f58c44f affected from 33a3bb4a3345bb511f9c69c913da95d4693e2a4e, before 7d2a44bc6bbe39aed03c68864aa0e54e04a50278 affected from 33a3bb4a3345bb511f9c69c913da95d4693e2a4e, before 585616dab0aa9c45bc11b2c8082ca78533bc00e9 affected from 33a3bb4a3345bb511f9c69c913da95d4693e2a4e, before 33ccd52f3cc9ed46ce395199f89aa3234dc83314
Other versions: unaffected
|
| Linux |
affected 4.8 unaffected before 4.8 unaffected from 5.10.260 up to and including 5.10.* unaffected from 5.15.211 up to and including 5.15.* unaffected from 6.1.177 up to and including 6.1.* unaffected from 6.6.144 up to and including 6.6.* unaffected from 6.12.95 up to and including 6.12.* unaffected from 6.18.38 up to and including 6.18.* unaffected from 7.1.3 up to and including 7.1.* unaffected 7.2 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-63836 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-63836
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-63836
trivy image --scanners vuln IMAGE | grep CVE-2026-63836
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/35264c4d46067d6312871488c810cef387f8c1f6 git.kernel.org
- https://git.kernel.org/stable/c/1381b021bf886b793fa5ffb895a8efae7ba0318f git.kernel.org
- https://git.kernel.org/stable/c/d08b69da40a101df1e28bfe1e8fa7a09ffa41107 git.kernel.org
- https://git.kernel.org/stable/c/cd74176cf1685f35a2e5f212d15748bbfecb53b6 git.kernel.org
- https://git.kernel.org/stable/c/ac229c86e49fdb96d91f51bc2fa37a9c4f58c44f git.kernel.org
- https://git.kernel.org/stable/c/7d2a44bc6bbe39aed03c68864aa0e54e04a50278 git.kernel.org
- https://git.kernel.org/stable/c/585616dab0aa9c45bc11b2c8082ca78533bc00e9 git.kernel.org
- https://git.kernel.org/stable/c/33ccd52f3cc9ed46ce395199f89aa3234dc83314 git.kernel.org
Source: the record CVE-2026-63836 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse