CVE-2025-21958 Details
Description
In the Linux kernel, the following vulnerability has been resolved: Revert "openvswitch: switch to per-action label counting in conntrack" Currently, ovs_ct_set_labels() is only called for confirmed conntrack entries (ct) within ovs_ct_commit(). However, if the conntrack entry does not have the labels_ext extension, attempting to allocate it in ovs_ct_get_conn_labels() for a confirmed entry triggers a warning in nf_ct_ext_add(): WARN_ON(nf_ct_is_confirmed(ct)); This happens when the conntrack entry is created externally before OVS increments net->ct.labels_used. The issue has become more likely since commit fcb1aa5163b1 ("openvswitch: switch to per-action label counting in conntrack"), which changed to use per-action label counting and increment net->ct.labels_used when a flow with ct action is added. Since there’s no straightforward way to fully resolve this issue at the moment, this reverts the commit to avoid breaking existing use cases.
A vulnerability in the Linux kernel's Open vSwitch (OVS) component related to connection tracking label management has been addressed. The issue arose because the function 'ovs_ct_set_labels()' was only applied to confirmed connection tracking entries within 'ovs_ct_commit()'. If a confirmed entry lacked the 'labels_ext' extension, attempting to allocate it in 'ovs_ct_get_conn_labels()' would trigger a warning, as the entry was created externally before OVS updated the label count. This problem became more prevalent after a previous commit that changed the label counting method, leading to potential disruptions in existing use cases. To mitigate this, the problematic commit was reverted, restoring the previous behavior and preventing the issue from affecting current operations.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/1063ae07383c0ddc5bcce170260c143825846b03 | kernel.org | Patch |
| https://git.kernel.org/stable/c/9e79fdabd52cfce1a021640a81256878a2c516a2 | kernel.org | Patch |
| https://git.kernel.org/stable/c/d91bfc64a4886102746e74d2c6f3a61e9a77fd7d | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-367 | Time-of-check Time-of-use (TOCTOU) Race Condition | [email protected] |
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.12, < 6.12.20 >= 6.13, < 6.13.8 6.14 rc1 6.14 rc2 6.14 rc3 6.14 rc4 6.14 rc5 6.14 rc6 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Oct 31, 2025 | Initial Analysis | [email protected] |
| Apr 1, 2025 | New CVE Received | kernel.org |