# CVE-2022-49433: RDMA/hfi1: Prevent use of lock before it is initialized

> 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.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-908
- **Published:** 2025-02-26T02:12:50.553Z
- **Modified:** 2026-06-17T05:18:02.200Z

## Who should check

- Anyone running Linux \>= 7724105686e718ac476a6ad3304fea2fbcfcffde, \< 66090815a24ce14cf51ef5453fc0218fe8a39bc2; \>= 7724105686e718ac476a6ad3304fea2fbcfcffde, \< addb192000d8819c0b1553453994df9bb54c28db; \>= 7724105686e718ac476a6ad3304fea2fbcfcffde, \< fc0750e659db7b315bf6348902cc8ca3cdd4b8d8; \>= 7724105686e718ac476a6ad3304fea2fbcfcffde, \< ca55150bff5817af4f857a746ecab9862c23e12a; \>= 7724105686e718ac476a6ad3304fea2fbcfcffde, \< 30eb275e7ed588270ae159cc590a96658e0cfd8f; \>= 7724105686e718ac476a6ad3304fea2fbcfcffde, \< 288d198f50434f29b4a26a9de4394ae2305ad8af; \>= 7724105686e718ac476a6ad3304fea2fbcfcffde, \< 05c03dfd09c069c4ffd783b47b2da5dcc9421f2c
- Anyone running Linux 4.3

## Description

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

RDMA/hfi1: Prevent use of lock before it is initialized

If there is a failure during probe of hfi1 before the sdma\_map\_lock is
initialized, the call to hfi1\_free\_devdata() will attempt to use a lock
that has not been initialized. If the locking correctness validator is on
then an INFO message and stack trace resembling the following may be seen:

  INFO: trying to register non-static key.
  The code is fine but needs lockdep annotation, or maybe
  you didn't initialize this object before use?
  turning off the locking correctness validator.
  Call Trace:
  register\_lock\_class+0x11b/0x880
  \_\_lock\_acquire+0xf3/0x7930
  lock\_acquire+0xff/0x2d0
  \_raw\_spin\_lock\_irq+0x46/0x60
  sdma\_clean+0x42a/0x660 \[hfi1\]
  hfi1\_free\_devdata+0x3a7/0x420 \[hfi1\]
  init\_one+0x867/0x11a0 \[hfi1\]
  pci\_device\_probe+0x40e/0x8d0

The use of sdma\_map\_lock in sdma\_clean() is for freeing the sdma\_map
memory, and sdma\_map is not allocated/initialized until after
sdma\_map\_lock has been initialized. This code only needs to be run if
sdma\_map is not NULL, and so checking for that condition will avoid trying
to use the lock before it is initialized.

## Affected and fixed versions

- Linux: \>= 7724105686e718ac476a6ad3304fea2fbcfcffde, \< 66090815a24ce14cf51ef5453fc0218fe8a39bc2; \>= 7724105686e718ac476a6ad3304fea2fbcfcffde, \< addb192000d8819c0b1553453994df9bb54c28db; \>= 7724105686e718ac476a6ad3304fea2fbcfcffde, \< fc0750e659db7b315bf6348902cc8ca3cdd4b8d8; \>= 7724105686e718ac476a6ad3304fea2fbcfcffde, \< ca55150bff5817af4f857a746ecab9862c23e12a; \>= 7724105686e718ac476a6ad3304fea2fbcfcffde, \< 30eb275e7ed588270ae159cc590a96658e0cfd8f; \>= 7724105686e718ac476a6ad3304fea2fbcfcffde, \< 288d198f50434f29b4a26a9de4394ae2305ad8af; \>= 7724105686e718ac476a6ad3304fea2fbcfcffde, \< 05c03dfd09c069c4ffd783b47b2da5dcc9421f2c (cvelist)
- Linux: 4.3 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-49433.md
Affected: Linux >= 7724105686e718ac476a6ad3304fea2fbcfcffde, < 66090815a24ce14cf51ef5453fc0218fe8a39bc2; >= 7724105686e718ac476a6ad3304fea2fbcfcffde, < addb192000d8819c0b1553453994df9bb54c28db; >= 7724105686e718ac476a6ad3304fea2fbcfcffde, < fc0750e659db7b315bf6348902cc8ca3cdd4b8d8; >= 7724105686e718ac476a6ad…
Fixed in: Linux 66090815a24ce14cf51ef5453fc0218fe8a39bc2, Linux 30eb275e7ed588270ae159cc590a96658e0cfd8f, Linux 288d198f50434f29b4a26a9de4394ae2305ad8af, Linux 05c03dfd09c069c4ffd783b47b2da5dcc9421f2c

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

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

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

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

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

Linux \>= 7724105686e718ac476a6ad3304fea2fbcfcffde, \< 66090815a24ce14cf51ef5453fc0218fe8a39bc2; \>= 7724105686e718ac476a6ad3304fea2fbcfcffde, \< addb192000d8819c0b1553453994df9bb54c28db; \>= 7724105686e718ac476a6ad3304fea2fbcfcffde, \< fc0750e659db7b315bf6348902cc8ca3cdd4b8d8; \>= 7724105686e718ac476a6ad3304fea2fbcfcffde, \< ca55150bff5817af4f857a746ecab9862c23e12a; \>= 7724105686e718ac476a6ad3304fea2fbcfcffde, \< 30eb275e7ed588270ae159cc590a96658e0cfd8f; \>= 7724105686e718ac476a6ad3304fea2fbcfcffde, \< 288d198f50434f29b4a26a9de4394ae2305ad8af; \>= 7724105686e718ac476a6ad3304fea2fbcfcffde, \< 05c03dfd09c069c4ffd783b47b2da5dcc9421f2c; Linux 4.3.

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

Yes. Fixed in Linux 66090815a24ce14cf51ef5453fc0218fe8a39bc2, Linux 30eb275e7ed588270ae159cc590a96658e0cfd8f, Linux 288d198f50434f29b4a26a9de4394ae2305ad8af, Linux 05c03dfd09c069c4ffd783b47b2da5dcc9421f2c. Upgrade Linux to 05c03dfd09c069c4ffd783b47b2da5dcc9421f2c or later.

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

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/66090815a24ce14cf51ef5453fc0218fe8a39bc2>
- patch: <https://git.kernel.org/stable/c/addb192000d8819c0b1553453994df9bb54c28db>
- patch: <https://git.kernel.org/stable/c/fc0750e659db7b315bf6348902cc8ca3cdd4b8d8>
- patch: <https://git.kernel.org/stable/c/ca55150bff5817af4f857a746ecab9862c23e12a>
- patch: <https://git.kernel.org/stable/c/30eb275e7ed588270ae159cc590a96658e0cfd8f>
- patch: <https://git.kernel.org/stable/c/288d198f50434f29b4a26a9de4394ae2305ad8af>
- patch: <https://git.kernel.org/stable/c/05c03dfd09c069c4ffd783b47b2da5dcc9421f2c>

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

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