CVE-2025-39917
Last modified
CVE-2025-39917 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: bpf: Fix out-of-bounds dynptr write in bpf_crypto_crypt Stanislav reported that in bpf_crypto_crypt() the destination dynptr's size is not validated to be at least as large as the source dynptr's size before calling into the crypto backend with 'len = src_len'. This can result in an OOB write when the destination is smaller than the source. Concretely, in mentioned function, psrc and pdst are both linear buffers fetched from each dynptr: psrc = __bpf_dynptr_data(src, src_len); [...] pdst = __bpf_dynptr_data_rw(dst, dst_len); [...] err = decrypt ? ctx->type->decrypt(ctx->tfm, psrc, pdst, src_len, piv) : ctx->type->encrypt(ctx->tfm, psrc, pdst, src_len, piv); The crypto backend expects pdst to be large enough with a src_len length that can be written. EPSS estimates a 0.14% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix out-of-bounds dynptr write in bpf_crypto_crypt Stanislav reported that in bpf_crypto_crypt() the destination dynptr's size is not validated to be at least as large as the source dynptr's size before calling into the crypto backend with 'len = src_len'. This can result in an OOB write when the destination is smaller than the source. Concretely, in mentioned function, psrc and pdst are both linear buffers fetched from each dynptr: psrc = __bpf_dynptr_data(src, src_len); [...] pdst = __bpf_dynptr_data_rw(dst, dst_len); [...] err = decrypt ? ctx->type->decrypt(ctx->tfm, psrc, pdst, src_len, piv) : ctx->type->encrypt(ctx->tfm, psrc, pdst, src_len, piv); The crypto backend expects pdst to be large enough with a src_len length that can be written. Add an additional src_len > dst_len check and bail out if it's the case. Note that these kfuncs are accessible under root privileges only.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 6.10, < 6.12.48 | — |
| Linux | Linux Kernel | >= 6.13, < 6.16.8 | — |
| Linux | Linux Kernel | 6.17 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2025-39917?
How severe is CVE-2025-39917?
How do I fix CVE-2025-39917?
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-39911In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-39912In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39913In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-39914In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39915In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39916In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39918In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39919In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-3992A vulnerability has been found in TOTOLINK N150RT 3.4.0-B201…8.8
- CVE-2025-39920In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39921In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39922In the Linux kernel, the following vulnerability has been re…7.1
Are you affected by CVE-2025-39917?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
