Live threats

All CVEs / Linux

CVE-2021-47012Linux Kernel

High 7.8

Priority
47
CVSS 3.1
7.8
EPSS
0.3%
probability of exploitation in 30 days · percentile 12
Auth required
Yes
Published
Feb 28, 2024
Updated
Aug 4, 2026
Category
Operating system · Linux
Weakness (CWE)
CWE-416
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What happens

In the Linux kernel, the following vulnerability has been resolved: RDMA/siw: Fix a use after free in siw_alloc_mr Our code analyzer reported a UAF. In siw_alloc_mr(), it calls siw_mr_add_mem(mr,..). In the implementation of siw_mr_add_mem(), mem is assigned to mr->mem and then mem is freed via kfree(mem) if xa_alloc_cyclic() failed. Here, mr->mem still point to a freed object. After, the execution continue up to the err_out branch of siw_alloc_mr, and the freed mr->mem is used in siw_mr_drop_mem(mr). My patch moves "mr->mem = mem" behind the if (xa_alloc_cyclic(..)<0) {} section, to avoid the uaf.

Original NVD text.

What to do

  1. Apply the vendor's security update for Linux Kernel.

Affected products (CPE)

VendorProductVersions
linuxlinux_kernel≥ 5.3 < 5.4.119
linuxlinux_kernel≥ 5.5 < 5.10.37
linuxlinux_kernel≥ 5.11 < 5.11.21
linuxlinux_kernel≥ 5.12 < 5.12.4

Official sources

References

Links published by the sources. Open them with care.