# CVE-2022-50475: RDMA/core: Make sure "ib\_port" is valid when access sysfs node

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; 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:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-10-04T15:16:36.235Z
- **Modified:** 2026-11-05T21:17:00.643Z

## Who should check

- Anyone running Linux \>= d8a5883814b9f7c08d7ff291070687d925b4f859, \< f981c697b2f9bd5dd2f060e47ff8b5e0a2cd0c06; \>= d8a5883814b9f7c08d7ff291070687d925b4f859, \< ac7a7d7079124f46180714b2d41a1703d37101bb; \>= d8a5883814b9f7c08d7ff291070687d925b4f859, \< cd06d32a71fbb198b2d43dddf794badd80ffd25d; \>= d8a5883814b9f7c08d7ff291070687d925b4f859, \< 5e15ff29b156bbbdeadae230c8ecd5ecd8ca2477
- Anyone running Linux 5.14

## Description

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

RDMA/core: Make sure "ib\_port" is valid when access sysfs node

The "ib\_port" structure must be set before adding the sysfs kobject,
and reset after removing it, otherwise it may crash when accessing
the sysfs node:
  Unable to handle kernel NULL pointer dereference at virtual address 0000000000000050
  Mem abort info:
    ESR = 0x96000006
    Exception class = DABT (current EL), IL = 32 bits
    SET = 0, FnV = 0
    EA = 0, S1PTW = 0
  Data abort info:
    ISV = 0, ISS = 0x00000006
    CM = 0, WnR = 0
  user pgtable: 4k pages, 48-bit VAs, pgdp = 00000000e85f5ba5
  \[0000000000000050\] pgd=0000000848fd9003, pud=000000085b387003, pmd=0000000000000000
  Internal error: Oops: 96000006 \[\#2\] PREEMPT SMP
  Modules linked in: ib\_umad(O) mlx5\_ib(O) nfnetlink\_cttimeout(E) nfnetlink(E) act\_gact(E) cls\_flower(E) sch\_ingress(E) openvswitch(E) nsh(E) nf\_nat\_ipv6(E) nf\_nat\_ipv4(E) nf\_conncount(E) nf\_nat(E) nf\_conntrack(E) nf\_defrag\_ipv6(E) nf\_defrag\_ipv4(E) mst\_pciconf(O) ipmi\_devintf(E) ipmi\_msghandler(E) ipmb\_dev\_int(OE) mlx5\_core(O) mlxfw(O) mlxdevm(O) auxiliary(O) ib\_uverbs(O) ib\_core(O) mlx\_compat(O) psample(E) sbsa\_gwdt(E) uio\_pdrv\_genirq(E) uio(E) mlxbf\_pmc(OE) mlxbf\_gige(OE) mlxbf\_tmfifo(OE) gpio\_mlxbf2(OE) pwr\_mlxbf(OE) mlx\_trio(OE) i2c\_mlxbf(OE) mlx\_bootctl(OE) bluefield\_edac(OE) knem(O) ip\_tables(E) ipv6(E) crc\_ccitt(E) \[last unloaded: mst\_pci\]
  Process grep (pid: 3372, stack limit = 0x0000000022055c92)
  CPU: 5 PID: 3372 Comm: grep Tainted: G      D    OE     4.19.161-mlnx.47.gadcd9e3 \#1
  Hardware name: https://www.mellanox.com BlueField SoC/BlueField SoC, BIOS BlueField:3.9.2-15-ga2403ab Sep  8 2022
  pstate: 40000005 (nZcv daif -PAN -UAO)
  pc : hw\_stat\_port\_show+0x4c/0x80 \[ib\_core\]
  lr : port\_attr\_show+0x40/0x58 \[ib\_core\]
  sp : ffff000029f43b50
  x29: ffff000029f43b50 x28: 0000000019375000
  x27: ffff8007b821a540 x26: ffff000029f43e30
  x25: 0000000000008000 x24: ffff000000eaa958
  x23: 0000000000001000 x22: ffff8007a4ce3000
  x21: ffff8007baff8000 x20: ffff8007b9066ac0
  x19: ffff8007bae97578 x18: 0000000000000000
  x17: 0000000000000000 x16: 0000000000000000
  x15: 0000000000000000 x14: 0000000000000000
  x13: 0000000000000000 x12: 0000000000000000
  x11: 0000000000000000 x10: 0000000000000000
  x9 : 0000000000000000 x8 : ffff8007a4ce4000
  x7 : 0000000000000000 x6 : 000000000000003f
  x5 : ffff000000e6a280 x4 : ffff8007a4ce3000
  x3 : 0000000000000000 x2 : aaaaaaaaaaaaaaab
  x1 : ffff8007b9066a10 x0 : ffff8007baff8000
  Call trace:
   hw\_stat\_port\_show+0x4c/0x80 \[ib\_core\]
   port\_attr\_show+0x40/0x58 \[ib\_core\]
   sysfs\_kf\_seq\_show+0x8c/0x150
   kernfs\_seq\_show+0x44/0x50
   seq\_read+0x1b4/0x45c
   kernfs\_fop\_read+0x148/0x1d8
   \_\_vfs\_read+0x58/0x180
   vfs\_read+0x94/0x154
   ksys\_read+0x68/0xd8
   \_\_arm64\_sys\_read+0x28/0x34
   el0\_svc\_common+0x88/0x18c
   el0\_svc\_handler+0x78/0x94
   el0\_svc+0x8/0xe8
  Code: f2955562 aa1603e4 aa1503e0 f9405683 (f9402861)

## Affected and fixed versions

- Linux: \>= d8a5883814b9f7c08d7ff291070687d925b4f859, \< f981c697b2f9bd5dd2f060e47ff8b5e0a2cd0c06; \>= d8a5883814b9f7c08d7ff291070687d925b4f859, \< ac7a7d7079124f46180714b2d41a1703d37101bb; \>= d8a5883814b9f7c08d7ff291070687d925b4f859, \< cd06d32a71fbb198b2d43dddf794badd80ffd25d; \>= d8a5883814b9f7c08d7ff291070687d925b4f859, \< 5e15ff29b156bbbdeadae230c8ecd5ecd8ca2477 (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- Upgrade Linux to 5e15ff29b156bbbdeadae230c8ecd5ecd8ca2477 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-50475.md
Affected: Linux >= d8a5883814b9f7c08d7ff291070687d925b4f859, < f981c697b2f9bd5dd2f060e47ff8b5e0a2cd0c06; >= d8a5883814b9f7c08d7ff291070687d925b4f859, < ac7a7d7079124f46180714b2d41a1703d37101bb; >= d8a5883814b9f7c08d7ff291070687d925b4f859, < cd06d32a71fbb198b2d43dddf794badd80ffd25d; >= d8a5883814b9f7c08d7ff29…
Fixed in: Linux 5e15ff29b156bbbdeadae230c8ecd5ecd8ca2477

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-50475 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= d8a5883814b9f7c08d7ff291070687d925b4f859, \< f981c697b2f9bd5dd2f060e47ff8b5e0a2cd0c06; \>= d8a5883814b9f7c08d7ff291070687d925b4f859, \< ac7a7d7079124f46180714b2d41a1703d37101bb; \>= d8a5883814b9f7c08d7ff291070687d925b4f859, \< cd06d32a71fbb198b2d43dddf794badd80ffd25d; \>= d8a5883814b9f7c08d7ff291070687d925b4f859, \< 5e15ff29b156bbbdeadae230c8ecd5ecd8ca2477; Linux 5.14.

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

Yes. Fixed in Linux 5e15ff29b156bbbdeadae230c8ecd5ecd8ca2477. Upgrade Linux to 5e15ff29b156bbbdeadae230c8ecd5ecd8ca2477 or later.

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

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/f981c697b2f9bd5dd2f060e47ff8b5e0a2cd0c06>
- patch: <https://git.kernel.org/stable/c/ac7a7d7079124f46180714b2d41a1703d37101bb>
- patch: <https://git.kernel.org/stable/c/cd06d32a71fbb198b2d43dddf794badd80ffd25d>
- patch: <https://git.kernel.org/stable/c/5e15ff29b156bbbdeadae230c8ecd5ecd8ca2477>

## 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-50475>

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