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 BC41E379974 for ; Wed, 24 Jun 2026 07:15:09 +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=1782285310; cv=none; b=lXTHYflfak6FYwMh8H14u589N5dynR/qHMMZs4x8ply3Z9BumWTIGv45g8h+b0jfeCBkesq0Mb1WHLLpoOBi3NvhrZ2PJKgtMYuAmlrZ8CFVtxVFqOyejOfaiHxLI/zV4MHsTOMD8j33XtjSw1VaTs1ihobhBiBMF8q2fU2q13Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782285310; c=relaxed/simple; bh=X35kmIhnW5mT3Qt2ueZ3KPyCMk2bhc1ERcFMpbAJa7A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gudm0pQqtVpu8ghMNmMCqZFWWOW5iZmg7Z+rtwW6zbNVwi+/LYiBCo0SFrFuWtss9MktLYxFt8KZby8J3Bwjot4ATq8ruMYm266y1Z50TeneFa21ZzY8fsY10dVJVooCpTVyzEMFjUTvgQ/lK3Voxkk8q4l7PzR/Dvt5vSd5ghQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ba8V3Oa3; 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="Ba8V3Oa3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C40331F000E9; Wed, 24 Jun 2026 07:15:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782285309; bh=NGJh8MwLS2VL1xEnP4WgQ6buFMFiL5/gbZBr1OaOPOI=; h=From:To:Cc:Subject:Date:Reply-To; b=Ba8V3Oa3ICYypnyQpxovYBz3b7rQi/mZ68Ce8Ca3UMoxTHK1gSGPwwzxgfWFGrZiv draWX1W9SRbEv1PmBDZJLgc9suVkg3XXAYCWvZR4FG6pnzmggjt96wOo8a9rqglR7r +lYvzBw/kjw+YKqXg69JbN3C3VXzaVHCaBAInkrw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-52926: batman-adv: clear current gateway during teardown Date: Wed, 24 Jun 2026 09:13:41 +0200 Message-ID: <2026062431-CVE-2026-52926-00d4@gregkh> X-Mailer: git-send-email 2.54.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=3485; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fhePNrCHBcYPJfE+5u7LS8p7lCHgrLdO65pS6iij4Y8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnWzbPP98T9n/nWhWefULXr85usLetkv0R6bFj5z+7ZL sPywyc+dsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE/vYwzBW9qaU054Pg0S0N iQX3HhjfsXI2Wsowv0z70kHmQFOpqbtNXddE/H1Wvd5DEgA= 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: batman-adv: clear current gateway during teardown batadv_gw_node_free() removes the gateway list entries during mesh teardown, but it does not clear the currently selected gateway. This leaves stale gateway state behind across cleanup and can break a later mesh recreation. Clear bat_priv->gw.curr_gw before walking the gateway list so the selected gateway reference is dropped as part of teardown. The Linux kernel CVE team has assigned CVE-2026-52926 to this issue. Affected and fixed versions =========================== Issue introduced in 3.1 with commit 2265c141086474bbae55a5bb3afa1ebb78ccaa7c and fixed in 5.10.258 with commit a3f3f1ec8aad84c5dd386c430b9c61cddd85b18f Issue introduced in 3.1 with commit 2265c141086474bbae55a5bb3afa1ebb78ccaa7c and fixed in 5.15.209 with commit e2ec4c712d19141ca7bf7fbbb1d842f73abaa186 Issue introduced in 3.1 with commit 2265c141086474bbae55a5bb3afa1ebb78ccaa7c and fixed in 6.1.175 with commit 9a1a8ed4facfe843bde6fdfcf7af0e9923eb2e17 Issue introduced in 3.1 with commit 2265c141086474bbae55a5bb3afa1ebb78ccaa7c and fixed in 6.6.142 with commit 6de089b545db013433cf934bb4e4433dec2dd65f Issue introduced in 3.1 with commit 2265c141086474bbae55a5bb3afa1ebb78ccaa7c and fixed in 6.12.92 with commit 30bda3ef4b0cac777f1a7c314cd08b8ff6437365 Issue introduced in 3.1 with commit 2265c141086474bbae55a5bb3afa1ebb78ccaa7c and fixed in 6.18.34 with commit ae7aeb0ce3c0ebbe357ed525779acac197a18086 Issue introduced in 3.1 with commit 2265c141086474bbae55a5bb3afa1ebb78ccaa7c and fixed in 7.0.11 with commit 17e3a441111cd1a530cd6ee69a22f3161d80d810 Issue introduced in 3.1 with commit 2265c141086474bbae55a5bb3afa1ebb78ccaa7c and fixed in 7.1 with commit a340a51ed801eab7bb454150c226323b865263cc 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-52926 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/batman-adv/gateway_client.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/a3f3f1ec8aad84c5dd386c430b9c61cddd85b18f https://git.kernel.org/stable/c/e2ec4c712d19141ca7bf7fbbb1d842f73abaa186 https://git.kernel.org/stable/c/9a1a8ed4facfe843bde6fdfcf7af0e9923eb2e17 https://git.kernel.org/stable/c/6de089b545db013433cf934bb4e4433dec2dd65f https://git.kernel.org/stable/c/30bda3ef4b0cac777f1a7c314cd08b8ff6437365 https://git.kernel.org/stable/c/ae7aeb0ce3c0ebbe357ed525779acac197a18086 https://git.kernel.org/stable/c/17e3a441111cd1a530cd6ee69a22f3161d80d810 https://git.kernel.org/stable/c/a340a51ed801eab7bb454150c226323b865263cc