CVE-2025-38691

pNFS: Fix uninited ptr deref in block/scsi layout

No CVSS score yet EPSS 0.20%

Published 4 Sep 2025 Updated 5 Nov 2026 CNA: Linux

Check your servers for CVE-2025-38691

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38691 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Exploitation

EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.7% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 5 Nov 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 34dc93c2fc04da0d01acf8a1660b4ab276208af7, before 579b85f893d9885162e1cabf99a4a088916e143e
affected from 34dc93c2fc04da0d01acf8a1660b4ab276208af7, before 2896f101110076ac6bf99d7aaf463d61e26f89dd
affected from 34dc93c2fc04da0d01acf8a1660b4ab276208af7, before 4f783333cbfa2ee7d4aa8e47f6bd1b3f77534fcf
affected from 34dc93c2fc04da0d01acf8a1660b4ab276208af7, before 9be5c04beca3202d0a5f09fb4b2ecb644caa0bc5
affected from 34dc93c2fc04da0d01acf8a1660b4ab276208af7, before 24334f3cf8a294f253071b5bf22d754dbb6d0f2d
affected from 34dc93c2fc04da0d01acf8a1660b4ab276208af7, before f0b2eee3fbba9b7e3746ef698424ef5e4a197776
affected from 34dc93c2fc04da0d01acf8a1660b4ab276208af7, before 94ec6d939031a616474376dadbf4a8d0ef8b0bcc
affected from 34dc93c2fc04da0d01acf8a1660b4ab276208af7, before 37c3443a2685528f972d910a6fb87716b96fef46
affected from 34dc93c2fc04da0d01acf8a1660b4ab276208af7, before 9768797c219326699778fba9cd3b607b2f1e7950
Other versions: unaffected
Linux
affected 3.18
unaffected before 3.18
unaffected from 5.4.297 up to and including 5.4.*
unaffected from 5.10.241 up to and including 5.10.*
unaffected from 5.15.190 up to and including 5.15.*
unaffected from 6.1.149 up to and including 6.1.*
unaffected from 6.6.103 up to and including 6.6.*
unaffected from 6.12.43 up to and including 6.12.*
unaffected from 6.15.11 up to and including 6.15.*
unaffected from 6.16.2 up to and including 6.16.*
unaffected 6.17 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38691 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38691

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-38691
trivy image --scanners vuln IMAGE | grep CVE-2025-38691

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-38691 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.