CVE-2025-38166
BaseFortify
Publication date: 2025-07-03
Last updated on: 2025-12-18
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | From 4.20 (inc) to 6.1.142 (exc) |
| linux | linux_kernel | From 6.2 (inc) to 6.6.94 (exc) |
| linux | linux_kernel | From 6.7 (inc) to 6.12.34 (exc) |
| linux | linux_kernel | From 6.13 (inc) to 6.15.3 (exc) |
| debian | debian_linux | 11.0 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-NVD-CWE-noinfo |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a bug in the Linux kernel's BPF (Berkeley Packet Filter) subsystem related to the handling of ktls (Kernel TLS) with sockmap. Specifically, after executing a BPF program that pushes data, the size of the scatter-gather list (msg_pl->sg) may increase. If the BPF program sets cork_bytes and the sg.size is smaller than cork_bytes, the kernel attempts to roll back to a non-zero copy logic. However, during this rollback, the message iterator (msg->msg_iter) is reset incorrectly because the increased sg.size causes subsequent operations to exceed the actual size of msg_iter, leading to a kernel panic (BUG). The fix involves recognizing that rolling back when cork_bytes is set is pointless and adjusting the logic to avoid incorrect reversion of msg_iter, preventing the panic.
How can this vulnerability impact me? :
This vulnerability can cause a kernel panic in the Linux system when certain BPF programs interact with Kernel TLS and sockmap, leading to a system crash or instability. This can result in denial of service, where the affected system becomes unresponsive or requires a reboot, potentially disrupting services and applications relying on the kernel's networking stack.