CVE-2026-64412: netfilter: ebtables: module names must be null-terminated

Greg Kroah-Hartman <[email protected]> Sat, 25 Jul 2026 10:50:29 +0200
Newsgroups org.kernel.vger.linux-cve-announce
Message-ID <2026072532-CVE-2026-64412-2163@gregkh>
From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

netfilter: ebtables: module names must be null-terminated

We need to explicitly check the length, else we may pass non-null
terminated string to request_module().

The Linux kernel CVE team has assigned CVE-2026-64412 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 4.6 with commit bcf4934288402be3464110109a4dae3bd6fb3e93 and fixed in 5.10.261 with commit 43dd2332b8a27b3ac5108791680cade654ab0f96
	Issue introduced in 4.6 with commit bcf4934288402be3464110109a4dae3bd6fb3e93 and fixed in 5.15.212 with commit 5777c8f1c3610786d8482b8f620f40fccaf1542b
	Issue introduced in 4.6 with commit bcf4934288402be3464110109a4dae3bd6fb3e93 and fixed in 6.1.178 with commit 0ddca0f90fa3395111d078ae4399615cf3ea94aa
	Issue introduced in 4.6 with commit bcf4934288402be3464110109a4dae3bd6fb3e93 and fixed in 6.6.145 with commit d2367d99f2455f373996d9ddbe833dbe9f942213
	Issue introduced in 4.6 with commit bcf4934288402be3464110109a4dae3bd6fb3e93 and fixed in 6.12.96 with commit da32e78bbb187ed7b137e0007034185570a3a172
	Issue introduced in 4.6 with commit bcf4934288402be3464110109a4dae3bd6fb3e93 and fixed in 6.18.39 with commit 13a5f532e3a4fc75c33060a026def1572c208643
	Issue introduced in 4.6 with commit bcf4934288402be3464110109a4dae3bd6fb3e93 and fixed in 7.1.4 with commit 7b217960e88b5d2d1e8cdcbcaf3bdf6fe199a0c8
	Issue introduced in 4.6 with commit bcf4934288402be3464110109a4dae3bd6fb3e93 and fixed in 7.2-rc3 with commit 084d23f818321390509e9738a0b08bbf46df6425

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-64412
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/bridge/netfilter/ebtables.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/43dd2332b8a27b3ac5108791680cade654ab0f96
	https://git.kernel.org/stable/c/5777c8f1c3610786d8482b8f620f40fccaf1542b
	https://git.kernel.org/stable/c/0ddca0f90fa3395111d078ae4399615cf3ea94aa
	https://git.kernel.org/stable/c/d2367d99f2455f373996d9ddbe833dbe9f942213
	https://git.kernel.org/stable/c/da32e78bbb187ed7b137e0007034185570a3a172
	https://git.kernel.org/stable/c/13a5f532e3a4fc75c33060a026def1572c208643
	https://git.kernel.org/stable/c/7b217960e88b5d2d1e8cdcbcaf3bdf6fe199a0c8
	https://git.kernel.org/stable/c/084d23f818321390509e9738a0b08bbf46df6425