Not scored
net: bridge: mrp: fix uninitialised bytes on the wire
- Severity
- Not scored
- Exploit likelihood
- 0.17% (higher than 6% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from f7458934b0791c39a001e4d902fc3bf697b439b5 before 014c062d23c63ec77ef2cf17a0d9363c7441cc94, from f7458934b0791c39a001e4d902fc3bf697b439b5 before 7ebc23ff03668042e0b0e4034bb1518d36198d9e, from f7458934b0791c39a001e4d902fc3bf697b439b5 before 06d58b8d2f053ced82e01efaeb6e7c82891eed58, from f7458934b0791c39a001e4d902fc3bf697b439b5 before a5e385eeb2d6dbbbdebfa050e67c34734ae12693, from f7458934b0791c39a001e4d902fc3bf697b439b5 before 5912cf1822fbe53ae275c147868740eb384a5d3e, from f7458934b0791c39a001e4d902fc3bf697b439b5 before e08665218040f8e312abe40f74543186f3c2c941, from f7458934b0791c39a001e4d902fc3bf697b439b5 before 63488dba65ef91373ef616575b32eb0eb21459f4, 5.14 Not affected: before 5.14, from 5.15.216 up to 5.15.*, from 6.1.183 up to 6.1.*, from 6.6.152 up to 6.6.*, from 6.12.104 up to 6.12.*, from 6.18.45 up to 6.18.* | CVE List |
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net: bridge: mrp: corregir bytes no inicializados en la red br_mrp_alloc_test_skb() construye tramas de prueba MRP en un skb de dev_alloc_skb(), que no borra el área de datos lineal. En la rama de rol de anillo MRA, la cabecera TLV de subopción se añade con sub_tlv = skb_put(skb, sizeof(sub_tlv)); sub_tlv -> type = BR_MRP_SUB_TLV_HEADER_TEST_AUTO_MGR; por lo que sub_tlv -> length nunca se escribe, y los dos bytes de alineación finales se añaden con un skb_put() simple que tampoco los borra. Las regiones oui y sub_opt vecinas se ponen explícitamente a cero, por lo que quedan tres bytes no inicializados en cada trama MRA MRP_Test que sale. Poner la cabecera TLV de subopción y el relleno de alineación en un único skb_put_zero(), que borra ambos. El sub-TLV AUTO_MGR no lleva carga útil, por lo que el campo de longitud puesto a cero ya es el valor que debería tener.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-74659 changed 2026-08-22 | CVE Terms of Use |
| NVD | CVE-2026-74659 changed 2026-10-14 | Public domain |