7.1high
vdpa: solidrun: Fix UB bug with devres
- Severity
- 7.1high CVSS:3.1 by Linux
- Exploit likelihood
- 0.21% (higher than 12% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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().
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 * | CVE List |
| linux linux_kernel | up to 6.3, from 6.6.0 before 6.6.63, from 6.11.0 before 6.11.10 | NVD |
All scores
| Linux | 7.1high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
| CISA-ADP | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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().
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: vdpa: solidrun: Fix UB bug with devres En psnet_open_pf_bar() y snet_open_vf_bar(), una cadena que luego se pasa a pcim_iomap_regions() se coloca en la pila. Ni pcim_iomap_regions() ni las funciones que llama copian esa cadena. Si la cadena se utiliza más tarde, esto, en consecuencia, provoca un comportamiento indefinido ya que el marco de la pila habrá desaparecido para entonces. Corrija el error asignando las cadenas en el montón a través de devm_kasprintf().
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-53126 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2024-53126 changed 2026-08-04 | Public domain |