batman-adv: tt: fix negative tt_buff_len
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: batman-adv: tt: fix negative tt_buff_len batadv_orig_node::tt_buff_len was declared as s16, but the field is never intended to hold a negative value. When a value greater than 32767 is assigned, it wraps to a negative signed integer. In batadv_send_other_tt_response(), tt_buff_len is temporarily widened to s32. The incorrectly negative s16 value propagates into the s32, causing batadv_tt_prepare_tvlv_global_data() to allocate a full sized buffer but populates only a small portion of it with the collected changeset. All remaining bits are kept uninitialized. Using an u16 avoids this type confusion and ensures that no (negative) sign extension is performed in batadv_send_other_tt_response().
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
Version range not reported
- Linux Linux
3.1
References 8
git.kernel.org
- stable/c/4c4c2f340f4c27373bfcac8dc5032ce7bb474e47
- stable/c/33e5ede7ce6d92e531920d4bbd6d3e18ef1c6430
- stable/c/3c96dff00998314983b68a3e7caac07a66ebe496
- stable/c/32edd2a28e112064020a2f319a8cb8a9e5a09767
- stable/c/4dab98961426d0cf6a1599cda6950b7596ca2fcd
- stable/c/730de8733dd90f70d7580a9b329b971f8e1474a2
- stable/c/ed28ead3420c373a7928622f114bc6168075d1e1
- stable/c/b64963a2ceeb7529310b6cf253a1e540784422f4