# CVE-2022-50885: RDMA/rxe: Fix NULL-ptr-deref in rxe\_qp\_do\_cleanup() when socket create failed

> 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.89% (percentile 57, 2026-11-26)
- **Published:** 2025-12-30T12:34:12.093Z
- **Modified:** 2026-10-15T22:17:34.790Z

## Who should check

- Anyone running Linux \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< ee24de095569935eba600f7735e8e8ddea5b418e; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 7340ca9f782be6fbe3f64a134dc112772764f766; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< bd7106a6004f1077a365ca7f5a99c7a708e20714; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 6bb5a62bfd624039b05157745c234068508393a9; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< f64f08b9e6fb305a25dd75329e06ae342b9ce336; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 5b924632d84a60bc0c7fe6e9bbbce99d03908957; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 821f9a18210f6b9fd6792471714c799607b25db4; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< f67376d801499f4fa0838c18c1efcad8840e550d
- Anyone running Linux 4.8

## Description

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

RDMA/rxe: Fix NULL-ptr-deref in rxe\_qp\_do\_cleanup() when socket create failed

There is a null-ptr-deref when mount.cifs over rdma:

  BUG: KASAN: null-ptr-deref in rxe\_qp\_do\_cleanup+0x2f3/0x360 \[rdma\_rxe\]
  Read of size 8 at addr 0000000000000018 by task mount.cifs/3046

  CPU: 2 PID: 3046 Comm: mount.cifs Not tainted 6.1.0-rc5+ \#62
  Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-1.fc3
  Call Trace:
   \<TASK\>
   dump\_stack\_lvl+0x34/0x44
   kasan\_report+0xad/0x130
   rxe\_qp\_do\_cleanup+0x2f3/0x360 \[rdma\_rxe\]
   execute\_in\_process\_context+0x25/0x90
   \_\_rxe\_cleanup+0x101/0x1d0 \[rdma\_rxe\]
   rxe\_create\_qp+0x16a/0x180 \[rdma\_rxe\]
   create\_qp.part.0+0x27d/0x340
   ib\_create\_qp\_kernel+0x73/0x160
   rdma\_create\_qp+0x100/0x230
   \_smbd\_get\_connection+0x752/0x20f0
   smbd\_get\_connection+0x21/0x40
   cifs\_get\_tcp\_session+0x8ef/0xda0
   mount\_get\_conns+0x60/0x750
   cifs\_mount+0x103/0xd00
   cifs\_smb3\_do\_mount+0x1dd/0xcb0
   smb3\_get\_tree+0x1d5/0x300
   vfs\_get\_tree+0x41/0xf0
   path\_mount+0x9b3/0xdd0
   \_\_x64\_sys\_mount+0x190/0x1d0
   do\_syscall\_64+0x35/0x80
   entry\_SYSCALL\_64\_after\_hwframe+0x46/0xb0

The root cause of the issue is the socket create failed in
rxe\_qp\_init\_req().

So move the reset rxe\_qp\_do\_cleanup() after the NULL ptr check.

## Affected and fixed versions

- Linux: \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< ee24de095569935eba600f7735e8e8ddea5b418e; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 7340ca9f782be6fbe3f64a134dc112772764f766; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< bd7106a6004f1077a365ca7f5a99c7a708e20714; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 6bb5a62bfd624039b05157745c234068508393a9; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< f64f08b9e6fb305a25dd75329e06ae342b9ce336; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 5b924632d84a60bc0c7fe6e9bbbce99d03908957; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 821f9a18210f6b9fd6792471714c799607b25db4; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< f67376d801499f4fa0838c18c1efcad8840e550d (cvelist)
- Linux: 4.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-50885.md
Affected: Linux >= 8700e3e7c4857d28ebaa824509934556da0b3e76, < ee24de095569935eba600f7735e8e8ddea5b418e; >= 8700e3e7c4857d28ebaa824509934556da0b3e76, < 7340ca9f782be6fbe3f64a134dc112772764f766; >= 8700e3e7c4857d28ebaa824509934556da0b3e76, < bd7106a6004f1077a365ca7f5a99c7a708e20714; >= 8700e3e7c4857d28ebaa824…
Fixed in: Linux 7340ca9f782be6fbe3f64a134dc112772764f766, Linux 6bb5a62bfd624039b05157745c234068508393a9, Linux 5b924632d84a60bc0c7fe6e9bbbce99d03908957, Linux 821f9a18210f6b9fd6792471714c799607b25db4

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-2022-50885 being exploited?

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

### How serious is CVE-2022-50885?

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

### Which versions are affected by CVE-2022-50885?

Linux \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< ee24de095569935eba600f7735e8e8ddea5b418e; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 7340ca9f782be6fbe3f64a134dc112772764f766; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< bd7106a6004f1077a365ca7f5a99c7a708e20714; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 6bb5a62bfd624039b05157745c234068508393a9; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< f64f08b9e6fb305a25dd75329e06ae342b9ce336; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 5b924632d84a60bc0c7fe6e9bbbce99d03908957; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 821f9a18210f6b9fd6792471714c799607b25db4; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< f67376d801499f4fa0838c18c1efcad8840e550d; Linux 4.8.

### Is there a fix for CVE-2022-50885?

Yes. Fixed in Linux 7340ca9f782be6fbe3f64a134dc112772764f766, Linux 6bb5a62bfd624039b05157745c234068508393a9, Linux 5b924632d84a60bc0c7fe6e9bbbce99d03908957, Linux 821f9a18210f6b9fd6792471714c799607b25db4. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50885?

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

- other: <https://git.kernel.org/stable/c/ee24de095569935eba600f7735e8e8ddea5b418e>
- other: <https://git.kernel.org/stable/c/7340ca9f782be6fbe3f64a134dc112772764f766>
- other: <https://git.kernel.org/stable/c/bd7106a6004f1077a365ca7f5a99c7a708e20714>
- other: <https://git.kernel.org/stable/c/6bb5a62bfd624039b05157745c234068508393a9>
- other: <https://git.kernel.org/stable/c/f64f08b9e6fb305a25dd75329e06ae342b9ce336>
- other: <https://git.kernel.org/stable/c/5b924632d84a60bc0c7fe6e9bbbce99d03908957>
- other: <https://git.kernel.org/stable/c/821f9a18210f6b9fd6792471714c799607b25db4>
- other: <https://git.kernel.org/stable/c/f67376d801499f4fa0838c18c1efcad8840e550d>

## 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-2022-50885>

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