CVE-2022-49930: RDMA/hns: Fix NULL pointer problem in free_mr_init()
In the Linux kernel, the following vulnerability has been resolved:
RDMA/hns: Fix NULL pointer problem in freemrinit()
Lock grab occurs in a concurrent scenario, resulting in stepping on a NULL pointer. It should be init mutexinit() first before use the lock.
Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000 Call trace: mutexlock.constprop.0+0xd0/0x5c0 mutexlockslowpath+0x1c/0x2c mutexlock+0x44/0x50 freemrsendcmdtohw+0x7c/0x1c0 [hnsrocehwv2] hnsrocev2deregmr+0x30/0x40 [hnsrocehwv2] hnsrocederegmr+0x4c/0x130 [hnsrocehwv2] ibderegmruser+0x54/0x124 uverbsfreemr+0x24/0x30 destroyhwidruobject+0x38/0x74 uverbsdestroyuobject+0x48/0x1c4 uobjdestroy+0x74/0xcc ibuverbscmdverbs+0x368/0xbb0 ibuverbsioctl+0xec/0x1a4 arm64sysioctl+0xb4/0x100 invokesyscall+0x50/0x120 el0svccommon.constprop.0+0x58/0x190 doel0svc+0x30/0x90 el0svc+0x2c/0xb4 el0t64synchandler+0x1a4/0x1b0 el0t64sync+0x19c/0x1a0
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2022-49930?
CVE-2022-49930 has a medium severity level due to the potential for denial of service caused by the NULL pointer dereference in the Linux kernel.
How do I fix CVE-2022-49930?
To fix CVE-2022-49930, ensure that you update your Linux kernel to the latest patched version that addresses this vulnerability.
What systems are affected by CVE-2022-49930?
CVE-2022-49930 affects various versions of the Linux kernel that utilize the RDMA/hns component.
What type of vulnerability is CVE-2022-49930?
CVE-2022-49930 is a concurrency-related vulnerability resulting from a NULL pointer dereference during lock grabbing.
Are there any workarounds for CVE-2022-49930?
While upgrading the kernel is the primary solution, limiting access to the affected RDMA functionalities can serve as a temporary workaround.