CVE-2022-49931 IB/hfi1: Correctly move list in sc_disable()

High 8.8 Published Updated

A null pointer dereference in the IB/hfi1 driver causes a kernel crash when a link goes down with pending send operations.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-49931?

CVE-2022-49931 is a high-severity vulnerability in Linux kernel, published on 1 May 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:

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: sc_disable+0x1ba/0x240 [hfi1] pio_freeze+0x3d/0x60 [hfi1] handle_freeze+0x27/0x1b0 [hfi1] process_one_work+0x1b0/0x380 ? process_one_work+0x380/0x380 worker_thread+0x30/0x360 ? process_one_work+0x380/0x380 kthread+0xd7/0x100 ? kthread_complete_and_exit+0x20/0x20 ret_from_fork+0x1f/0x30

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

Weakness: CWE-476

Which versions are affected by CVE-2022-49931?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-49931?

Apply the vendor's patch.

Is CVE-2022-49931 being exploited?

There is no known exploitation of CVE-2022-49931 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-49931, GHSA-6vr6-r6mg-9m3f, UBUNTU-CVE-2022-49931.

Is CVE-2022-49931 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free