CVE-2025-38691
Last modified
CVE-2025-38691 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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. EPSS estimates a 0.17% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 3.18, < 5.4.297 |
| Linux | Linux Kernel | >= 5.5, < 5.10.241 |
| Linux | Linux Kernel | >= 5.11, < 5.15.190 |
| Linux | Linux Kernel | >= 5.16, < 6.1.149 |
| Linux | Linux Kernel | >= 6.2, < 6.6.103 |
| Linux | Linux Kernel | >= 6.7, < 6.12.43 |
| Linux | Linux Kernel | >= 6.13, < 6.15.11 |
| Linux | Linux Kernel | >= 6.16, < 6.16.2 |
| Debian | Debian Linux | 11.0 |
References
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.htmlThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.htmlThird Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2025-38691?
How severe is CVE-2025-38691?
How do I fix CVE-2025-38691?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-38686In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38687In the Linux kernel, the following vulnerability has been re…4.7
- CVE-2025-38688In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-38689In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-3869The 4stats plugin for WordPress is vulnerable to Cross-Site …6.1
- CVE-2025-38690In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38692In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38693In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38694In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38695In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38696In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38697In the Linux kernel, the following vulnerability has been re…7.8
Are you affected by CVE-2025-38691?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
