Description
In the Linux kernel, the following vulnerability has been resolved: net: bridge: mrp: fix uninitialised bytes on the wire br_mrp_alloc_test_skb() builds MRP test frames on an skb from dev_alloc_skb(), which does not clear the linear data area. On the MRA ring-role branch the sub-option TLV header is appended with sub_tlv = skb_put(skb, sizeof(*sub_tlv)); sub_tlv->type = BR_MRP_SUB_TLV_HEADER_TEST_AUTO_MGR; so sub_tlv->length is never written, and the two trailing alignment bytes are appended with a bare skb_put() that does not clear them either. The neighbouring oui and sub_opt regions are explicitly zeroed, so three uninitialised bytes are left in every MRA MRP_Test frame that goes out. Put the sub-option TLV header and the alignment padding in a single skb_put_zero(), which clears both. The AUTO_MGR sub-TLV carries no payload, so the zeroed length field is already the value it should have.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
f7458934b0791c39a001e4d902fc3bf697b439b5 to < 014c062d23c63ec77ef2cf17a0d9363c7441cc94affectedf7458934b0791c39a001e4d902fc3bf697b439b5 to < 7ebc23ff03668042e0b0e4034bb1518d36198d9eaffectedf7458934b0791c39a001e4d902fc3bf697b439b5 to < 06d58b8d2f053ced82e01efaeb6e7c82891eed58affectedf7458934b0791c39a001e4d902fc3bf697b439b5 to < a5e385eeb2d6dbbbdebfa050e67c34734ae12693affectedf7458934b0791c39a001e4d902fc3bf697b439b5 to < 5912cf1822fbe53ae275c147868740eb384a5d3eaffectedf7458934b0791c39a001e4d902fc3bf697b439b5 to < e08665218040f8e312abe40f74543186f3c2c941affectedf7458934b0791c39a001e4d902fc3bf697b439b5 to < 63488dba65ef91373ef616575b32eb0eb21459f4affected
Linux Linux
Default version status: affected
5.14affected0 to < 5.14unaffected5.15.216 to ≤ 5.15.*unaffected6.1.183 to ≤ 6.1.*unaffected6.6.152 to ≤ 6.6.*unaffected6.12.104 to ≤ 6.12.*unaffected6.18.45 to ≤ 6.18.*unaffected7.1.9 to ≤ 7.1.*unaffected7.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/014c062d23c63ec77ef2cf17a0d9363c7441cc94 ↗
- https://git.kernel.org/stable/c/7ebc23ff03668042e0b0e4034bb1518d36198d9e ↗
- https://git.kernel.org/stable/c/06d58b8d2f053ced82e01efaeb6e7c82891eed58 ↗
- https://git.kernel.org/stable/c/a5e385eeb2d6dbbbdebfa050e67c34734ae12693 ↗
- https://git.kernel.org/stable/c/5912cf1822fbe53ae275c147868740eb384a5d3e ↗
- https://git.kernel.org/stable/c/e08665218040f8e312abe40f74543186f3c2c941 ↗
- https://git.kernel.org/stable/c/63488dba65ef91373ef616575b32eb0eb21459f4 ↗