Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected fed979a7e082bd9f25f9002c3c4f8740dacd0bc8 before 9cf7eb8919344932f909b2fac76296f7656fda8d; affected fed979a7e082bd9f25f9002c3c4f8740dacd0bc8 before 9919021a3b7974ae66a5f9915e3a48c10cfd409b; affected fed979a7e082bd9f25f9002c3c4f8740dacd0bc8 before 969bc6370334a5b4720c5470783295d6484bbc95; affected fed979a7e082bd9f25f9002c3c4f8740dacd0bc8 before a3238b09c58f323e40743ce174cd0ab81b5c09ed; affected fed979a7e082bd9f25f9002c3c4f8740dacd0bc8 before a8d17d22db591099519a89f14dd24810daba74c3; affected fed979a7e082bd9f25f9002c3c4f8740dacd0bc8 before c2397b93fbb6f44a788fff30f99be2c20cc5e50f; affected fed979a7e082bd9f25f9002c3c4f8740dacd0bc8 before d1ebfce2c1d161186a82e77590bf7da2ea1bce91 |
| Linux / Linux | affected 5.11; unaffected 0 before 5.11; unaffected 5.15.210 through 5.15.*; unaffected 6.1.176 through 6.1.*; unaffected 6.6.143 through 6.6.*; unaffected 6.12.92 through 6.12.*; unaffected 6.18.34 through 6.18.*; unaffected 7.0.11 through 7.0.*; unaffected 7.1 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/9cf7eb8919344932f909b2fac76296f7656fda8d
- https://git.kernel.org/stable/c/9919021a3b7974ae66a5f9915e3a48c10cfd409b
- https://git.kernel.org/stable/c/969bc6370334a5b4720c5470783295d6484bbc95
- https://git.kernel.org/stable/c/a3238b09c58f323e40743ce174cd0ab81b5c09ed
- https://git.kernel.org/stable/c/a8d17d22db591099519a89f14dd24810daba74c3
- https://git.kernel.org/stable/c/c2397b93fbb6f44a788fff30f99be2c20cc5e50f
- https://git.kernel.org/stable/c/d1ebfce2c1d161186a82e77590bf7da2ea1bce91