ksmbd: ignore network devices of other namespaces
- State
- Published
- Severity
- Not Scored
- Published
- Nov 19, 2026
- Updated
- Nov 23, 2026
- Reserved
- Sep 25, 2026
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.
| Product | Versions |
|---|---|
| Linux Linux | 0626e6641f6b467447c81dd7678a69c66f7746cf to before a842094b4a3ac6116ccd002b1c73768051de9835 Affected0626e6641f6b467447c81dd7678a69c66f7746cf to before f909dfc54facd84906e0293047618aa18ae5b938 Affected0626e6641f6b467447c81dd7678a69c66f7746cf to before 86798325d2c4594565c2a9349173a69d08056540 Affected0626e6641f6b467447c81dd7678a69c66f7746cf to before cd27b2436d7fd04aaa8166ff3ce0da74cb12fe49 Affected0626e6641f6b467447c81dd7678a69c66f7746cf to before 9582dc3a31784ac930293b15edaa36c897d74e27 Affected0626e6641f6b467447c81dd7678a69c66f7746cf to before ddbcb0fe1b4ae5fd2c85fba5be61af1a554fce3b Affected0626e6641f6b467447c81dd7678a69c66f7746cf to before 1f5ce2b8b9164b3fcb93a18fe1e7b451c2fc6eea Affected |
| Linux Linux | 5.15 Affectedbefore 5.15 Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.61 through 6.18.* Not Affected7.3.2 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/a842094b4a3ac6116ccd002b1c73768051de9835
- https://git.kernel.org/stable/c/f909dfc54facd84906e0293047618aa18ae5b938
- https://git.kernel.org/stable/c/86798325d2c4594565c2a9349173a69d08056540
- 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
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.