Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 45DAD3E022D for ; Fri, 24 Apr 2026 14:48:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777042103; cv=none; b=N1s7KYtgDRRM4pfVr0WJMeBbmxwEH3bPQkoNm/RElT9vgKKkYnR0FRjVpFVMJjU+MoAAoW3iHc7KxVW977KKctrAjyUMTJx4TWCm+yEYoEwrEv+4HQfCjK+++W7WQa0hRXxndbTn69sTnh0PQw/5q6niub/jSVHpcpbkV7b6VGM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777042103; c=relaxed/simple; bh=4s25pKVXoZhfkK5/UhmRSk1xvYhhOPn+8GzZ16Jpm9A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rUw/PpEQR+M0cyJuInSf6ga41UWfvu0BW8p6WLRml1GhoUv9mliGQ8+UqKrR3Z+I9AjZr2tCEjiWKCLF0TlTaEt6gADk+uPidommN8MMOyyX+CQ4eBNjnpn71llgiQkQhbMq9nb79r74oA5BPwX1CjauiHcTwZyTlmbkss9ngGw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WDbt2vcg; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="WDbt2vcg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D09E7C19425; Fri, 24 Apr 2026 14:48:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777042103; bh=4s25pKVXoZhfkK5/UhmRSk1xvYhhOPn+8GzZ16Jpm9A=; h=From:To:Cc:Subject:Date:Reply-To:From; b=WDbt2vcgu7SKV5oFAIk0PQkqc/MbGg27f33srrolM6X5RRYNTwCx5z6Wvqn4WaPQ8 tvf5POvQ9x6PV0ZMkFG4tc6b65ftru4AbB+/4jNWqCxSL9uXIswuuoas87A5A3yC9u hOiZ53fxsHShno8YC1VEjLizKB2Vuhxf5brZCOi4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31659: batman-adv: reject oversized global TT response buffers Date: Fri, 24 Apr 2026 16:46:21 +0200 Message-ID: <2026042403-CVE-2026-31659-58eb@gregkh> X-Mailer: git-send-email 2.53.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=3798; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=PIjmm7Cg5astsQJ9+XHvJn8/5GehlKEGk+MbgKv4yy0=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmvm7Q7gssXc387MG1L45odBU3PI4QKekL0Dik//bqke csnywj5jhgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIkRfDgs47z/T4H2ywOnSY b5P55utK5983rWGYZrddcX+/xG236WfeacdkJd4qOZMCAA== 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: reject oversized global TT response buffers batadv_tt_prepare_tvlv_global_data() builds the allocation length for a global TT response in 16-bit temporaries. When a remote originator advertises a large enough global TT, the TT payload length plus the VLAN header offset can exceed 65535 and wrap before kmalloc(). The full-table response path still uses the original TT payload length when it fills tt_change, so the wrapped allocation is too small and batadv_tt_prepare_tvlv_global_data() writes past the end of the heap object before the later packet-size check runs. Fix this by rejecting TT responses whose TVLV value length cannot fit in the 16-bit TVLV payload length field. The Linux kernel CVE team has assigned CVE-2026-31659 to this issue. Affected and fixed versions =========================== Issue introduced in 3.13 with commit 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b and fixed in 5.10.253 with commit 7e5d007e0df946bffb8542fb112e0044014a5897 Issue introduced in 3.13 with commit 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b and fixed in 5.15.203 with commit 2997f4bd1f982e7013709946e00be89b507693fa Issue introduced in 3.13 with commit 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b and fixed in 6.1.169 with commit 95c71365a2222908441b54d6f2c315e0c79fcec3 Issue introduced in 3.13 with commit 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b and fixed in 6.6.135 with commit 69d61639bc7e963c3b645e570279d731e7c89062 Issue introduced in 3.13 with commit 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b and fixed in 6.12.82 with commit f970646b9a39539d1bac86822ac78b5915455ea9 Issue introduced in 3.13 with commit 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b and fixed in 6.18.23 with commit de6c1dc3c7d01a152607e6fcecee4d5288283f10 Issue introduced in 3.13 with commit 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b and fixed in 6.19.13 with commit cf2199171ef799ca7270019125f4a91bd20ad4d9 Issue introduced in 3.13 with commit 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b and fixed in 7.0 with commit 3a359bf5c61d52e7f09754108309d637532164a6 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-31659 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/translation-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/7e5d007e0df946bffb8542fb112e0044014a5897 https://git.kernel.org/stable/c/2997f4bd1f982e7013709946e00be89b507693fa https://git.kernel.org/stable/c/95c71365a2222908441b54d6f2c315e0c79fcec3 https://git.kernel.org/stable/c/69d61639bc7e963c3b645e570279d731e7c89062 https://git.kernel.org/stable/c/f970646b9a39539d1bac86822ac78b5915455ea9 https://git.kernel.org/stable/c/de6c1dc3c7d01a152607e6fcecee4d5288283f10 https://git.kernel.org/stable/c/cf2199171ef799ca7270019125f4a91bd20ad4d9 https://git.kernel.org/stable/c/3a359bf5c61d52e7f09754108309d637532164a6