Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2024-53126

Опубликовано: 04 дек. 2024
Источник: redhat
CVSS3: 4.4

Описание

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

A flaw was found in the Linux kernel's vhost Data Path Acceleration (vDPA) SolidRun driver. A temporary string allocated on the stack is passed to a resource management function without being copied, leaving a reference to invalid stack memory once the function exits. A local user with administrative privileges could trigger this flaw during device initialization to cause memory corruption, resulting in a Denial of Service (DoS) via a system crash.

Меры по смягчению последствий

To mitigate this vulnerability, prevent the snet_vdpa kernel module from being loaded:

  1. Add the module to the modprobe blacklist configuration:
echo "blacklist snet_vdpa" >> /etc/modprobe.d/blacklist-snet_vdpa.conf echo "install snet_vdpa /bin/false" >> /etc/modprobe.d/blacklist-snet_vdpa.conf
  1. If the module is already loaded, unload it or restart the system:
modprobe -r snet_vdpa

Caveat: Disabling this module prevents the kernel from binding to SolidRun vDPA network hardware. Unloading the module or applying these changes may require a system restart if the driver is actively in use.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise Linux 9kernelNot affected
Red Hat Enterprise Linux 9kernel-rtNot affected

Показывать по

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-758
https://bugzilla.redhat.com/show_bug.cgi?id=2330354kernel: vdpa: solidrun: Fix UB bug with devres

4.4 Medium

CVSS3

Связанные уязвимости

CVSS3: 7.8
ubuntu
почти 2 года назад

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

CVSS3: 7.8
nvd
почти 2 года назад

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

CVSS3: 7.8
msrc
9 месяцев назад

vdpa: solidrun: Fix UB bug with devres

CVSS3: 7.8
debian
почти 2 года назад

In the Linux kernel, the following vulnerability has been resolved: v ...

CVSS3: 7.8
github
почти 2 года назад

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

4.4 Medium

CVSS3