9.3critical
net: skbuff: don't skb_tx_error() the source skb in skb_zerocopy()
- Severity
- 9.3critical CVSS:3.1 by Linux
- 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: skbuff: don't skb_tx_error() the source skb in skb_zerocopy() skb_zerocopy() copies frags from @from into @to. On an skb_orphan_frags() failure it calls skb_tx_error(@from), a destructive operation on the source skb the copy helper does not own. That completes @from's zerocopy uarg and clears SKBFL_ALL_ZEROCOPY, including the SKBFL_SHARED_FRAG page-ownership marker. Both callers already report the failure on their own drop path. nfnetlink_queue does it at nla_put_failure, and Open vSwitch does it in the flow-miss drop arm of ovs_dp_process_packet(), so nothing is lost by dropping it here. On Open vSwitch's OVS_ACTION_ATTR_USERSPACE path the skb is not freed on this error: do_execute_actions() ignores output_userspace()'s return value and, unless the upcall was the last action, keeps forwarding the same skb through the flow's remaining actions. The uarg is completed while that skb is still in flight, telling the producer its buffers are free, and SKBFL_SHARED_FRAG is cleared on an skb the rest of the stack still handles. That flag is what makes esp_input() call skb_cow_data() instead of decrypting in place, so a later local ESP delivery can decrypt over frags the skb does not own privately. Leave error reporting to the callers.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 36d5fe6a000790f56039afe26834265db0a3ad4c before 849bdb83123760a865bcb2970127f4c0b9423ba3, from 36d5fe6a000790f56039afe26834265db0a3ad4c before fb10e0e9b220a2eed08931a60dbaad9a2370c908, from 36d5fe6a000790f56039afe26834265db0a3ad4c before 767ec2a65cc022d303b0c9c12811e7db22057341, from 36d5fe6a000790f56039afe26834265db0a3ad4c before 8069643ae64dfdf634b6c78c7f622e5323031436, from 36d5fe6a000790f56039afe26834265db0a3ad4c before 04dd250a78e268af3e7124beb1dc10ec1dd88d60, from 36d5fe6a000790f56039afe26834265db0a3ad4c before a13b1e80e5015cd732440b475c0ef443dc4a2157, from 36d5fe6a000790f56039afe26834265db0a3ad4c before bab5a851e44a3601d31f2aa8043f385bb50ac5d9, from 36d5fe6a000790f56039afe26834265db0a3ad4c before 8ece906150128d5ec2462aabcc978c568433eca4 and 5 more Not affected: before 3.14, from 5.10.270 up to 5.10.*, from 5.15.221 up to 5.15.*, from 6.1.188 up to 6.1.*, from 6.6.157 up to 6.6.*, from 6.12.110 up to 6.12.* | CVE List |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: net: skbuff: don't skb_tx_error() the source skb in skb_zerocopy() skb_zerocopy() copies frags from @from into @to. On an skb_orphan_frags() failure it calls skb_tx_error(@from), a destructive operation on the source skb the copy helper does not own. That completes @from's zerocopy uarg and clears SKBFL_ALL_ZEROCOPY, including the SKBFL_SHARED_FRAG page-ownership marker. Both callers already report the failure on their own drop path. nfnetlink_queue does it at nla_put_failure, and Open vSwitch does it in the flow-miss drop arm of ovs_dp_process_packet(), so nothing is lost by dropping it here. On Open vSwitch's OVS_ACTION_ATTR_USERSPACE path the skb is not freed on this error: do_execute_actions() ignores output_userspace()'s return value and, unless the upcall was the last action, keeps forwarding the same skb through the flow's remaining actions. The uarg is completed while that skb is still in flight, telling the producer its buffers are free, and SKBFL_SHARED_FRAG is cleared on an skb the rest of the stack still handles. That flag is what makes esp_input() call skb_cow_data() instead of decrypting in place, so a later local ESP delivery can decrypt over frags the skb does not own privately. Leave error reporting to the callers.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net: skbuff: no llamar a skb_tx_error() al skb de origen en skb_zerocopy() skb_zerocopy() copia fragmentos de @from a @to. En caso de fallo de skb_orphan_frags(), llama a skb_tx_error(@from), una operación destructiva en el skb de origen que el ayudante de copia no posee. Eso completa el uarg de zerocopy de @from y borra SKBFL_ALL_ZEROCOPY, incluyendo el marcador de propiedad de página SKBFL_SHARED_FRAG. Ambos llamadores ya informan del fallo en su propia ruta de descarte. nfnetlink_queue lo hace en nla_put_failure, y Open vSwitch lo hace en el brazo de descarte por fallo de flujo de ovs_dp_process_packet(), por lo que no se pierde nada al descartarlo aquí. En la ruta OVS_ACTION_ATTR_USERSPACE de Open vSwitch, el skb no se libera en este error: do_execute_actions() ignora el valor de retorno de output_userspace() y, a menos que la llamada ascendente fuera la última acción, sigue reenviando el mismo skb a través de las acciones restantes del flujo. El uarg se completa mientras ese skb todavía está en tránsito, indicando al productor que sus búferes están libres, y SKBFL_SHARED_FRAG se borra en un skb que el resto de la pila aún maneja. Esa bandera es lo que hace que esp_input() llame a skb_cow_data() en lugar de descifrar in situ, para que una entrega ESP local posterior pueda descifrar sobre fragmentos que el skb no posee de forma privada. Dejar el informe de errores a los llamadores.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-90049 changed 2026-10-19 | CVE Terms of Use |
| NVD | CVE-2026-90049 changed 2026-10-19 | Public domain |