CVE-2025-38691
pNFS: Fix uninited ptr deref in block/scsi layout
Mitigation
- Upgrade Linux to 9768797c219326699778fba9cd3b607b2f1e7950 or later.
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
Vulnerability facts
- Affected
- Linux >= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, < 579b85f893d9885162e1cabf99a4a088916e143e; >= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, < 2896f101110076ac6bf99d7aaf463d61e26f89dd; >= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, < 4f783333cbfa2ee7d4aa8e47f6bd1b3f77534fcf; >= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, < 9be5c04beca3202d0a5f09fb4b2ecb644caa0bc5; >= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, < 24334f3cf8a294f253071b5bf22d754dbb6d0f2d; >= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, < f0b2eee3fbba9b7e3746ef698424ef5e4a197776; >= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, < 94ec6d939031a616474376dadbf4a8d0ef8b0bcc; >= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, < 37c3443a2685528f972d910a6fb87716b96fef46; >= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, < 9768797c219326699778fba9cd3b607b2f1e7950; Linux 3.18
- Fixed in
- Linux 579b85f893d9885162e1cabf99a4a088916e143e, Linux 2896f101110076ac6bf99d7aaf463d61e26f89dd, Linux 4f783333cbfa2ee7d4aa8e47f6bd1b3f77534fcf, Linux 9be5c04beca3202d0a5f09fb4b2ecb644caa0bc5, Linux 24334f3cf8a294f253071b5bf22d754dbb6d0f2d, Linux 94ec6d939031a616474376dadbf4a8d0ef8b0bcc, Linux 37c3443a2685528f972d910a6fb87716b96fef46, Linux 9768797c219326699778fba9cd3b607b2f1e7950
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.28% chance of exploitation in 30 days (percentile 13, 2026-11-26)
- CWE
- CWE-908
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, < 579b85f893d9885162e1cabf99a4a088916e143e; >= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, < 2896f101110076ac6bf99d7aaf463d61e26f89dd; >= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, < 4f783333cbfa2ee7d4aa8e47f6bd1b3f77534fcf; >= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, < 9be5c04beca3202d0a5f09fb4b2ecb644caa0bc5; >= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, < 24334f3cf8a294f253071b5bf22d754dbb6d0f2d; >= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, < f0b2eee3fbba9b7e3746ef698424ef5e4a197776; >= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, < 94ec6d939031a616474376dadbf4a8d0ef8b0bcc; >= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, < 37c3443a2685528f972d910a6fb87716b96fef46; >= 34dc93c2fc04da0d01acf8a1660b4ab276208af7, < 9768797c219326699778fba9cd3b607b2f1e7950 | — | cvelist |
| Linux | 3.18 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Patches
- https://git.kernel.org/stable/c/579b85f893d9885162e1cabf99a4a088916e143e
- https://git.kernel.org/stable/c/2896f101110076ac6bf99d7aaf463d61e26f89dd
- https://git.kernel.org/stable/c/4f783333cbfa2ee7d4aa8e47f6bd1b3f77534fcf
- https://git.kernel.org/stable/c/9be5c04beca3202d0a5f09fb4b2ecb644caa0bc5
- https://git.kernel.org/stable/c/24334f3cf8a294f253071b5bf22d754dbb6d0f2d
- https://git.kernel.org/stable/c/f0b2eee3fbba9b7e3746ef698424ef5e4a197776
- https://git.kernel.org/stable/c/94ec6d939031a616474376dadbf4a8d0ef8b0bcc
- https://git.kernel.org/stable/c/37c3443a2685528f972d910a6fb87716b96fef46
- https://git.kernel.org/stable/c/9768797c219326699778fba9cd3b607b2f1e7950
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.