Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3A2E9490BFC for ; Fri, 25 Sep 2026 10:26:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332017; cv=none; b=XLBLJANJEcTjIsvHkTYWNlTDQbnk+J6P8VDUK4sVpBewPkLaoIdIRY986nl9cUKQ/7LoCmFOEAPjdRCgu/UadMRjerzBctel+lD9HPCded4l/U92lHIjFMEBQmzkUTkwD7HP/XEBSzaLmJN2GNDA6N4oZKMAKoOUN1Zkll7uKPs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332017; c=relaxed/simple; bh=CSPyctGu3zPqbBBWtfcl69JWGTv/S1onQj2tL+uRHUY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cx3K/y9unrrD8Px4vT1JD0yz2Ct/yIMMQHtPTzLx+Wwn2SjB5+Ybni4OT9WHcDrkHghudnkFo13ZJB6KfLxYkVUGaoxC6GkwxJhtb6TR5W9M3Z99xZf6Gzfk9zfZ3viOaJSgNdmTarcIIm/CyBLrlRObD98wdiYiNqqZs1TfxXE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uTDnaj2v; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="uTDnaj2v" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9645F1F000FF; Fri, 25 Sep 2026 10:26:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332016; bh=1C/ZM9/YsOkWLTZl9Lx1LlilU7JCI5C8y36PSjkFt1Y=; h=From:To:Cc:Subject:Date:Reply-To; b=uTDnaj2v+rfoOspcXi7ifxjthg2HEKfO67G5bJZYp1PLLwWYg1xZgeDG5drmbBl6O sz0NvboRQiGORzMw2EOwqJzd9qEtcDJuwsjE8M7w2xUOijWjT5Klgt7QeqSHAvE+6F rtfoWB3A4eNymMQb5I+fuDYpFm7QJlAjBnvS/eZo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97611: net: openvswitch: fix use-after-free of the flow table mask array Date: Fri, 25 Sep 2026 12:23:11 +0200 Message-ID: <2026092502-CVE-2026-97611-0936@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3496; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1EJzNKfWf7FrIEx8xJsbdsD4fX9mfhIeRw6cHAG21Ms=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvL3WR2W/+6goPf388lRph4YOHc4PghlrdQL6PXn2V 1wqVNjTEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABORV2eYzfaDfamFkcbnF3ul fjsfX3Ntg8i+dIZ59jbLeisvTbyxfL9akcMLRssYo/PrAQ== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== 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. The Linux kernel CVE team has assigned CVE-2026-97611 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit eac87c413bf9794c14d488998a5265ea5b32f04e and fixed in 6.12.111 with commit cd982e11684def5d4a9fcfd5354de09032828414 Issue introduced in 5.9 with commit eac87c413bf9794c14d488998a5265ea5b32f04e and fixed in 6.18.53 with commit a0d18d21d48a551f82ee344e50efb8a682161489 Issue introduced in 5.9 with commit eac87c413bf9794c14d488998a5265ea5b32f04e and fixed in 7.2.7 with commit 035e9c3722067648a99010711d0ce81f42572ef4 Issue introduced in 5.9 with commit eac87c413bf9794c14d488998a5265ea5b32f04e and fixed in 7.3-rc3 with commit ba4ba11ed6eb8972c69070417fc27b48deb002e8 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-97611 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: net/openvswitch/flow_table.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/cd982e11684def5d4a9fcfd5354de09032828414 https://git.kernel.org/stable/c/a0d18d21d48a551f82ee344e50efb8a682161489 https://git.kernel.org/stable/c/035e9c3722067648a99010711d0ce81f42572ef4 https://git.kernel.org/stable/c/ba4ba11ed6eb8972c69070417fc27b48deb002e8