CVE-2022-49429

RDMA/hfi1: Prevent panic when SDMA is disabled

MEDIUM
5.5
CVSS Score
Published: February 26, 2025 at 02:12 AM UTC
Updated: June 17, 2026 at 05:18 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.14.2834.15 ≤ v < 4.19.2474.20 ≤ v < 5.4.1984.9 ≤ v < 4.14.2834.9 ≤ v < 4.19.2474.9 ≤ v < 5.10.1214.9 ≤ v < 5.15.464.9 ≤ v < 5.17.144.9 ≤ v < 5.18.34.9 ≤ v < 5.194.9 ≤ v < 5.4.1985.11 ≤ v < 5.15.465.16 ≤ v < 5.17.145.18 ≤ v < 5.18.35.5 ≤ v < 5.10.1210cb2aa690c7ef14ad1f544288349abb5434bb75d4.9
Vendor states this is fixed in 0e4dda8b3f4c07ee9ea670a10ea3171a5e63a86f (fixed)
Vendor states this is fixed in 22e7e400fd1a890db2ea13686324aff50e972f4f (fixed)
Vendor states this is fixed in 29952ab85d6c3fe0b7909d9a737f10c58bf6824d (fixed)
Vendor states this is fixed in 32e6aea33944f364d51cd263e4cd236393a188b6 (fixed)
Vendor states this is fixed in 33794e8e9bcb4affc0ebff9cdec85acc8b8a1762 (fixed)
Vendor states this is fixed in 629e052d0c98e46dde9f0824f0aa437f678d9b8f (fixed)
Vendor states this is fixed in cc80d3c37cec9d6ddb140483647901bc7cc6c31d (fixed)
Vendor states this is fixed in e60ad83f645ee6fadd5a8057ba267aeec54f08fe (fixed)
Vendor states this is fixed in 4.14.283 (unaffected)
Vendor states this is fixed in 4.19.247 (unaffected)
Vendor states this is fixed in 4.9 (unaffected)
Vendor states this is fixed in 5.10.121 (unaffected)
Vendor states this is fixed in 5.15.46 (unaffected)
Vendor states this is fixed in 5.17.14 (unaffected)
Vendor states this is fixed in 5.18.3 (unaffected)
Vendor states this is fixed in 5.19 (unaffected)
Vendor states this is fixed in 5.4.198 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0e4dda8b3f4c07ee9ea670a10ea3171a5e63a86f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/22e7e400fd1a890db2ea13686324aff50e972f4f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/29952ab85d6c3fe0b7909d9a737f10c58bf6824d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/32e6aea33944f364d51cd263e4cd236393a188b6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/33794e8e9bcb4affc0ebff9cdec85acc8b8a1762
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/629e052d0c98e46dde9f0824f0aa437f678d9b8f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/cc80d3c37cec9d6ddb140483647901bc7cc6c31d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e60ad83f645ee6fadd5a8057ba267aeec54f08fe

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card