Linux
batman-adv: tt: fix negative tt_buff_len
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().
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= a73105b8d4c765d9ebfb664d0a66802127d8e4c7, < 4c4c2f340f4c27373bfcac8dc5032ce7bb474e47
- >= a73105b8d4c765d9ebfb664d0a66802127d8e4c7, < 33e5ede7ce6d92e531920d4bbd6d3e18ef1c6430
- >= a73105b8d4c765d9ebfb664d0a66802127d8e4c7, < 3c96dff00998314983b68a3e7caac07a66ebe496
- >= a73105b8d4c765d9ebfb664d0a66802127d8e4c7, < 32edd2a28e112064020a2f319a8cb8a9e5a09767
- >= a73105b8d4c765d9ebfb664d0a66802127d8e4c7, < 4dab98961426d0cf6a1599cda6950b7596ca2fcd
- >= a73105b8d4c765d9ebfb664d0a66802127d8e4c7, < 730de8733dd90f70d7580a9b329b971f8e1474a2
- >= a73105b8d4c765d9ebfb664d0a66802127d8e4c7, < ed28ead3420c373a7928622f114bc6168075d1e1
- >= a73105b8d4c765d9ebfb664d0a66802127d8e4c7, < b64963a2ceeb7529310b6cf253a1e540784422f4
Fixed in 4c4c2f340f4c27373bfcac8dc5032ce7bb474e47, 33e5ede7ce6d92e531920d4bbd6d3e18ef1c6430, 3c96dff00998314983b68a3e7caac07a66ebe496, 32edd2a28e112064020a2f319a8cb8a9e5a09767, 4dab98961426d0cf6a1599cda6950b7596ca2fcd, 730de8733dd90f70d7580a9b329b971f8e1474a2, ed28ead3420c373a7928622f114bc6168075d1e1, b64963a2ceeb7529310b6cf253a1e540784422f4
- 3.1
Fixed in 0, 5.10.258, 5.15.209, 6.1.175, 6.6.142, 6.12.92, 6.18.34, 7.0.11, 7.1
Mitigation
Upgrade Linux to 4c4c2f340f4c27373bfcac8dc5032ce7bb474e47 or 33e5ede7ce6d92e531920d4bbd6d3e18ef1c6430 or 3c96dff00998314983b68a3e7caac07a66ebe496 or 32edd2a28e112064020a2f319a8cb8a9e5a09767 or 4dab98961426d0cf6a1599cda6950b7596ca2fcd or 730de8733dd90f70d7580a9b329b971f8e1474a2 or ed28ead3420c373a7928622f114bc6168075d1e1 or b64963a2ceeb7529310b6cf253a1e540784422f4 or later.
Upgrade Linux to 0 or 5.10.258 or 5.15.209 or 6.1.175 or 6.6.142 or 6.12.92 or 6.18.34 or 7.0.11 or 7.1 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.