CVE-2026-74664
JSON

Not scored

net: openvswitch: reallocate update replies for mismatched IDs

Severity
Not scored
Exploit likelihood
0.18% (higher than 7% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: net: openvswitch: reallocate update replies for mismatched IDs ovs_flow_cmd_new() preallocates the optional reply skb before it takes ovs_mutex and before it knows which existing flow will be updated. That is normally fine because the skb is sized from the request flow identifier. That identifier also becomes the inserted flow's identifier. For updates, however, a request with a UFID may miss the UFID lookup and then fall back to the flow key lookup. That lookup can legitimately find an existing key-identified flow. UFIDs are optional and the flow key is the primary identifier. For echoed replies, ovs_flow_cmd_fill_info() writes the matched flow's identifier, not the request identifier used for the preallocation. A short request UFID can therefore leave too little room for the key identifier. The fill can then fail with -EMSGSIZE and hit the BUG_ON(error < 0) in the update path. Once the update target has been resolved, reallocate the reply skb if the matched flow needs a larger reply than the request identifier allowed. Do this before replacing the actions so the request can still fail cleanly if the rare extra allocation fails.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 74ed7ab9264c54471c7f057409d352052820d750 before bd8ca84d48cd9a4f6fc63df26512c55e1d339927, from 74ed7ab9264c54471c7f057409d352052820d750 before 00f987f066e802793a37dd2167459e67cf2cf2ec, from 74ed7ab9264c54471c7f057409d352052820d750 before 696a0b9435fce9cf4f1e9ba7f6afa6bee96c97fc, from 74ed7ab9264c54471c7f057409d352052820d750 before 87d0c0040b5d4b61de51ae39132c4c46709f2f77, from 74ed7ab9264c54471c7f057409d352052820d750 before 69f40ccf85074981340847d650a9cbf9adabfbbe, from 74ed7ab9264c54471c7f057409d352052820d750 before 23716dd9d8d46a5908536b73dc085e62f2b5c237, from 74ed7ab9264c54471c7f057409d352052820d750 before 20751193d83be2e9735d4faee71375691c09cd13, from 74ed7ab9264c54471c7f057409d352052820d750 before 5d1c224dd914579524a183a514c12b95095d12ce and 1 more
Not affected: before 4.0, from 5.10.265 up to 5.10.*, 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.*
CVE List

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: net: openvswitch: reallocate update replies for mismatched IDs ovs_flow_cmd_new() preallocates the optional reply skb before it takes ovs_mutex and before it knows which existing flow will be updated. That is normally fine because the skb is sized from the request flow identifier. That identifier also becomes the inserted flow's identifier. For updates, however, a request with a UFID may miss the UFID lookup and then fall back to the flow key lookup. That lookup can legitimately find an existing key-identified flow. UFIDs are optional and the flow key is the primary identifier. For echoed replies, ovs_flow_cmd_fill_info() writes the matched flow's identifier, not the request identifier used for the preallocation. A short request UFID can therefore leave too little room for the key identifier. The fill can then fail with -EMSGSIZE and hit the BUG_ON(error < 0) in the update path. Once the update target has been resolved, reallocate the reply skb if the matched flow needs a larger reply than the request identifier allowed. Do this before replacing the actions so the request can still fail cleanly if the rare extra allocation fails.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: openvswitch: reasignar respuestas de actualización para IDs no coincidentes ovs_flow_cmd_new() preasigna el skb de respuesta opcional antes de tomar ovs_mutex y antes de saber qué flujo existente se actualizará. Esto normalmente está bien porque el skb se dimensiona a partir del identificador de flujo de la solicitud. Ese identificador también se convierte en el identificador del flujo insertado. Para las actualizaciones, sin embargo, una solicitud con un UFID puede fallar en la búsqueda de UFID y luego recurrir a la búsqueda de clave de flujo. Esa búsqueda puede encontrar legítimamente un flujo existente identificado por clave. Los UFID son opcionales y la clave de flujo es el identificador principal. Para las respuestas con eco, ovs_flow_cmd_fill_info() escribe el identificador del flujo coincidente, no el identificador de la solicitud utilizado para la preasignación. Un UFID de solicitud corto puede, por lo tanto, dejar muy poco espacio para el identificador de clave. El llenado puede entonces fallar con -EMSGSIZE y activar el BUG_ON(error < 0) en la ruta de actualización. Una vez que se ha resuelto el objetivo de actualización, reasigne el skb de respuesta si el flujo coincidente necesita una respuesta más grande de lo que permitía el identificador de la solicitud. Haga esto antes de reemplazar las acciones para que la solicitud aún pueda fallar limpiamente si la rara asignación adicional falla.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-74664 changed 2026-11-06CVE Terms of Use
NVDCVE-2026-74664 changed 2026-11-06Public domain