# CVE-2022-49429: RDMA/hfi1: Prevent panic when SDMA is disabled

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-02)
- Published: 2025-02-26T02:12:48.646Z
- Modified: 2026-06-17T05:18:01.600Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

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

RDMA/hfi1: Prevent panic when SDMA is disabled

If the hfi1 module is loaded with HFI1_CAP_SDMA off, a call to
hfi1_write_iter() will dereference a NULL pointer and panic. A typical
stack frame is:

  sdma_select_user_engine [hfi1]
  hfi1_user_sdma_process_request [hfi1]
  hfi1_write_iter [hfi1]
  do_iter_readv_writev
  do_iter_write
  vfs_writev
  do_writev
  do_syscall_64

The fix is to test for SDMA in hfi1_write_iter() and fail the I/O with
EINVAL.

(As written by CVE List.)

## Affected

- Linux Linux: from 0cb2aa690c7ef14ad1f544288349abb5434bb75d before 33794e8e9bcb4affc0ebff9cdec85acc8b8a1762; from 0cb2aa690c7ef14ad1f544288349abb5434bb75d before 0e4dda8b3f4c07ee9ea670a10ea3171a5e63a86f; from 0cb2aa690c7ef14ad1f544288349abb5434bb75d before e60ad83f645ee6fadd5a8057ba267aeec54f08fe; from 0cb2aa690c7ef14ad1f544288349abb5434bb75d before cc80d3c37cec9d6ddb140483647901bc7cc6c31d; from 0cb2aa690c7ef14ad1f544288349abb5434bb75d before 32e6aea33944f364d51cd263e4cd236393a188b6; from 0cb2aa690c7ef14ad1f544288349abb5434bb75d before 29952ab85d6c3fe0b7909d9a737f10c58bf6824d; from 0cb2aa690c7ef14ad1f544288349abb5434bb75d before 22e7e400fd1a890db2ea13686324aff50e972f4f; from 0cb2aa690c7ef14ad1f544288349abb5434bb75d before 629e052d0c98e46dde9f0824f0aa437f678d9b8f; 4.9 (not affected: before 4.9; from 4.14.283 up to 4.14.*; from 4.19.247 up to 4.19.*; from 5.4.198 up to 5.4.*; from 5.10.121 up to 5.10.*; from 5.15.46 up to 5.15.*; from 5.17.14 up to 5.17.*; from 5.18.3 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: before 4.14.283; from 4.15 before 4.19.247; from 4.20 before 5.4.198; from 5.5 before 5.10.121; from 5.11 before 5.15.46; from 5.16 before 5.17.14; from 5.18 before 5.18.3

## References

- <https://git.kernel.org/stable/c/33794e8e9bcb4affc0ebff9cdec85acc8b8a1762> (patch)
- <https://git.kernel.org/stable/c/0e4dda8b3f4c07ee9ea670a10ea3171a5e63a86f> (patch)
- <https://git.kernel.org/stable/c/e60ad83f645ee6fadd5a8057ba267aeec54f08fe> (patch)
- <https://git.kernel.org/stable/c/cc80d3c37cec9d6ddb140483647901bc7cc6c31d> (patch)
- <https://git.kernel.org/stable/c/32e6aea33944f364d51cd263e4cd236393a188b6> (patch)
- <https://git.kernel.org/stable/c/29952ab85d6c3fe0b7909d9a737f10c58bf6824d> (patch)
- <https://git.kernel.org/stable/c/22e7e400fd1a890db2ea13686324aff50e972f4f> (patch)
- <https://git.kernel.org/stable/c/629e052d0c98e46dde9f0824f0aa437f678d9b8f> (patch)

## Sources

- CVE List: [CVE-2022-49429](https://www.cve.org/CVERecord?id=CVE-2022-49429), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49429](https://nvd.nist.gov/vuln/detail/CVE-2022-49429), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49429 · Whole record: https://cve.day/CVE-2022-49429.json · Rebuilt by cve.day 2026-11-25T22:58:20.523Z
