CVE-2021-46960: cifs: Return correct error code from smb2_get_enc_key

Published Feb 27, 2024
·
Updated

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

7 affected componentsFixes available
Linux Linux kernel>=4.11<4.14.233
Linux Linux kernel>=4.15<4.19.191
Linux Linux kernel>=4.20<5.4.118
Linux Linux kernel>=5.5<5.10.36
Linux Linux kernel>=5.11<5.11.20
Linux Linux kernel>=5.12<5.12.3
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.22-16.12.25-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to 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
  2. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Fixed in 5.4.0-70-generic #78~18.04.1-Ubuntu

Event History

Feb 27, 2024
CVE Published
via MITRE·06:46 PM
Data Sourced
via MITRE·06:46 PM
DescriptionSeverity
Data Sourced
via NVD·07:04 PM
RemedyDescriptionSeverityAffected Software
Jul 31, 2024
Data Sourced
via Launchpad·04:31 PM
Description
Apr 26, 2025
Data Sourced
via Ubuntu·11:49 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2021-46960?

CVE-2021-46960 is classified as a medium severity vulnerability affecting the Linux kernel.

2

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.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203