# CVE-2026-80994: net: openvswitch: fix flow mask use-after-free on flow deletion

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **Published:** 2026-09-11T19:42:50.199Z
- **Modified:** 2026-10-19T09:17:32.273Z

## Who should check

- Anyone running Linux \>= 56c19868e115fcf8d62d843e1b9616bb9837d0db, \< ea5f7b45b582665541ddfb77dce98611354af4ab; \>= 56c19868e115fcf8d62d843e1b9616bb9837d0db, \< 18ce1a8b7499c016d4a893d9b1db80608f73745d; \>= 56c19868e115fcf8d62d843e1b9616bb9837d0db, \< c15ef9a5bf594f93a31de2ec2ec394e2a903519a; \>= 56c19868e115fcf8d62d843e1b9616bb9837d0db, \< 64051fe200c7c759af71634bd2123552eaabb69a; \>= 56c19868e115fcf8d62d843e1b9616bb9837d0db, \< 0ba5cbc2f049af94ec94ff6f64958545efc5eaa2; \>= 56c19868e115fcf8d62d843e1b9616bb9837d0db, \< ac73e3af571da06c1d1cfe3f0f00dc978b851700; \>= 56c19868e115fcf8d62d843e1b9616bb9837d0db, \< 7f072b84afd05a77963eb1872f7174e280661dce; \>= 56c19868e115fcf8d62d843e1b9616bb9837d0db, \< 4e30317ff67a2eb12b4d890d39f72fd7e7117d48
- Anyone running Linux 3.16

## Description

In the Linux kernel, the following vulnerability has been resolved:

net: openvswitch: fix flow mask use-after-free on flow deletion

The commit in the Fixes tag below made so flow-\>mask free is scheduled
via RCU right after it is removed from the flow table.  The pointer
stays in the flow structure and it can be accessible while in the same
RCU critical section.  This is done to avoid requiring ovs\_mutex for
the ovs\_flow\_free().

However, while removing the flow during processing of CMD\_DEL, we do
not take RCU read lock before the removal, and ovs\_flow\_cmd\_fill\_info()
uses the flow-\>mask pointer afterwards.  The RCU read lock is taken,
but it's already late at that point.  The comment on that line
acknowledges that the lock is cosmetic and doesn't serve a real purpose.

This leads to use-after-free if the RCU grace period passes between
removal and the filling.  It is a short race window, but it is there
and can lead to a real crash in case memory allocation for the info
takes a bit longer:

 BUG: KASAN: slab-use-after-free in \_\_ovs\_nla\_put\_key
             net/openvswitch/flow\_netlink.c:1996
 BUG: KASAN: slab-use-after-free in ovs\_nla\_put\_key+0x2463/0x2e30
             net/openvswitch/flow\_netlink.c:2250
 Read of size 4 at addr ffff88801ee89970 by task ovs\_flow\_del\_ec/9487

 Call Trace:
  \<TASK\>
  \_\_ovs\_nla\_put\_key net/openvswitch/flow\_netlink.c:1996
  ovs\_nla\_put\_key+0x2463/0x2e30 net/openvswitch/flow\_netlink.c:2250
  ovs\_flow\_cmd\_fill\_info+0x420/0x9c0 net/openvswitch/datapath.c:930
  ovs\_flow\_cmd\_del+0x53a/0x970 net/openvswitch/datapath.c:1467
  ...
  netlink\_rcv\_skb+0x156/0x420 net/netlink/af\_netlink.c:2556
  \</TASK\>

 Allocated by task 9487:
  mask\_alloc net/openvswitch/flow\_table.c:967
  flow\_mask\_insert net/openvswitch/flow\_table.c:1012
  ovs\_flow\_tbl\_insert+0xea2/0x1a90 net/openvswitch/flow\_table.c:1084
  ovs\_flow\_cmd\_new+0x7e3/0xd90 net/openvswitch/datapath.c:1086
  ...
  netlink\_rcv\_skb+0x156/0x420 net/netlink/af\_netlink.c:2556

 Freed by task 9485:
  rcu\_free\_sheaf+0x1e/0x100 mm/slub.c:5978
  rcu\_do\_batch kernel/rcu/tree.c:2645
  rcu\_core+0x59c/0x10c0 kernel/rcu/tree.c:2897
  handle\_softirqs+0x1e4/0x9a0 kernel/softirq.c:622
  ...
  instr\_sysvec\_apic\_timer\_interrupt arch/x86/kernel/apic/apic.c:1062

ovs\_flow\_tbl\_remove() must be called after the ovs\_flow\_cmd\_fill\_info()
to avoid this race.  This also helps with cleaning up the forced cast
and the cosmetic RCU read lock.  Before the commit in the Fixes tag the
order did not matter as long as the flow object itself was not freed.

A wider RCU critical section could be another option, but we have a
GFP\_KERNEL allocation in the way.

Reported by Trend Micro's Zero Day Initiative as ZDI-CAN-32042.

## Affected and fixed versions

- Linux: \>= 56c19868e115fcf8d62d843e1b9616bb9837d0db, \< ea5f7b45b582665541ddfb77dce98611354af4ab; \>= 56c19868e115fcf8d62d843e1b9616bb9837d0db, \< 18ce1a8b7499c016d4a893d9b1db80608f73745d; \>= 56c19868e115fcf8d62d843e1b9616bb9837d0db, \< c15ef9a5bf594f93a31de2ec2ec394e2a903519a; \>= 56c19868e115fcf8d62d843e1b9616bb9837d0db, \< 64051fe200c7c759af71634bd2123552eaabb69a; \>= 56c19868e115fcf8d62d843e1b9616bb9837d0db, \< 0ba5cbc2f049af94ec94ff6f64958545efc5eaa2; \>= 56c19868e115fcf8d62d843e1b9616bb9837d0db, \< ac73e3af571da06c1d1cfe3f0f00dc978b851700; \>= 56c19868e115fcf8d62d843e1b9616bb9837d0db, \< 7f072b84afd05a77963eb1872f7174e280661dce; \>= 56c19868e115fcf8d62d843e1b9616bb9837d0db, \< 4e30317ff67a2eb12b4d890d39f72fd7e7117d48 (cvelist)
- Linux: 3.16 (cvelist)

## Mitigation

- Upgrade Linux to 4e30317ff67a2eb12b4d890d39f72fd7e7117d48 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-80994. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-80994.md
Affected: Linux >= 56c19868e115fcf8d62d843e1b9616bb9837d0db, < ea5f7b45b582665541ddfb77dce98611354af4ab; >= 56c19868e115fcf8d62d843e1b9616bb9837d0db, < 18ce1a8b7499c016d4a893d9b1db80608f73745d; >= 56c19868e115fcf8d62d843e1b9616bb9837d0db, < c15ef9a5bf594f93a31de2ec2ec394e2a903519a; >= 56c19868e115fcf8d62d843…
Fixed in: Linux 18ce1a8b7499c016d4a893d9b1db80608f73745d, Linux 64051fe200c7c759af71634bd2123552eaabb69a, Linux 0ba5cbc2f049af94ec94ff6f64958545efc5eaa2, Linux 7f072b84afd05a77963eb1872f7174e280661dce, Linux 4e30317ff67a2eb12b4d890d39f72fd7e7117d48

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-80994 being exploited?

There is no confirmed exploitation: CVE-2026-80994 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-80994?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-80994?

Linux \>= 56c19868e115fcf8d62d843e1b9616bb9837d0db, \< ea5f7b45b582665541ddfb77dce98611354af4ab; \>= 56c19868e115fcf8d62d843e1b9616bb9837d0db, \< 18ce1a8b7499c016d4a893d9b1db80608f73745d; \>= 56c19868e115fcf8d62d843e1b9616bb9837d0db, \< c15ef9a5bf594f93a31de2ec2ec394e2a903519a; \>= 56c19868e115fcf8d62d843e1b9616bb9837d0db, \< 64051fe200c7c759af71634bd2123552eaabb69a; \>= 56c19868e115fcf8d62d843e1b9616bb9837d0db, \< 0ba5cbc2f049af94ec94ff6f64958545efc5eaa2; \>= 56c19868e115fcf8d62d843e1b9616bb9837d0db, \< ac73e3af571da06c1d1cfe3f0f00dc978b851700; \>= 56c19868e115fcf8d62d843e1b9616bb9837d0db, \< 7f072b84afd05a77963eb1872f7174e280661dce; \>= 56c19868e115fcf8d62d843e1b9616bb9837d0db, \< 4e30317ff67a2eb12b4d890d39f72fd7e7117d48; Linux 3.16.

### Is there a fix for CVE-2026-80994?

Yes. Fixed in Linux 18ce1a8b7499c016d4a893d9b1db80608f73745d, Linux 64051fe200c7c759af71634bd2123552eaabb69a, Linux 0ba5cbc2f049af94ec94ff6f64958545efc5eaa2, Linux 7f072b84afd05a77963eb1872f7174e280661dce, Linux 4e30317ff67a2eb12b4d890d39f72fd7e7117d48. Upgrade Linux to 4e30317ff67a2eb12b4d890d39f72fd7e7117d48 or later.

### How do I check if I'm affected by CVE-2026-80994?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/ea5f7b45b582665541ddfb77dce98611354af4ab>
- other: <https://git.kernel.org/stable/c/18ce1a8b7499c016d4a893d9b1db80608f73745d>
- other: <https://git.kernel.org/stable/c/c15ef9a5bf594f93a31de2ec2ec394e2a903519a>
- other: <https://git.kernel.org/stable/c/64051fe200c7c759af71634bd2123552eaabb69a>
- other: <https://git.kernel.org/stable/c/0ba5cbc2f049af94ec94ff6f64958545efc5eaa2>
- other: <https://git.kernel.org/stable/c/ac73e3af571da06c1d1cfe3f0f00dc978b851700>
- other: <https://git.kernel.org/stable/c/7f072b84afd05a77963eb1872f7174e280661dce>
- other: <https://git.kernel.org/stable/c/4e30317ff67a2eb12b4d890d39f72fd7e7117d48>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-80994>

HTML: <https://flawdb.com/CVE-2026-80994> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-80994>
