CVE-2025-38691CWE-908

CVE-2025-38691

Medium · published September 4, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
7.4
In the wild
Unconfirmed
What it is

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

pNFS: Fix uninited ptr deref in block/scsi layout

The error occurs on the third attempt to encode extents. When function

ext_tree_prepare_commit() reallocates a larger buffer to retry encoding

extents, the "layoutupdate_pages" page array is initialized only after the

retry loop. But ext_tree_free_commitdata() is called on every iteration

and tries to put pages in the array, thus dereferencing uninitialized

pointers.

An additional problem is that there is no limit on the maximum possible

buffer_size. When there are too many extents, the client may create a

layoutcommit that is larger than the maximum possible RPC size accepted

by the server.

During testing, we observed two typical scenarios. First, one memory page

for extents is enough when we work with small files, append data to the

end of the file, or preallocate extents before writing. But when we fill

a new large file without preallocating, the number of extents can be huge,

and counting the number of written extents in ext_tree_encode_commit()

does not help much. Since this number increases even more between

unlocking and locking of ext_tree, the reallocated buffer may not be

large enough again and again.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00183 · 7.4th percentile
Weakness
CWE-908 · Use of Uninitialized Resource
Published
2025-09-04T20:15Z
Affected products (9)
ProductVersionsFixed in
linux/linux_kernel≥ 5.11, < 5.15.1905.15.190
linux/linux_kernel≥ 5.16, < 6.1.1496.1.149
linux/linux_kernel≥ 6.2, < 6.6.1036.6.103
linux/linux_kernel≥ 6.7, < 6.12.436.12.43
linux/linux_kernel≥ 6.13, < 6.15.116.15.11
linux/linux_kernel≥ 6.16, < 6.16.26.16.2
linux/linux_kernel≥ 3.18, < 5.4.2975.4.297
linux/linux_kernel≥ 5.5, < 5.10.2415.10.241
debian/debian_linuxall versions—
References (13)
EPSS history
Timeline
  • 04 SEP 15:32Z
    pNFS: Fix uninited ptr deref in block/scsi layout
    cvelistv5