{"id":"CVE-2026-97611","aliases":["CVE-2026-97611"],"related":[],"kind":"vulnerability","state":"published","title":"net: openvswitch: fix use-after-free of the flow table mask array","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: openvswitch: fix use-after-free of the flow table mask array\n\ntbl_mask_array_realloc() retires the old mask_array before it stops being\nreachable:\n\n\told = ovsl_dereference(tbl->mask_array);\n\tif (old) {\n\t\t...\n\t\tcall_rcu(&old->rcu, mask_array_rcu_cb);\n\t}\n\n\trcu_assign_pointer(tbl->mask_array, new);\n\ncall_rcu() only waits for read-side critical sections already in flight.\ntbl->mask_array still points at old between the call_rcu() and the\nrcu_assign_pointer(), so a reader entering ovs_flow_tbl_lookup_stats() in\nthat window picks up old in a fresh critical section that the pending\ngrace period does not cover.\n\ntbl_mask_array_realloc() runs in process context under ovs_mutex, so the\nwindow is preemptible and can outlast the grace period. Then\nmask_array_rcu_cb() frees old before the swap runs:\n\n  BUG: KASAN: slab-use-after-free in flow_lookup.constprop.0+0x2bf/0x2f0\n  Read of size 8 at addr ffff888020b3e018 by task poc/741\n   flow_lookup.constprop.0+0x2bf/0x2f0\n   ovs_flow_tbl_lookup_stats+0x4a3/0x5c0\n   ovs_dp_process_packet+0x19c/0x710\n   ovs_vport_receive+0x243/0x390\n   internal_dev_xmit+0x81/0x170\n  Freed by task 728:\n   kfree+0x16a/0x4e0\n   rcu_core+0x853/0x1030\n\nPublish the new array before retiring the old one. The kfree_rcu() that\ncall_rcu() replaced ran after the swap.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: openvswitch: fix use-after-free of the flow table mask array\n\ntbl_mask_array_realloc() retires the old mask_array before it stops being\nreachable:\n\n\told = ovsl_dereference(tbl->mask_array);\n\tif (old) {\n\t\t...\n\t\tcall_rcu(&old->rcu, mask_array_rcu_cb);\n\t}\n\n\trcu_assign_pointer(tbl->mask_array, new);\n\ncall_rcu() only waits for read-side critical sections already in flight.\ntbl->mask_array still points at old between the call_rcu() and the\nrcu_assign_pointer(), so a reader entering ovs_flow_tbl_lookup_stats() in\nthat window picks up old in a fresh critical section that the pending\ngrace period does not cover.\n\ntbl_mask_array_realloc() runs in process context under ovs_mutex, so the\nwindow is preemptible and can outlast the grace period. Then\nmask_array_rcu_cb() frees old before the swap runs:\n\n  BUG: KASAN: slab-use-after-free in flow_lookup.constprop.0+0x2bf/0x2f0\n  Read of size 8 at addr ffff888020b3e018 by task poc/741\n   flow_lookup.constprop.0+0x2bf/0x2f0\n   ovs_flow_tbl_lookup_stats+0x4a3/0x5c0\n   ovs_dp_process_packet+0x19c/0x710\n   ovs_vport_receive+0x243/0x390\n   internal_dev_xmit+0x81/0x170\n  Freed by task 728:\n   kfree+0x16a/0x4e0\n   rcu_core+0x853/0x1030\n\nPublish the new array before retiring the old one. The kfree_rcu() that\ncall_rcu() replaced ran after the swap.","source":"cvelist"}],"published":"2026-09-25T10:22:20.827Z","modified":"2026-10-19T10:17:31.140Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"eac87c413bf9794c14d488998a5265ea5b32f04e","fixed":"4c98b492e9ed63f9ca3e23566d9a6a4f235944f4","status":"affected"},{"type":"git","introduced":"eac87c413bf9794c14d488998a5265ea5b32f04e","fixed":"4016ead17acd75312c066ecd47c4b7f0a81ceaa2","status":"affected"},{"type":"git","introduced":"eac87c413bf9794c14d488998a5265ea5b32f04e","fixed":"017dbbf0d6c319a487f68e22f56d91fc787d5525","status":"affected"},{"type":"git","introduced":"eac87c413bf9794c14d488998a5265ea5b32f04e","fixed":"76678217cdabc41e3c74c23b45b62086ffb8fe7a","status":"affected"},{"type":"git","introduced":"eac87c413bf9794c14d488998a5265ea5b32f04e","fixed":"cd982e11684def5d4a9fcfd5354de09032828414","status":"affected"},{"type":"git","introduced":"eac87c413bf9794c14d488998a5265ea5b32f04e","fixed":"a0d18d21d48a551f82ee344e50efb8a682161489","status":"affected"},{"type":"git","introduced":"eac87c413bf9794c14d488998a5265ea5b32f04e","fixed":"035e9c3722067648a99010711d0ce81f42572ef4","status":"affected"},{"type":"git","introduced":"eac87c413bf9794c14d488998a5265ea5b32f04e","fixed":"ba4ba11ed6eb8972c69070417fc27b48deb002e8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.9","status":"unaffected"},{"type":"semver","introduced":"5.10.271","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.222","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.189","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.158","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.111","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.53","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.7","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/4c98b492e9ed63f9ca3e23566d9a6a4f235944f4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4016ead17acd75312c066ecd47c4b7f0a81ceaa2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/017dbbf0d6c319a487f68e22f56d91fc787d5525","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/76678217cdabc41e3c74c23b45b62086ffb8fe7a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cd982e11684def5d4a9fcfd5354de09032828414","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a0d18d21d48a551f82ee344e50efb8a682161489","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/035e9c3722067648a99010711d0ce81f42572ef4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ba4ba11ed6eb8972c69070417fc27b48deb002e8","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-97611","url":"https://www.cve.org/CVERecord?id=CVE-2026-97611","licence":"CVE Terms of Use","modified":"2026-10-19T09:10:15.022Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-97611","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97611","licence":"Public domain","modified":"2026-10-19T10:17:31.140Z"}],"updatedAt":"2026-11-25T22:59:40.976Z","epss":{"score":0.00164,"percentile":0.0583,"date":"2026-12-01T12:00:22.000Z"}}