CVE-2024-53126 vdpa: solidrun: Fix UB bug with devres
A use-after-free bug in the Linux kernel's SolidRun vDPA driver allows attackers to cause undefined behavior, potentially leading to crashes or code execution.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-53126?
CVE-2024-53126 is a high-severity use after free vulnerability in Linux kernel, published on 4 Dec 2024. 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:
vdpa: solidrun: Fix UB bug with devres
In psnet_open_pf_bar() and snet_open_vf_bar() a string later passed to pcim_iomap_regions() is placed on the stack. Neither pcim_iomap_regions() nor the functions it calls copy that string.
Should the string later ever be used, this, consequently, causes undefined behavior since the stack frame will by then have disappeared.
Fix the bug by allocating the strings on the heap through devm_kasprintf().
Which versions are affected by CVE-2024-53126?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-53126?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2024-53126 being exploited?
There is no known exploitation of CVE-2024-53126 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-54129, BELL-CVE-2024-53126, DEBIAN-CVE-2024-53126, GHSA-623v-cr64-76w9, UBUNTU-CVE-2024-53126.