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.
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Debian | — | Upgrade linux | Jul 30, 2024 | Feb 28, 2024 |
| Echo Linux | — | Upgrade linux | Nov 12, 2026 | Feb 28, 2024 |
| Redhat_linux | — | No solution exists | Jul 9, 2025 | Feb 28, 2024 |
| Suse | — | Upgrade kernel-64kbUpgrade kernel-64kb-develUpgrade kernel-defaultUpgrade kernel-default-baseUpgrade kernel-default-develUpgrade kernel-develUpgrade kernel-docsUpgrade kernel-macrosUpgrade kernel-obs-buildUpgrade kernel-preemptUpgrade kernel-preempt-develUpgrade kernel-sourceUpgrade kernel-symsUpgrade kernel-zfcpdumpUpgrade reiserfs-kmp-default | Aug 9, 2024 | Feb 28, 2024 |
| Ubuntu | — | Upgrade linuxUpgrade linux-awsUpgrade linux-aws-5.4Upgrade linux-aws-fipsUpgrade linux-azureUpgrade linux-azure-5.4Upgrade linux-azure-fipsUpgrade linux-bluefieldUpgrade linux-fipsUpgrade linux-gcpUpgrade linux-gcp-5.4Upgrade linux-gcp-fipsUpgrade linux-gkeopUpgrade linux-hwe-5.4Upgrade linux-kvmUpgrade linux-oracleUpgrade linux-oracle-5.4Upgrade linux-raspiUpgrade linux-raspi-5.4 | Nov 19, 2024 | Feb 28, 2024 |
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub