CVE-2021-46960: cifs: Return correct error code from smb2_get_enc_key
In the Linux kernel, the following vulnerability has been resolved:
cifs: Return correct error code from smb2getenckey
Avoid a warning if the error percolates back up:
[440700.376476] CIFS VFS: \\otters.example.com cryptmessage: Could not get encryption key [440700.386947] ------------[ cut here ]------------ [440700.386948] err = 1 [440700.386977] WARNING: CPU: 11 PID: 2733 at /build/linux-hwe-5.4-p6lk6L/linux-hwe-5.4-5.4.0/lib/errseq.c:74 errseqset+0x5c/0x70 ... [440700.397304] CPU: 11 PID: 2733 Comm: tar Tainted: G OE 5.4.0-70-generic #78~18.04.1-Ubuntu ... [440700.397334] Call Trace: [440700.397346] filemapsetwberr+0x1a/0x70 [440700.397419] cifswritepages+0x9c7/0xb30 [cifs] [440700.397426] dowritepages+0x4b/0xe0 [440700.397444] filemapfdatawriterange+0xcb/0x100 [440700.397455] filemapwriteandwait+0x42/0xa0 [440700.397486] cifssetattr+0x68b/0xf30 [cifs] [440700.397493] notifychange+0x358/0x4a0 [440700.397500] utimescommon+0xe9/0x1c0 [440700.397510] doutimes+0xc5/0x150 [440700.397520] x64sysutimensat+0x88/0xd0
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.22-1Fixed in 6.12.25-1 - Upgrade
Upgrade
Linux kernelto a version that resolves this vulnerability.Fixed in 5.4.0-70-generic #78~18.04.1-Ubuntu
Event History
Frequently Asked Questions
What is the severity of CVE-2021-46960?
CVE-2021-46960 is classified as a medium severity vulnerability affecting the Linux kernel.
How do I fix CVE-2021-46960?
To fix CVE-2021-46960, update your Linux kernel to a patched version, such as 5.10.223-1 or newer.
What systems are affected by CVE-2021-46960?
CVE-2021-46960 affects multiple versions of the Linux kernel, specifically versions from 4.11 to 5.12.
What are the consequences of not addressing CVE-2021-46960?
Failing to address CVE-2021-46960 may lead to potential information disclosure or denial of service in CIFS VFS operations.
How can I verify if my system is vulnerable to CVE-2021-46960?
You can verify vulnerability to CVE-2021-46960 by checking your Linux kernel version and comparing it against affected versions within the specified range.