Local privilege escalation via SIW memory-registration use-after-free
Published Feb 28, 2024 · Updated Aug 5, 2026
Use-after-free in the Linux kernel Soft-iWARP driver allows local users to gain kernel privileges through RDMA memory registration. siw_mr_add_mem assigns mem to mr->mem before xa_alloc_cyclic can fail and free mem, so siw_alloc_mr later passes the dangling pointer to siw_mr_drop_mem. A normal local user with an available SIW device can trigger kernel memory corruption, arbitrary kernel reads and writes, or a kernel crash without user interaction.
Summary
What happened
Use-after-free in the Linux kernel Soft-iWARP driver allows local users to gain kernel privileges through RDMA memory registration. siw_mr_add_mem assigns mem to mr->mem before xa_alloc_cyclic can fail and free mem, so siw_alloc_mr later passes the dangling pointer to siw_mr_drop_mem. A normal local user with an available SIW device can trigger kernel memory corruption, arbitrary kernel reads and writes, or a kernel crash without user interaction.
The record
- CVE
- CVE-2021-47012
- Published
- Feb 28, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Feb 28, 2024CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=2251334dcac9eb337575d8767e2a6a7e81848f7f <3093ee182f01689b89e9f8797b321603e5de4f63
- Affected versionversion=2251334dcac9eb337575d8767e2a6a7e81848f7f <30b9e92d0b5e5d5dc1101ab856c17009537cbca4
- Affected versionversion=2251334dcac9eb337575d8767e2a6a7e81848f7f <3e22b88e02c194f6c80867abfef5cc09383461f4
- Affected versionversion=2251334dcac9eb337575d8767e2a6a7e81848f7f <608a4b90ece039940e9425ee2b39c8beff27e00c
- Affected versionversion=2251334dcac9eb337575d8767e2a6a7e81848f7f <ad9ce7188432650469a6c7625bf479f5ed0b6155
- Affected versionversion=5.3
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo