# CVE-2024-53126: vdpa: solidrun: Fix UB bug with devres

- Severity: High 7.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2024-12-04T14:20:30.788Z
- Modified: 2026-08-05T11:43:56.206Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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().

(As written by CVE List.)

## Affected

- Linux Linux: from 51a8f9d7f587290944d6fc733d1f897091c63159 before d372dd09cfbf1324f54cbffd81fcaf6cdf3e608e; from 51a8f9d7f587290944d6fc733d1f897091c63159 before 5bb287da2d2d5bb8f7376e223b02edb16998982e; from 51a8f9d7f587290944d6fc733d1f897091c63159 before 0b364cf53b20204e92bac7c6ebd1ee7d3ec62931; 6.3 (not affected: before 6.3; from 6.6.63 up to 6.6.*; from 6.11.10 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: up to 6.3; from 6.6.0 before 6.6.63; from 6.11.0 before 6.11.10

## Every score

- Linux: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/d372dd09cfbf1324f54cbffd81fcaf6cdf3e608e> (patch)
- <https://git.kernel.org/stable/c/5bb287da2d2d5bb8f7376e223b02edb16998982e> (patch)
- <https://git.kernel.org/stable/c/0b364cf53b20204e92bac7c6ebd1ee7d3ec62931> (patch)

## Sources

- CVE List: [CVE-2024-53126](https://www.cve.org/CVERecord?id=CVE-2024-53126), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-53126](https://nvd.nist.gov/vuln/detail/CVE-2024-53126), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-53126 · Whole record: https://cve.day/CVE-2024-53126.json · Rebuilt by cve.day 2026-11-25T22:58:49.700Z
