CVE-2022-49429 RDMA/hfi1: Prevent panic when SDMA is disabled
A local attacker can cause a kernel panic by triggering a null pointer dereference in the hfi1 driver when SDMA is disabled.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-49429?
CVE-2022-49429 is a medium-severity vulnerability in Linux kernel, published on 26 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-476
Which versions are affected by CVE-2022-49429?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-49429?
Apply the vendor's patch.
Is CVE-2022-49429 being exploited?
There is no known exploitation of CVE-2022-49429 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-49429, GHSA-92v5-xm5j-8rc5, UBUNTU-CVE-2022-49429.