Kernel memory corruption via conntrack extension reallocation
Published Apr 1, 2025 · Updated Aug 5, 2026
Use-after-free in Linux kernel Open vSwitch conntrack allows local users to disclose or corrupt kernel memory and crash the host. ovs_ct_get_conn_labels() calls nf_ct_ext_add() to reallocate ct->ext after the conntrack entry is confirmed and visible to lock-free readers, creating use-after-free reads and writes. Local users can obtain CAP_NET_ADMIN in a user namespace, order conntrack creation and a labeled OVS flow, and use concurrent traffic to disclose kernel heap data, corrupt memory, or panic the host.
Summary
What happened
Use-after-free in Linux kernel Open vSwitch conntrack allows local users to disclose or corrupt kernel memory and crash the host. ovs_ct_get_conn_labels() calls nf_ct_ext_add() to reallocate ct->ext after the conntrack entry is confirmed and visible to lock-free readers, creating use-after-free reads and writes. Local users can obtain CAP_NET_ADMIN in a user namespace, order conntrack creation and a labeled OVS flow, and use concurrent traffic to disclose kernel heap data, corrupt memory, or panic the host.
The record
- CVE
- CVE-2025-21958
- Published
- Apr 1, 2025
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1499.004, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Apr 1, 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=6.12
- Affected versionversion=fcb1aa5163b1ae4cf2864b688b08927aac51f51e <1063ae07383c0ddc5bcce170260c143825846b03
- Affected versionversion=fcb1aa5163b1ae4cf2864b688b08927aac51f51e <9e79fdabd52cfce1a021640a81256878a2c516a2
- Affected versionversion=fcb1aa5163b1ae4cf2864b688b08927aac51f51e <d91bfc64a4886102746e74d2c6f3a61e9a77fd7d
What conditions does exploitation require?
What is affected?
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