Linux
batman-adv: mcast: avoid OOB read of num_dests header
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 07afe1ba288c04280622fa002ed385f1ac0b6fe6, < 80f62893d135f415e7a374dd47b468ec298f7aed
- >= 07afe1ba288c04280622fa002ed385f1ac0b6fe6, < d2b657c9653fcebca828a2ead13f444e0da68817
- >= 07afe1ba288c04280622fa002ed385f1ac0b6fe6, < 7d1a877670bc2e901241073f022ca8d1b2f85f1c
- >= 07afe1ba288c04280622fa002ed385f1ac0b6fe6, < 38eaed28e250895d56f4b7989bd65479a511c5c3
Fixed in 80f62893d135f415e7a374dd47b468ec298f7aed, d2b657c9653fcebca828a2ead13f444e0da68817, 7d1a877670bc2e901241073f022ca8d1b2f85f1c, 38eaed28e250895d56f4b7989bd65479a511c5c3
- 6.8
Fixed in 0, 6.12.97, 6.18.40, 7.1.5, 7.2
Mitigation
Upgrade Linux to 80f62893d135f415e7a374dd47b468ec298f7aed or d2b657c9653fcebca828a2ead13f444e0da68817 or 7d1a877670bc2e901241073f022ca8d1b2f85f1c or 38eaed28e250895d56f4b7989bd65479a511c5c3 or later.
Upgrade Linux to 0 or 6.12.97 or 6.18.40 or 7.1.5 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.