# CVE-2022-48728: IB/hfi1: Fix AIP early init panic

> 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.30% (percentile 16, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-06-20T11:13:17.378Z
- **Modified:** 2026-06-17T05:16:01.990Z

## Who should check

- Anyone running Linux \>= d99dc602e2a55a99940ba9506a7126dfa54d54ea, \< 4a9bd1e6780fc59f81466ec3489d5ad535a37190; \>= d99dc602e2a55a99940ba9506a7126dfa54d54ea, \< a3dd4d2682f2a796121609e5f3bbeb1243198c53; \>= d99dc602e2a55a99940ba9506a7126dfa54d54ea, \< 1899c3cad265c4583658aed5293d02e8af84276b; \>= d99dc602e2a55a99940ba9506a7126dfa54d54ea, \< 5f8f55b92edd621f056bdf09e572092849fabd83
- Anyone running Linux 5.8

## Description

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

IB/hfi1: Fix AIP early init panic

An early failure in hfi1\_ipoib\_setup\_rn() can lead to the following panic:

  BUG: unable to handle kernel NULL pointer dereference at 00000000000001b0
  PGD 0 P4D 0
  Oops: 0002 \[\#1\] SMP NOPTI
  Workqueue: events work\_for\_cpu\_fn
  RIP: 0010:try\_to\_grab\_pending+0x2b/0x140
  Code: 1f 44 00 00 41 55 41 54 55 48 89 d5 53 48 89 fb 9c 58 0f 1f 44 00 00 48 89 c2 fa 66 0f 1f 44 00 00 48 89 55 00 40 84 f6 75 77 \<f0\> 48 0f ba 2b 00 72 09 31 c0 5b 5d 41 5c 41 5d c3 48 89 df e8 6c
  RSP: 0018:ffffb6b3cf7cfa48 EFLAGS: 00010046
  RAX: 0000000000000246 RBX: 00000000000001b0 RCX: 0000000000000000
  RDX: 0000000000000246 RSI: 0000000000000000 RDI: 00000000000001b0
  RBP: ffffb6b3cf7cfa70 R08: 0000000000000f09 R09: 0000000000000001
  R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
  R13: ffffb6b3cf7cfa90 R14: ffffffff9b2fbfc0 R15: ffff8a4fdf244690
  FS:  0000000000000000(0000) GS:ffff8a527f400000(0000) knlGS:0000000000000000
  CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  CR2: 00000000000001b0 CR3: 00000017e2410003 CR4: 00000000007706f0
  DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
  DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
  PKRU: 55555554
  Call Trace:
   \_\_cancel\_work\_timer+0x42/0x190
   ? dev\_printk\_emit+0x4e/0x70
   iowait\_cancel\_work+0x15/0x30 \[hfi1\]
   hfi1\_ipoib\_txreq\_deinit+0x5a/0x220 \[hfi1\]
   ? dev\_err+0x6c/0x90
   hfi1\_ipoib\_netdev\_dtor+0x15/0x30 \[hfi1\]
   hfi1\_ipoib\_setup\_rn+0x10e/0x150 \[hfi1\]
   rdma\_init\_netdev+0x5a/0x80 \[ib\_core\]
   ? hfi1\_ipoib\_free\_rdma\_netdev+0x20/0x20 \[hfi1\]
   ipoib\_intf\_init+0x6c/0x350 \[ib\_ipoib\]
   ipoib\_intf\_alloc+0x5c/0xc0 \[ib\_ipoib\]
   ipoib\_add\_one+0xbe/0x300 \[ib\_ipoib\]
   add\_client\_context+0x12c/0x1a0 \[ib\_core\]
   enable\_device\_and\_get+0xdc/0x1d0 \[ib\_core\]
   ib\_register\_device+0x572/0x6b0 \[ib\_core\]
   rvt\_register\_device+0x11b/0x220 \[rdmavt\]
   hfi1\_register\_ib\_device+0x6b4/0x770 \[hfi1\]
   do\_init\_one.isra.20+0x3e3/0x680 \[hfi1\]
   local\_pci\_probe+0x41/0x90
   work\_for\_cpu\_fn+0x16/0x20
   process\_one\_work+0x1a7/0x360
   ? create\_worker+0x1a0/0x1a0
   worker\_thread+0x1cf/0x390
   ? create\_worker+0x1a0/0x1a0
   kthread+0x116/0x130
   ? kthread\_flush\_work\_fn+0x10/0x10
   ret\_from\_fork+0x1f/0x40

The panic happens in hfi1\_ipoib\_txreq\_deinit() because there is a NULL
deref when hfi1\_ipoib\_netdev\_dtor() is called in this error case.

hfi1\_ipoib\_txreq\_init() and hfi1\_ipoib\_rxq\_init() are self unwinding so
fix by adjusting the error paths accordingly.

Other changes:
- hfi1\_ipoib\_free\_rdma\_netdev() is deleted including the free\_netdev()
  since the netdev core code deletes calls free\_netdev()
- The switch to the accelerated entrances is moved to the success path.

## Affected and fixed versions

- Linux: \>= d99dc602e2a55a99940ba9506a7126dfa54d54ea, \< 4a9bd1e6780fc59f81466ec3489d5ad535a37190; \>= d99dc602e2a55a99940ba9506a7126dfa54d54ea, \< a3dd4d2682f2a796121609e5f3bbeb1243198c53; \>= d99dc602e2a55a99940ba9506a7126dfa54d54ea, \< 1899c3cad265c4583658aed5293d02e8af84276b; \>= d99dc602e2a55a99940ba9506a7126dfa54d54ea, \< 5f8f55b92edd621f056bdf09e572092849fabd83 (cvelist)
- Linux: 5.8 (cvelist)

## Mitigation

- Upgrade Linux to 5f8f55b92edd621f056bdf09e572092849fabd83 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-48728. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-48728.md
Affected: Linux >= d99dc602e2a55a99940ba9506a7126dfa54d54ea, < 4a9bd1e6780fc59f81466ec3489d5ad535a37190; >= d99dc602e2a55a99940ba9506a7126dfa54d54ea, < a3dd4d2682f2a796121609e5f3bbeb1243198c53; >= d99dc602e2a55a99940ba9506a7126dfa54d54ea, < 1899c3cad265c4583658aed5293d02e8af84276b; >= d99dc602e2a55a99940ba95…
Fixed in: Linux 4a9bd1e6780fc59f81466ec3489d5ad535a37190, Linux 1899c3cad265c4583658aed5293d02e8af84276b, Linux 5f8f55b92edd621f056bdf09e572092849fabd83

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

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

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

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

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

Linux \>= d99dc602e2a55a99940ba9506a7126dfa54d54ea, \< 4a9bd1e6780fc59f81466ec3489d5ad535a37190; \>= d99dc602e2a55a99940ba9506a7126dfa54d54ea, \< a3dd4d2682f2a796121609e5f3bbeb1243198c53; \>= d99dc602e2a55a99940ba9506a7126dfa54d54ea, \< 1899c3cad265c4583658aed5293d02e8af84276b; \>= d99dc602e2a55a99940ba9506a7126dfa54d54ea, \< 5f8f55b92edd621f056bdf09e572092849fabd83; Linux 5.8.

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

Yes. Fixed in Linux 4a9bd1e6780fc59f81466ec3489d5ad535a37190, Linux 1899c3cad265c4583658aed5293d02e8af84276b, Linux 5f8f55b92edd621f056bdf09e572092849fabd83. Upgrade Linux to 5f8f55b92edd621f056bdf09e572092849fabd83 or later.

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

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/4a9bd1e6780fc59f81466ec3489d5ad535a37190>
- patch: <https://git.kernel.org/stable/c/a3dd4d2682f2a796121609e5f3bbeb1243198c53>
- patch: <https://git.kernel.org/stable/c/1899c3cad265c4583658aed5293d02e8af84276b>
- patch: <https://git.kernel.org/stable/c/5f8f55b92edd621f056bdf09e572092849fabd83>

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

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