smb: client: require net admin for CIFS SWN netlink
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ fed979a7e082bd9f25f9002c3c4f8740dacd0bc8 · < c2397b93fbb6f44a788fff30f99be2c20cc5e50f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
smb: client: require net admin for CIFS SWN netlink
CIFS_GENL_CMD_SWN_NOTIFY is the userspace witness-notify command. The intended sender is the cifs.witness helper, but the generic-netlink operation currently has no capability flag, so any local process can send RESOURCE_CHANGE or CLIENT_MOVE notifications to the in-kernel witness handler.
The same family exposes CIFS_GENL_MCGRP_SWN without multicast-group capability flags. Register messages sent to that group include the witness registration id and, for NTLM-authenticated mounts, the username, domain, and password attributes copied from the CIFS session. An unprivileged local process should not be able to join that group and receive those messages.
Require CAP_NET_ADMIN for incoming SWN_NOTIFY commands with GENL_ADMIN_PERM, and require CAP_NET_ADMIN over the network namespace for joining the SWN multicast group with GENL_MCAST_CAP_NET_ADMIN. The cifs.witness service runs with the privileges needed for both operations.
From the CVE record · Linux
The Linux kernel’s CIFS witness netlink interface allows unprivileged local processes to send witness notifications and join the witness multicast group. Registration messages on that group can expose a witness registration ID and, for NTLM-authenticated mounts, the username, domain, and password. No network access or user interaction is described as necessary.
Engineers running Linux kernels with the CIFS client should check their exposure; affected versions were not specified.