Skip to contentSkip to conversation

CVE-2026-99538: ksmbd: ignore network devices of other namespaces

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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

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

ksmbd: ignore network devices of other namespaces

With no interface list configured, ksmbd binds every interface that comes up. ksmbd_netdev_event() does not look at the device's namespace, and create_socket() opens the listener in the namespace of the task raising NETDEV_UP. A container with its own address on a bridge brings up its interface and finds port 445 in its namespace already taken by ksmbd, so an SMB server running inside the container fails with "Address already in use".

Interfaces are also matched by name only, so a container's eth0 going down would stop the listener on the host's eth0.

Only handle netdev events for devices in init_net.

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

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

	Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.12.117 with commit cd27b2436d7fd04aaa8166ff3ce0da74cb12fe49
	Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.18.61 with commit 9582dc3a31784ac930293b15edaa36c897d74e27
	Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 7.3.2 with commit ddbcb0fe1b4ae5fd2c85fba5be61af1a554fce3b
	Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 7.4-rc1 with commit 1f5ce2b8b9164b3fcb93a18fe1e7b451c2fc6eea

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-99538

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:
fs/smb/server/transport_tcp.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/cd27b2436d7fd04aaa8166ff3ce0da74cb12fe49
	https://git.kernel.org/stable/c/9582dc3a31784ac930293b15edaa36c897d74e27
	https://git.kernel.org/stable/c/ddbcb0fe1b4ae5fd2c85fba5be61af1a554fce3b
	https://git.kernel.org/stable/c/1f5ce2b8b9164b3fcb93a18fe1e7b451c2fc6eea