# CVE-2021-46983: nvmet-rdma: Fix NULL deref when SEND is completed with error

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.63% (percentile 45, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-02-28T08:13:12.223Z
- **Modified:** 2026-08-05T08:45:22.499Z

## Who should check

- Anyone running Linux \>= ca0f1a8055be2a04073af435dc68419334481638, \< 64f3410c7bfc389b1a58611d0799f4a36ce4b6b5; \>= ca0f1a8055be2a04073af435dc68419334481638, \< 17fb6dfa5162b89ecfa07df891a53afec321abe8; \>= ca0f1a8055be2a04073af435dc68419334481638, \< 5bdb34466ad8370546dfa0497594fb1d6f2fed90; \>= ca0f1a8055be2a04073af435dc68419334481638, \< 8cc365f9559b86802afc0208389f5c8d46b4ad61
- Anyone running Linux 5.9

## Description

In the Linux kernel, the following vulnerability has been resolved:

nvmet-rdma: Fix NULL deref when SEND is completed with error

When running some traffic and taking down the link on peer, a
retry counter exceeded error is received. This leads to
nvmet\_rdma\_error\_comp which tried accessing the cq\_context to
obtain the queue. The cq\_context is no longer valid after the
fix to use shared CQ mechanism and should be obtained similar
to how it is obtained in other functions from the wc-\>qp.

\[ 905.786331\] nvmet\_rdma: SEND for CQE 0x00000000e3337f90 failed with status transport retry counter exceeded (12).
\[ 905.832048\] BUG: unable to handle kernel NULL pointer dereference at 0000000000000048
\[ 905.839919\] PGD 0 P4D 0
\[ 905.842464\] Oops: 0000 1 SMP NOPTI
\[ 905.846144\] CPU: 13 PID: 1557 Comm: kworker/13:1H Kdump: loaded Tainted: G OE --------- - - 4.18.0-304.el8.x86\_64 \#1
\[ 905.872135\] RIP: 0010:nvmet\_rdma\_error\_comp+0x5/0x1b \[nvmet\_rdma\]
\[ 905.878259\] Code: 19 4f c0 e8 89 b3 a5 f6 e9 5b e0 ff ff 0f b7 75 14 4c 89 ea 48 c7 c7 08 1a 4f c0 e8 71 b3 a5 f6 e9 4b e0 ff ff 0f 1f 44 00 00 \<48\> 8b 47 48 48 85 c0 74 08 48 89 c7 e9 98 bf 49 00 e9 c3 e3 ff ff
\[ 905.897135\] RSP: 0018:ffffab601c45fe28 EFLAGS: 00010246
\[ 905.902387\] RAX: 0000000000000065 RBX: ffff9e729ea2f800 RCX: 0000000000000000
\[ 905.909558\] RDX: 0000000000000000 RSI: ffff9e72df9567c8 RDI: 0000000000000000
\[ 905.916731\] RBP: ffff9e729ea2b400 R08: 000000000000074d R09: 0000000000000074
\[ 905.923903\] R10: 0000000000000000 R11: ffffab601c45fcc0 R12: 0000000000000010
\[ 905.931074\] R13: 0000000000000000 R14: 0000000000000010 R15: ffff9e729ea2f400
\[ 905.938247\] FS: 0000000000000000(0000) GS:ffff9e72df940000(0000) knlGS:0000000000000000
\[ 905.938249\] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[ 905.950067\] nvmet\_rdma: SEND for CQE 0x00000000c7356cca failed with status transport retry counter exceeded (12).
\[ 905.961855\] CR2: 0000000000000048 CR3: 000000678d010004 CR4: 00000000007706e0
\[ 905.961855\] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
\[ 905.961856\] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
\[ 905.961857\] PKRU: 55555554
\[ 906.010315\] Call Trace:
\[ 906.012778\] \_\_ib\_process\_cq+0x89/0x170 \[ib\_core\]
\[ 906.017509\] ib\_cq\_poll\_work+0x26/0x80 \[ib\_core\]
\[ 906.022152\] process\_one\_work+0x1a7/0x360
\[ 906.026182\] ? create\_worker+0x1a0/0x1a0
\[ 906.030123\] worker\_thread+0x30/0x390
\[ 906.033802\] ? create\_worker+0x1a0/0x1a0
\[ 906.037744\] kthread+0x116/0x130
\[ 906.040988\] ? kthread\_flush\_work\_fn+0x10/0x10
\[ 906.045456\] ret\_from\_fork+0x1f/0x40

## Affected and fixed versions

- Linux: \>= ca0f1a8055be2a04073af435dc68419334481638, \< 64f3410c7bfc389b1a58611d0799f4a36ce4b6b5; \>= ca0f1a8055be2a04073af435dc68419334481638, \< 17fb6dfa5162b89ecfa07df891a53afec321abe8; \>= ca0f1a8055be2a04073af435dc68419334481638, \< 5bdb34466ad8370546dfa0497594fb1d6f2fed90; \>= ca0f1a8055be2a04073af435dc68419334481638, \< 8cc365f9559b86802afc0208389f5c8d46b4ad61 (cvelist)
- Linux: 5.9 (cvelist)

## Mitigation

- Upgrade Linux to 8cc365f9559b86802afc0208389f5c8d46b4ad61 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-46983. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-46983.md
Affected: Linux >= ca0f1a8055be2a04073af435dc68419334481638, < 64f3410c7bfc389b1a58611d0799f4a36ce4b6b5; >= ca0f1a8055be2a04073af435dc68419334481638, < 17fb6dfa5162b89ecfa07df891a53afec321abe8; >= ca0f1a8055be2a04073af435dc68419334481638, < 5bdb34466ad8370546dfa0497594fb1d6f2fed90; >= ca0f1a8055be2a04073af43…
Fixed in: Linux 64f3410c7bfc389b1a58611d0799f4a36ce4b6b5, Linux 17fb6dfa5162b89ecfa07df891a53afec321abe8, Linux 5bdb34466ad8370546dfa0497594fb1d6f2fed90, Linux 8cc365f9559b86802afc0208389f5c8d46b4ad61

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-46983 being exploited?

There is no confirmed exploitation: CVE-2021-46983 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.63% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-46983?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2021-46983?

Linux \>= ca0f1a8055be2a04073af435dc68419334481638, \< 64f3410c7bfc389b1a58611d0799f4a36ce4b6b5; \>= ca0f1a8055be2a04073af435dc68419334481638, \< 17fb6dfa5162b89ecfa07df891a53afec321abe8; \>= ca0f1a8055be2a04073af435dc68419334481638, \< 5bdb34466ad8370546dfa0497594fb1d6f2fed90; \>= ca0f1a8055be2a04073af435dc68419334481638, \< 8cc365f9559b86802afc0208389f5c8d46b4ad61; Linux 5.9.

### Is there a fix for CVE-2021-46983?

Yes. Fixed in Linux 64f3410c7bfc389b1a58611d0799f4a36ce4b6b5, Linux 17fb6dfa5162b89ecfa07df891a53afec321abe8, Linux 5bdb34466ad8370546dfa0497594fb1d6f2fed90, Linux 8cc365f9559b86802afc0208389f5c8d46b4ad61. Upgrade Linux to 8cc365f9559b86802afc0208389f5c8d46b4ad61 or later.

### How do I check if I'm affected by CVE-2021-46983?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/64f3410c7bfc389b1a58611d0799f4a36ce4b6b5>
- patch: <https://git.kernel.org/stable/c/17fb6dfa5162b89ecfa07df891a53afec321abe8>
- patch: <https://git.kernel.org/stable/c/5bdb34466ad8370546dfa0497594fb1d6f2fed90>
- patch: <https://git.kernel.org/stable/c/8cc365f9559b86802afc0208389f5c8d46b4ad61>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-46983>

HTML: <https://flawdb.com/CVE-2021-46983> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-46983>
