smb: client: reject userspace cifs.spnego descriptions
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f1d662a7d5e5322e583aad6b3cfec03d8f27b435 · < 91f89c1d83e80417629791fcef6af8140d7d01c8| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
smb: client: reject userspace cifs.spnego descriptions
cifs.spnego key descriptions contain authority-bearing fields such as pid, uid, creduid, and upcall_target that cifs.upcall treats as kernel-originating inputs. However, userspace can also create keys of this type through request_key(2) or add_key(2), allowing those fields to be supplied without CIFS origin.
Only accept cifs.spnego descriptions while CIFS is using its private spnego_cred to request the key.
From the CVE record · Linux
The Linux kernel SMB client accepts userspace-created cifs.spnego key descriptions containing fields that cifs.upcall treats as kernel-originating. A local userspace process can supply those fields through request_key(2) or add_key(2), without the descriptions originating from CIFS.
Engineers running Linux kernels with the SMB client should check their versions against the vendor advisory; affected versions were not specified.