CVE-2022-49931

Source
https://cve.org/CVERecord?id=CVE-2022-49931
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49931.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49931
Downstream
Related
Published
2025-05-01T14:11:08.135Z
Modified
2026-04-03T13:14:19.486240313Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
IB/hfi1: Correctly move list in sc_disable()
Details

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

IB/hfi1: Correctly move list in sc_disable()

Commit 13bac861952a ("IB/hfi1: Fix abba locking issue with sc_disable()") incorrectly tries to move a list from one list head to another. The result is a kernel crash.

The crash is triggered when a link goes down and there are waiters for a send to complete. The following signature is seen:

BUG: kernel NULL pointer dereference, address: 0000000000000030 [...] Call Trace: scdisable+0x1ba/0x240 [hfi1] piofreeze+0x3d/0x60 [hfi1] handlefreeze+0x27/0x1b0 [hfi1] processonework+0x1b0/0x380 ? processonework+0x380/0x380 workerthread+0x30/0x360 ? processonework+0x380/0x380 kthread+0xd7/0x100 ? kthreadcompleteandexit+0x20/0x20 retfrom_fork+0x1f/0x30

The fix is to use the correct call to move the list.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49931.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d997d4e4365f7e59cf6b59c70f966c56d704b64f
Fixed
25760a41e3802f54aadcc31385543665ab349b8e
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d98883f6c33e0d960afedcecaa92fc2b61fec383
Fixed
7c4260f8f188df32414a5ecad63e8b934c2aa3f0
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
13bac861952a78664907a0f927d3e874e9a59034
Fixed
ba95409d6b580501ff6d78efd00064f7df669926
Fixed
b8bcff99b07cc175a6ee12a52db51cdd2229586c
Fixed
1afac08b39d85437187bb2a92d89a741b1078f55
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
5d33bd6b4d4d035e42733592899918a18f2540da

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49931.json"