# CVE-2025-38691: pNFS: Fix uninited ptr deref in block/scsi layout

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-908
- **Published:** 2025-09-04T15:32:45.301Z
- **Modified:** 2026-11-05T22:17:24.873Z

## Who should check

- Anyone running Linux \>= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, \< 579b85f893d9885162e1cabf99a4a088916e143e; \>= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, \< 2896f101110076ac6bf99d7aaf463d61e26f89dd; \>= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, \< 4f783333cbfa2ee7d4aa8e47f6bd1b3f77534fcf; \>= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, \< 9be5c04beca3202d0a5f09fb4b2ecb644caa0bc5; \>= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, \< 24334f3cf8a294f253071b5bf22d754dbb6d0f2d; \>= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, \< f0b2eee3fbba9b7e3746ef698424ef5e4a197776; \>= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, \< 94ec6d939031a616474376dadbf4a8d0ef8b0bcc; \>= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, \< 37c3443a2685528f972d910a6fb87716b96fef46; \>= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, \< 9768797c219326699778fba9cd3b607b2f1e7950
- Anyone running Linux 3.18

## 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.

## Affected and fixed versions

- Linux: \>= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, \< 579b85f893d9885162e1cabf99a4a088916e143e; \>= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, \< 2896f101110076ac6bf99d7aaf463d61e26f89dd; \>= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, \< 4f783333cbfa2ee7d4aa8e47f6bd1b3f77534fcf; \>= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, \< 9be5c04beca3202d0a5f09fb4b2ecb644caa0bc5; \>= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, \< 24334f3cf8a294f253071b5bf22d754dbb6d0f2d; \>= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, \< f0b2eee3fbba9b7e3746ef698424ef5e4a197776; \>= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, \< 94ec6d939031a616474376dadbf4a8d0ef8b0bcc; \>= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, \< 37c3443a2685528f972d910a6fb87716b96fef46; \>= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, \< 9768797c219326699778fba9cd3b607b2f1e7950 (cvelist)
- Linux: 3.18 (cvelist)

## Mitigation

- Upgrade Linux to 9768797c219326699778fba9cd3b607b2f1e7950 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38691. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38691.md
Affected: Linux >= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, < 579b85f893d9885162e1cabf99a4a088916e143e; >= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, < 2896f101110076ac6bf99d7aaf463d61e26f89dd; >= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, < 4f783333cbfa2ee7d4aa8e47f6bd1b3f77534fcf; >= 34dc93c2fc04da0d01acf8a…
Fixed in: Linux 579b85f893d9885162e1cabf99a4a088916e143e, Linux 2896f101110076ac6bf99d7aaf463d61e26f89dd, Linux 4f783333cbfa2ee7d4aa8e47f6bd1b3f77534fcf, Linux 9be5c04beca3202d0a5f09fb4b2ecb644caa0bc5, Linux 24334f3cf8a294f253071b5bf22d754dbb6d0f2d, Linux 94ec6d939031a616474376dadbf4a8d0ef8b0bcc, Linux 37c34…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38691 being exploited?

There is no confirmed exploitation: CVE-2025-38691 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38691?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38691?

Linux \>= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, \< 579b85f893d9885162e1cabf99a4a088916e143e; \>= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, \< 2896f101110076ac6bf99d7aaf463d61e26f89dd; \>= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, \< 4f783333cbfa2ee7d4aa8e47f6bd1b3f77534fcf; \>= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, \< 9be5c04beca3202d0a5f09fb4b2ecb644caa0bc5; \>= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, \< 24334f3cf8a294f253071b5bf22d754dbb6d0f2d; \>= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, \< f0b2eee3fbba9b7e3746ef698424ef5e4a197776; \>= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, \< 94ec6d939031a616474376dadbf4a8d0ef8b0bcc; \>= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, \< 37c3443a2685528f972d910a6fb87716b96fef46; \>= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, \< 9768797c219326699778fba9cd3b607b2f1e7950; Linux 3.18.

### Is there a fix for CVE-2025-38691?

Yes. Fixed in Linux 579b85f893d9885162e1cabf99a4a088916e143e, Linux 2896f101110076ac6bf99d7aaf463d61e26f89dd, Linux 4f783333cbfa2ee7d4aa8e47f6bd1b3f77534fcf, Linux 9be5c04beca3202d0a5f09fb4b2ecb644caa0bc5, Linux 24334f3cf8a294f253071b5bf22d754dbb6d0f2d, Linux 94ec6d939031a616474376dadbf4a8d0ef8b0bcc, Linux 37c3443a2685528f972d910a6fb87716b96fef46, Linux 9768797c219326699778fba9cd3b607b2f1e7950. Upgrade Linux to 9768797c219326699778fba9cd3b607b2f1e7950 or later.

### How do I check if I'm affected by CVE-2025-38691?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/579b85f893d9885162e1cabf99a4a088916e143e>
- patch: <https://git.kernel.org/stable/c/2896f101110076ac6bf99d7aaf463d61e26f89dd>
- patch: <https://git.kernel.org/stable/c/4f783333cbfa2ee7d4aa8e47f6bd1b3f77534fcf>
- patch: <https://git.kernel.org/stable/c/9be5c04beca3202d0a5f09fb4b2ecb644caa0bc5>
- patch: <https://git.kernel.org/stable/c/24334f3cf8a294f253071b5bf22d754dbb6d0f2d>
- patch: <https://git.kernel.org/stable/c/f0b2eee3fbba9b7e3746ef698424ef5e4a197776>
- patch: <https://git.kernel.org/stable/c/94ec6d939031a616474376dadbf4a8d0ef8b0bcc>
- patch: <https://git.kernel.org/stable/c/37c3443a2685528f972d910a6fb87716b96fef46>
- patch: <https://git.kernel.org/stable/c/9768797c219326699778fba9cd3b607b2f1e7950>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-032379.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38691>

HTML: <https://flawdb.com/CVE-2025-38691> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38691>
