# CVE-2026-72227: batman-adv: mcast: avoid OOB read of num_dests header

- Severity: High 8.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Published: 2026-08-15T05:54:19.020Z
- Modified: 2026-08-17T06:18:23.910Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

batman-adv: mcast: avoid OOB read of num_dests header

Before the access to struct batadv_tvlv_mcast_tracker's num_dests, it is
attempted to check whether enough space is actually in the network header.
But instead of using offsetofend() to check for the whole size (2) which
must be accessible, offsetof() of is called. The latter is always returning
0. The comparison with the network header length will always return that
enough data is available - even when only 1 or 0 bytes are accessible.

Instead of using offsetofend(), use the more common check for the whole
header.

(As written by CVE List.)

## Affected

- Linux Linux: from 07afe1ba288c04280622fa002ed385f1ac0b6fe6 before 80f62893d135f415e7a374dd47b468ec298f7aed; from 07afe1ba288c04280622fa002ed385f1ac0b6fe6 before d2b657c9653fcebca828a2ead13f444e0da68817; from 07afe1ba288c04280622fa002ed385f1ac0b6fe6 before 7d1a877670bc2e901241073f022ca8d1b2f85f1c; from 07afe1ba288c04280622fa002ed385f1ac0b6fe6 before 38eaed28e250895d56f4b7989bd65479a511c5c3; 6.8 (not affected: before 6.8; from 6.12.97 up to 6.12.*; from 6.18.40 up to 6.18.*; from 7.1.5 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/80f62893d135f415e7a374dd47b468ec298f7aed>
- <https://git.kernel.org/stable/c/d2b657c9653fcebca828a2ead13f444e0da68817>
- <https://git.kernel.org/stable/c/7d1a877670bc2e901241073f022ca8d1b2f85f1c>
- <https://git.kernel.org/stable/c/38eaed28e250895d56f4b7989bd65479a511c5c3>

## Sources

- CVE List: [CVE-2026-72227](https://www.cve.org/CVERecord?id=CVE-2026-72227), CVE Terms of Use, modified 2026-08-17
- NVD: [CVE-2026-72227](https://nvd.nist.gov/vuln/detail/CVE-2026-72227), Public domain, modified 2026-08-17

---

Page: https://cve.day/CVE-2026-72227 · Whole record: https://cve.day/CVE-2026-72227.json · Rebuilt by cve.day 2026-11-25T22:59:33.051Z
