---
id: CVE-2025-38342
title: |-
  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 requi…
summary: |-
  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 requi…
severity: high
cvss: 7
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-125
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 5.0, < 5.10.239'
  - 'linux_kernel >= 5.11, < 5.15.186'
  - 'linux_kernel >= 5.16, < 6.1.142'
  - 'linux_kernel >= 6.2, < 6.6.95'
  - 'linux_kernel >= 6.7, < 6.12.35'
  - 'linux_kernel >= 6.13, < 6.15.4'
  - debian_linux = 11.0
patched:
  - linux_kernel 6.15.4
published: '2025-07-10'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T22:18:38.860'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-38342'
references:
  - url: 'https://git.kernel.org/stable/c/142acd739eb6f08c148a96ae8309256f1422ff4b'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/31e4e12e0e9609850cefd4b2e1adf782f56337d6'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/4b3383110b6df48e0ba5936af2cb68d5eb6bd43b'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/56ce76e8d406cc72b89aee7931df5cf3f18db49d'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/7af18e42bdefe1dba5bcb32555a4d524fd504939'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/9324127b07dde8529222dc19233aa57ec810856c'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/f9397cf7bfb680799fb8c7f717c8f756384c3280'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-082556.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
  - cve.org
epss: 0.00193
epssPercentile: 0.08881
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-15T21:49:40.301712Z'
ingestedAt: '2026-10-15T05:52:46.089Z'
---

## Overview

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

## Affected

- `linux_kernel >= 5.0, < 5.10.239`
- `linux_kernel >= 5.11, < 5.15.186`
- `linux_kernel >= 5.16, < 6.1.142`
- `linux_kernel >= 6.2, < 6.6.95`
- `linux_kernel >= 6.7, < 6.12.35`
- `linux_kernel >= 6.13, < 6.15.4`
- `debian_linux = 11.0`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.15.4`
