Bug 2379250 (CVE-2025-38342) - CVE-2025-38342 kernel: software node: Correct a OOB check in software_node_get_reference_args()
Summary: CVE-2025-38342 kernel: software node: Correct a OOB check in software_node_ge...
Keywords:
Status: NEW
Alias: CVE-2025-38342
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-07-10 09:02 UTC by OSIDB Bzimport
Modified: 2025-07-14 05:39 UTC (History)
0 users

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-07-10 09:02:55 UTC
In the Linux kernel, the following vulnerability has been resolved:

software node: Correct a OOB check in software_node_get_reference_args()

software_node_get_reference_args() wants to get @index-th element, so
the property value requires at least '(index + 1) * sizeof(*ref)' bytes
but that can not be guaranteed by current OOB check, and may cause OOB
for malformed property.

Fix by using as OOB check '((index + 1) * sizeof(*ref) > prop->length)'.

Comment 1 Avinash Hanwate 2025-07-11 04:43:44 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025071035-CVE-2025-38342-9e31@gregkh/T


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