Local kernel panic via incorrect iterator rollback
Published Jul 3, 2025 · Updated Aug 5, 2026
Improper iterator rollback in Linux kernels containing the affected BPF kTLS code allows local users to trigger a panic through a corked sockmap send. After bpf_exec_tx_verdict enlarges msg_pl->sg, tls_sw_sendmsg_locked resets msg_iter and reverts it by the enlarged scatter-gather size, exceeding the iterator's actual extent. The trigger requires local access to a kTLS socket enrolled in a sockmap; successful execution hangs the task or panics the host when panic-on-oops is enabled.
Summary
What happened
Improper iterator rollback in Linux kernels containing the affected BPF kTLS code allows local users to trigger a panic through a corked sockmap send. After bpf_exec_tx_verdict enlarges msg_pl->sg, tls_sw_sendmsg_locked resets msg_iter and reverts it by the enlarged scatter-gather size, exceeding the iterator's actual extent. The trigger requires local access to a kTLS socket enrolled in a sockmap; successful execution hangs the task or panics the host when panic-on-oops is enabled.
The record
- CVE
- CVE-2025-38166
- Published
- Jul 3, 2025
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1499
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jul 3, 2025CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=4.20
- Affected versionversion=d3b18ad31f93d0b6bae105c679018a1ba7daa9ca <2e36a81d388ec9c3f78b6223f7eda2088cd40adb
- Affected versionversion=d3b18ad31f93d0b6bae105c679018a1ba7daa9ca <328cac3f9f8ae394748485e769a527518a9137c8
- Affected versionversion=d3b18ad31f93d0b6bae105c679018a1ba7daa9ca <54a3ecaeeeae8176da8badbd7d72af1017032c39
- Affected versionversion=d3b18ad31f93d0b6bae105c679018a1ba7daa9ca <57fbbe29e86042bbaa31c1a30d2afa16c427e3f7
- Affected versionversion=d3b18ad31f93d0b6bae105c679018a1ba7daa9ca <603943f022a7fe5cc83ca7005faf34798fb7853f
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo