CVE-2024-53126·Kernel vulnerability
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().
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.11.10
- Published
- 2024-12-04
Affected versions
From: 6.11.0
Until: 6.11.10
Fixed in: 6.11.10
How to fix this CVE
Update your Linux kernel to version 6.11.10 or later to resolve this memory safety issue in the vdpa solidrun driver. The vulnerability stems from stack-allocated strings being referenced after the stack frame is destroyed, which can cause system instability or undefined behavior. Apply this patch immediately through your distribution's kernel update mechanism.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version with `uname -r` and verify it is between 6.11.0 and 6.11.9 (inclusive)
- Step 2: Confirm vdpa solidrun driver is loaded with `lsmod | grep solidrun` or check dmesg for vdpa initialization messages
- Step 3: Search kernel logs for memory-related errors or undefined behavior sanitizer (UBSAN) warnings with `dmesg | grep -i 'use-after-free\|undefined\|sanitizer'`
- Step 4: After patching, reboot the system and verify the new kernel version with `uname -r` shows 6.11.10 or higher
FAQ
What is CVE-2024-53126?
This is a memory safety vulnerability in the Linux kernel's vdpa solidrun driver where device resource manager (devres) strings are allocated on the stack and passed to functions that store pointers to them, causing undefined behavior when the stack frame is deallocated. The issue affects PF and VF BAR mapping operations.
Is CVE-2024-53126 being actively exploited?
No, there is no evidence of active exploitation or public exploits available for this vulnerability. However, the high CVSS score (7.8) indicates it should be patched promptly to prevent potential system instability.
What versions of Kernel are affected by CVE-2024-53126?
Linux kernel versions 6.11.0 through 6.11.9 are affected. The vulnerability is resolved in kernel 6.11.10 and later.
How do I check if my server is vulnerable to CVE-2024-53126?
Run `uname -r` to display your kernel version. If it shows 6.11.0 through 6.11.9 and you have vdpa solidrun hardware, your system is vulnerable. Additionally, check `lsmod | grep solidrun` to confirm the driver is loaded.
Does Defensia detect CVE-2024-53126?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2024-53126 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-53126. Free for 1 server.
Get started free