Overview
About vulnerability
In the Linux kernel, the following vulnerability has been resolved:
net: openvswitch: reject oversized nested action attrs
Open vSwitch stores generated flow actions as nlattrs, whose nla_len field is u16. Commit a1e64addf3ff (“net: openvswitch: remove misbehaving actions length check”) allowed the total sw_flow_actions stream to grow beyond 64 KiB, which is valid, but also removed the last guard preventing a generated nested action attribute from exceeding U16_MAX.
An oversized generated container can thus be closed with a truncated nla_len. A later dump or teardown then walks a structurally different stream than the one that was validated. In particular, an oversized nested CLONE/CT action may cause subsequent bytes in the generated stream to be interpreted as independent actions.
Keep the larger total-action-stream behavior, but make nested action close reject generated containers that do not fit in nla_len, and return the error through all callers. For recursive SAMPLE, CLONE, DEC_TTL, and CHECK_PKT_LEN builders, trim resource-owning action-list tails in reverse construction order before discarding failed wrappers, so resources copied into the rejected tails are released before the wrappers are removed.
Most failed outer wrappers are discarded by truncating actions_len after child resources have been released. CHECK_PKT_LEN also trims its parent after branch resources are gone. SET/TUNNEL close failures unwind their known tun_dst ownership directly, and SET_TO_MASKED has no external ownership and truncates on close failure.
Details
- Affected product:
- AlmaLinux 9.2 ESU , Amazon Linux 2 ELS , CentOS 6 ELS , CentOS 7 ELS , CentOS 8.4 ELS , CentOS 8.5 ELS , CentOS Stream 8 ELS , CloudLinux 7 ELS , Oracle Linux 6 ELS , Oracle Linux 7 ELS , RHEL 7 ELS , TuxCare 9.6 ESU , Ubuntu 20.04 ELS
- Affected packages:
- kernel @ 5.10.0 (+12 more)
Fixes
KernelCare state
Live-patch status from KernelCare for each operating system.
| Operating system | Status | Covered kernels |
|---|---|---|
| AlmaLinux 10 | Released |
44 kernels
|
| AlmaLinux 9 | Released |
45 kernels
|
| Amazon Linux 2023 | Ready For Release | — |
| Debian 12 | Released |
19 kernels
|
| Debian 13 | Released |
13 kernels
|
| Oracle Linux 10 | Released |
29 kernels
|
| Oracle Linux 8 UEK 7 | Planned | — |
| Oracle Linux 9 | Released |
38 kernels
|
| Oracle Linux 9 UEK 7 | Planned | — |
| RHEL 10 | Released |
43 kernels
|
| RHEL 9 | Released |
43 kernels
|
| Rocky Linux 10 | Released |
32 kernels
|
| Rocky Linux 9 | Released |
32 kernels
|
| Ubuntu 22.04 | Released |
24 kernels
|
| Ubuntu 22.04 AWS | Released |
23 kernels
|
| Ubuntu 22.04 Azure | Released |
17 kernels
|
| Ubuntu 24.04 | Released |
18 kernels
|
| Ubuntu 24.04 AWS | Planned | — |