CVE-2025-39917
NoneCVSS
—
EPSS
0.2%
Published
Oct 1, 2025
CISA due date
—
Cloudanix analysis
A bug in the Linux kernel's networking and security tools could let a local user damage core system memory and take control of the machine.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Full Compromise
- Component
- OS kernel
- Class
- Memory Corruption
- Remediation
- Patch
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw permits an out-of-bounds write through a dynptr object passed to bpf_crypto_crypt, corrupting adjacent kernel memory structures.
Why it matters to the business
Unpatched Linux systems risk kernel crashes, denial of service, or local privilege escalation that could compromise the entire host and any workloads running on it.
How an attack unfolds
An attacker loads a malicious BPF program that supplies a malformed dynptr to the bpf_crypto_crypt helper, triggering the out-of-bounds write and potentially gaining arbitrary kernel read/write primitives.
How to fix it
Apply the upstream fix by updating the kernel to include commit 0126358df12d6f476f79251d9c398ac5c1b3062d or later; rebuild and deploy the patched kernel across all affected distributions.
How to confirm the fix worked
Verify the running kernel contains commit 0126358df12d6f476f79251d9c398ac5c1b3062d via git log or uname -r against the fixed release; recompile BPF programs and test crypto-related helpers for stability.
Typical attack path
- Obtain unprivileged local access or ability to load BPF programs
- Craft and load a BPF program that invokes bpf_crypto_crypt with an oversized or misaligned dynptr
- Trigger the helper to perform the out-of-bounds write
- Leverage resulting memory corruption for privilege escalation or container escape
How to detect it
Inspect kernel logs for oops/panic messages referencing bpf_crypto_crypt or dynptr; review audit logs for unexpected BPF program loads; correlate with process creation of bpftool or similar utilities.
What your security team should do
- Immediately schedule kernel updates containing the referenced commit for all production systems
- Restrict unprivileged BPF program loading via sysctl kernel.unprivileged_bpf_disabled=1 until patched
- Monitor for kernel oops or panic logs related to bpf_crypto_crypt
- Audit systems for custom BPF programs that call crypto helpers
The record
bpf: Fix out-of-bounds dynptr write in bpf_crypto_crypt
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Linux | Kernel | 6.10.0 | 6.12.48 |
| openSUSE:Leap 16.0 | dtb-aarch64 | 0 | 6.12.0-160000.8.1 |
| openSUSE:Leap 16.0 | kernel-64kb | 0 | 6.12.0-160000.8.1 |
| openSUSE:Leap 16.0 | kernel-default | 0 | 6.12.0-160000.8.1 |
| openSUSE:Leap 16.0 | kernel-default-base | 0 | 6.12.0-160000.8.1.160000.2.5 |
| openSUSE:Leap 16.0 | kernel-docs | 0 | 6.12.0-160000.8.1 |
| openSUSE:Leap 16.0 | kernel-kvmsmall | 0 | 6.12.0-160000.8.1 |
| openSUSE:Leap 16.0 | kernel-obs-build | 0 | 6.12.0-160000.8.1 |
| openSUSE:Leap 16.0 | kernel-obs-qa | 0 | 6.12.0-160000.8.1 |
| openSUSE:Leap 16.0 | kernel-rt | 0 | 6.12.0-160000.8.1 |
| openSUSE:Leap 16.0 | kernel-source | 0 | 6.12.0-160000.8.1 |
| openSUSE:Leap 16.0 | kernel-syms | 0 | 6.12.0-160000.8.1 |
| openSUSE:Leap 16.0 | kernel-zfcpdump | 0 | 6.12.0-160000.8.1 |
Related vulnerabilities
- CVE-2026-23226 In the Linux kernel, the following vulnerability has been resolved: ksmbd: add chann_lock… Also affects Kernel
- CVE-2026-23225 In the Linux kernel, the following vulnerability has been resolved: sched/mmcid: Don't… Also affects Kernel
- CVE-2026-23230 In the Linux kernel, the following vulnerability has been resolved: smb: client: split… Also affects Kernel
- CVE-2026-23224 In the Linux kernel, the following vulnerability has been resolved: erofs: fix UAF issue… Also affects Kernel
- CVE-2026-23227 In the Linux kernel, the following vulnerability has been resolved: drm/exynos: vidi: use… Also affects Kernel
- CVE-2026-23223 In the Linux kernel, the following vulnerability has been resolved: xfs: fix UAF in… Also affects Kernel
- CVE-2026-23228 In the Linux kernel, the following vulnerability has been resolved: smb: server: fix leak… Also affects Kernel
- CVE-2026-23229 In the Linux kernel, the following vulnerability has been resolved: crypto: virtio - Add… Also affects Kernel