CVE-2026-74664
Beschrijving NL
In de Linux kernel is de volgende kwetsbaarheid verholpen:
net: openvswitch: update-antwoorden opnieuw toewijzen voor niet-overeenkomende ID's
ovs_flow_cmd_new() wijst de optionele antwoordskb vooraf toe voordat het nodig is
ovs_mutex en voordat het weet welke bestaande stroom zal worden bijgewerkt. Dat is normaal gesproken prima, omdat de skb de maat heeft van de aanvraagstroom
identifier. Die identifier wordt ook de identifier van de ingevoegde stroom. Voor updates kan een verzoek met een UFID echter de UFID-lookup missen en
val dan terug naar het opzoeken van de doorstroomsleutel. Die zoekopdracht kan legitiem vinden
een bestaande key-identified flow. UFID's zijn optioneel en de flowtoets is
de primaire identifier. Voor echo-antwoorden schrijft ovs_flow_cmd_fill_info() de gematchte flow's
identificatie, niet de aanvraagidentificatie die wordt gebruikt voor de preallocatie. Een korte
aanvraag UFID kan dus te weinig ruimte laten voor de key identifier. De vulling kan dan mislukken met -EMSGSIZE en raakt de BUG_ON(fout < 0) in de
updatepad. Zodra het updatedoel is opgelost, wijst u de antwoordskb opnieuw toe als de
gematchte flow heeft een groter antwoord nodig dan de toegestane aanvraag-ID. Doe
dit voordat u de acties vervangt, zodat het verzoek nog steeds netjes kan mislukken als
de zeldzame extra toewijzing mislukt.
Origineel (Engels) tonen
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.