CVE-2022-49086
Last modified
CVE-2022-49086 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: net: openvswitch: fix leak of nested actions While parsing user-provided actions, openvswitch module may dynamically allocate memory and store pointers in the internal copy of the actions. So this memory has to be freed while destroying the actions. Currently there are only two such actions: ct() and set(). However, there are many actions that can hold nested lists of actions and ovs_nla_free_flow_actions() just jumps over them leaking the memory. For example, removal of the flow with the following actions will lead to a leak of the memory allocated by nf_ct_tmpl_alloc(): actions:clone(ct(commit),0) Non-freed set() action may also leak the 'dst' structure for the tunnel info including device references. Under certain conditions with a high rate of flow rotation that may cause significant memory leak problem (2MB per second in reporter's case). EPSS estimates a 0.25% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: net: openvswitch: fix leak of nested actions While parsing user-provided actions, openvswitch module may dynamically allocate memory and store pointers in the internal copy of the actions. So this memory has to be freed while destroying the actions. Currently there are only two such actions: ct() and set(). However, there are many actions that can hold nested lists of actions and ovs_nla_free_flow_actions() just jumps over them leaking the memory. For example, removal of the flow with the following actions will lead to a leak of the memory allocated by nf_ct_tmpl_alloc(): actions:clone(ct(commit),0) Non-freed set() action may also leak the 'dst' structure for the tunnel info including device references. Under certain conditions with a high rate of flow rotation that may cause significant memory leak problem (2MB per second in reporter's case). The problem is also hard to mitigate, because the user doesn't have direct control over the datapath flows generated by OVS. Fix that by iterating over all the nested actions and freeing everything that needs to be freed recursively. New build time assertion should protect us from this problem if new actions will be added in the future. Unfortunately, openvswitch module doesn't use NLA_F_NESTED, so all attributes has to be explicitly checked. sample() and clone() actions are mixing extra attributes into the user-provided action list. That prevents some code generalization too.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 4.3, < 4.19.249 | — |
| Linux | Linux Kernel | >= 4.20, < 5.4.200 | — |
| Linux | Linux Kernel | >= 5.5, < 5.10.111 | — |
| Linux | Linux Kernel | >= 5.11, < 5.15.34 | — |
| Linux | Linux Kernel | >= 5.16, < 5.16.20 | — |
| Linux | Linux Kernel | >= 5.17, < 5.17.3 | — |
| Linux | Linux Kernel | 5.18 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2022-49086?
How severe is CVE-2022-49086?
How do I fix CVE-2022-49086?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2022
- CVE-2022-49080In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49081In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49082In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2022-49083In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49084In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49085In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2022-49087In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2022-49088In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49089In the Linux kernel, the following vulnerability has been re…4.7
- CVE-2022-4909Inappropriate implementation in XML in Google Chrome prior t…6.3
- CVE-2022-49090In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49091In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2022-49086?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
