Bug 2330354 (CVE-2024-53126) - CVE-2024-53126 kernel: vdpa: solidrun: Fix UB bug with devres
Summary: CVE-2024-53126 kernel: vdpa: solidrun: Fix UB bug with devres
Keywords:
Status: NEW
Alias: CVE-2024-53126
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2330490
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-04 15:02 UTC by OSIDB Bzimport
Modified: 2025-01-20 05:45 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-12-04 15:02:23 UTC
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().

Comment 1 Avinash Hanwate 2024-12-05 04:05:03 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024120448-CVE-2024-53126-0282@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.