From mboxrd@z Thu Jan 1 00:00:00 1970 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 C8D9B3624DE for ; Sat, 15 Aug 2026 06:17:30 +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=1786774651; cv=none; b=dxHOYzF9IFNHNt0awi8EHT4yq2Osjcsu9P+XftoA0Fs8M9+IEjvOF1nV37Vs5vbjlJCuE+dy3PUgzIUsFX7HfdrX/FbwG57iRMa6lHL9FrwKywjQ1g6uMUxtdXiIa0G5Wef0RHF002yq1fAZJvvKAJEofXrT4tRhX1+E6SM7GGw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774651; c=relaxed/simple; bh=d0kdBNlLScz0n1Pk1ub04u5Sp3yQk7PaRrQ1fYelHts=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZuiKEpg2y26X7vbUVyzWG/Pa6Lb2jqYntA6H6rX8R1F8pwNO3b7xaO4CoJ+re8X94sdOQx+YgBq0c0Ii8rse9ZRvmhISVO6KbNRDPJplwJCoJGS57zUHyyCXNzqVeHwQTN9jdev8XgvZHW+aM8VLK4eLWAsn9d+GpfK5CMbrEms= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=v5l4Ru6K; 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="v5l4Ru6K" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 218E61F000E9; Sat, 15 Aug 2026 06:17:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786774650; bh=f+fgsTeW7EytHGlzC1KfKkvUiyL68tS3r5guGwMtefc=; h=From:To:Cc:Subject:Date:Reply-To; b=v5l4Ru6KGmMhNYSw2DHBTPcTP2dVId+rWbUhjeA3qWaXOESJNLVUwPQQGSsb9DVcW yaAGcBecbveFZfgX2xvs6lBK6g69pQ4AqZp7FT/YxHaK2ojOY/Tphi+ydoFtpV/jv/ BCRg1NgTTPzdLc5f0Vo4K1NE6vfJ7KKAk0/TgBNE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72227: batman-adv: mcast: avoid OOB read of num_dests header Date: Sat, 15 Aug 2026 15:05:06 +0900 Message-ID: <2026081548-CVE-2026-72227-1b07@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=2753; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YRdtYzczeJgluJmUyVV+cN0S+M91kWh82NxSRU8zJIA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDGeO2iUa1T2TFIiQtEm3jvTdXKd1LfH0jT+/3q7o5 9QuXarREcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPxdGSY78G0fJ1H5ua1p0XW 2s78lGPC5JFszDDfV/OAqWnTf8Yob5etXzLvXzWtz/4GAA== 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: mcast: avoid OOB read of num_dests header Before the access to struct batadv_tvlv_mcast_tracker's num_dests, it is attempted to check whether enough space is actually in the network header. But instead of using offsetofend() to check for the whole size (2) which must be accessible, offsetof() of is called. The latter is always returning 0. The comparison with the network header length will always return that enough data is available - even when only 1 or 0 bytes are accessible. Instead of using offsetofend(), use the more common check for the whole header. The Linux kernel CVE team has assigned CVE-2026-72227 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 07afe1ba288c04280622fa002ed385f1ac0b6fe6 and fixed in 6.12.97 with commit 80f62893d135f415e7a374dd47b468ec298f7aed Issue introduced in 6.8 with commit 07afe1ba288c04280622fa002ed385f1ac0b6fe6 and fixed in 6.18.40 with commit d2b657c9653fcebca828a2ead13f444e0da68817 Issue introduced in 6.8 with commit 07afe1ba288c04280622fa002ed385f1ac0b6fe6 and fixed in 7.1.5 with commit 7d1a877670bc2e901241073f022ca8d1b2f85f1c Issue introduced in 6.8 with commit 07afe1ba288c04280622fa002ed385f1ac0b6fe6 and fixed in 7.2-rc3 with commit 38eaed28e250895d56f4b7989bd65479a511c5c3 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-72227 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/multicast_forw.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/80f62893d135f415e7a374dd47b468ec298f7aed https://git.kernel.org/stable/c/d2b657c9653fcebca828a2ead13f444e0da68817 https://git.kernel.org/stable/c/7d1a877670bc2e901241073f022ca8d1b2f85f1c https://git.kernel.org/stable/c/38eaed28e250895d56f4b7989bd65479a511c5c3