# cifs: Return correct error code from smb2_get_enc_key

CVE record · `CVE-2021-46960`

- **Identifiers:** `CVE-2021-46960`
- **State:** Confirmed
- **Severity:** CVSS 7.5 High
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 27 Feb 2024
- **Updated:** 5 Aug 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 27 Feb 2024, 18:46 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `61cfac6f267dabcf2740a7ec8a0295833b28b5f5 to before e94851629c49c65b4fbb29a5725ddfd7988f8f20` (git)
  - affected: `61cfac6f267dabcf2740a7ec8a0295833b28b5f5 to before e486f8397f3f14a7cadc166138141fdb14379a54` (git)
  - affected: `61cfac6f267dabcf2740a7ec8a0295833b28b5f5 to before 93f3339b22ba17e66f0808737467b70ba087eaec` (git)
  - affected: `61cfac6f267dabcf2740a7ec8a0295833b28b5f5 to before aaa0faa5c28a91c362352d6b35dc3ed10df56fb0` (git)
  - affected: `61cfac6f267dabcf2740a7ec8a0295833b28b5f5 to before f59a9242942fef0de7b926e438ba4eae65d4b4dd` (git)
  - affected: `61cfac6f267dabcf2740a7ec8a0295833b28b5f5 to before b399c1a3ea0b9d10047ff266d65533df7f15532f` (git)
  - affected: `61cfac6f267dabcf2740a7ec8a0295833b28b5f5 to before 83728cbf366e334301091d5b808add468ab46b27` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `4.11`
  - unaffected: `before 4.11` (semver)
  - unaffected: `4.14.233 to 4.14.*, inclusive` (semver)
  - unaffected: `4.19.191 to 4.19.*, inclusive` (semver)
  - unaffected: `5.4.118 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.36 to 5.10.*, inclusive` (semver)
  - unaffected: `5.11.20 to 5.11.*, inclusive` (semver)
  - unaffected: `5.12.3 to 5.12.*, inclusive` (semver)
  - unaffected: `5.13 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 7.5 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`, from CNA (Linux)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0064, the 51st percentile, on 22 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 27 Feb 2024. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2021-46960](https://www.cve.org/CVERecord?id=CVE-2021-46960)
- [NVD: CVE-2021-46960](https://nvd.nist.gov/vuln/detail/CVE-2021-46960)

### References from the CNA

- <https://git.kernel.org/stable/c/e94851629c49c65b4fbb29a5725ddfd7988f8f20>
- <https://git.kernel.org/stable/c/e486f8397f3f14a7cadc166138141fdb14379a54>
- <https://git.kernel.org/stable/c/93f3339b22ba17e66f0808737467b70ba087eaec>
- <https://git.kernel.org/stable/c/aaa0faa5c28a91c362352d6b35dc3ed10df56fb0>
- <https://git.kernel.org/stable/c/f59a9242942fef0de7b926e438ba4eae65d4b4dd>
- <https://git.kernel.org/stable/c/b399c1a3ea0b9d10047ff266d65533df7f15532f>
- <https://git.kernel.org/stable/c/83728cbf366e334301091d5b808add468ab46b27>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2021-46960>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2021-46960/>. Everything for agents: <https://agentprime.io/llms.txt>.
