net: openvswitch: fix use-after-free of the flow table mask array
In the Linux kernel, the following vulnerability has been resolved: net: openvswitch: fix use-after-free of the flow table mask array tbl_mask_array_realloc() retires the old mask_array before it stops being reachable: old = ovsl_dereference(tbl->mask_array); if (old) { ... call_rcu(&old->rcu, mask_array_rcu_cb); } rcu_assign_pointer(tbl->mask_array, new); call_rcu() only waits for read-side critical sections already in flight. tbl->mask_array still points at old between the call_rcu() and the rcu_assign_pointer(), so a reader entering ovs_flow_tbl_lookup_stats() in that window picks up old in a fresh critical section that the pending grace period does not cover. tbl_mask_array_realloc() runs in process context under ovs_mutex, so the window is preemptible and can outlast the grace period. Then mask_array_rcu_cb() frees old before the swap runs: BUG: KASAN: slab-use-after-free in flow_lookup.constprop.0+0x2bf/0x2f0 Read of size 8 at addr ffff888020b3e018 by task poc/741 flow_lookup.constprop.0+0x2bf/0x2f0 ovs_flow_tbl_lookup_stats+0x4a3/0x5c0 ovs_dp_process_packet+0x19c/0x710 ovs_vport_receive+0x243/0x390 internal_dev_xmit+0x81/0x170 Freed by task 728: kfree+0x16a/0x4e0 rcu_core+0x853/0x1030 Publish the new array before retiring the old one. The kfree_rcu() that call_rcu() replaced ran after the swap.
CVE-2026-97611
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-97611
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "eac87c413bf9794c14d488998a5265ea5b32f04e",
"lessThan": "4c98b492e9ed63f9ca3e23566d9a6a4f235944f4",
"versionType": "git"
},
{
"status": "affected",
"version": "eac87c413bf9794c14d488998a5265ea5b32f04e",
"lessThan": "4016ead17acd75312c066ecd47c4b7f0a81ceaa2",
"versionType": "git"
},
{
"status": "affected",
"version": "eac87c413bf9794c14d488998a5265ea5b32f04e",
"lessThan": "017dbbf0d6c319a487f68e22f56d91fc787d5525",
"versionType": "git"
},
{
"status": "affected",
"version": "eac87c413bf9794c14d488998a5265ea5b32f04e",
"lessThan": "76678217cdabc41e3c74c23b45b62086ffb8fe7a",
"versionType": "git"
},
{
"status": "affected",
"version": "eac87c413bf9794c14d488998a5265ea5b32f04e",
"lessThan": "cd982e11684def5d4a9fcfd5354de09032828414",
"versionType": "git"
},
{
"status": "affected",
"version": "eac87c413bf9794c14d488998a5265ea5b32f04e",
"lessThan": "a0d18d21d48a551f82ee344e50efb8a682161489",
"versionType": "git"
},
{
"status": "affected",
"version": "eac87c413bf9794c14d488998a5265ea5b32f04e",
"lessThan": "035e9c3722067648a99010711d0ce81f42572ef4",
"versionType": "git"
},
{
"status": "affected",
"version": "eac87c413bf9794c14d488998a5265ea5b32f04e",
"lessThan": "ba4ba11ed6eb8972c69070417fc27b48deb002e8",
"versionType": "git"
}
],
"programFiles": [
"net/openvswitch/flow_table.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "5.9"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "5.9",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "5.10.271",
"versionType": "semver",
"lessThanOrEqual": "5.10.*"
},
{
"status": "unaffected",
"version": "5.15.222",
"versionType": "semver",
"lessThanOrEqual": "5.15.*"
},
{
"status": "unaffected",
"version": "6.1.189",
"versionType": "semver",
"lessThanOrEqual": "6.1.*"
},
{
"status": "unaffected",
"version": "6.6.158",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.111",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.53",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.7",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"net/openvswitch/flow_table.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-97611
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #38048 · Revision 1
- Added to Heist Feed
- Publisher date