cve.bz

CVE-2025-21701 linux linux kernel: Race Condition

4.7 mediumEPSS 0.2%Fix available

Medium (4.7) in linux linux kernel. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
In the Linux kernel, the following vulnerability has been resolved: net: avoid race between device unregistration and ethnl ops The following trace can be seen if a device is being unregistered while its number of channels are being modified. DEBUG_LOCKS_WARN_ON(lock->magic != lock) WARNING: CPU: 3 PID: 3754 at kernel/locking/mutex.c:564 __mutex_lock+0xc8a/0x1120 CPU: 3 UID: 0 PID: 3754 Comm: ethtool Not tainted 6.13.0-rc6+ #771 RIP: 0010:__mutex_lock+0xc8a/0x1120 Call Trace: <TASK> ethtool_check_max_channel+0x1ea/0x880 ethnl_set_channels+0x3c3/0xb10 ethnl_default_set_doit+0x306/0x650 genl_family_rcv_msg_doit+0x1e3/0x2c0 genl_rcv_msg+0x432/0x6f0 netlink_rcv_skb+0x13d/0x3b0 genl_rcv+0x28/0x40 netlink_unicast+0x42e/0x720 netlink_sendmsg+0x765/0xc20 __sys_sendto+0x3ac/0x420 __x64_sys_sendto+0xe0/0x1c0 do_syscall_64+0x95/0x180 entry_SYSCALL_64_after_hwframe+0x76/0x7e This is because unregister_netdevice_many_notify might run before the rtnl lock section of ethnl operations, eg. set_channels in the above example. In this example the rss lock would be destroyed by the device unregistration path before being used again, but in general running ethnl operations while dismantle has started is not a good idea. Fix this by denying any operation on devices being unregistered. A check was already there in ethnl_ops_begin, but not wide enough. Note that the same issue cannot be seen on the ioctl version (__dev_ethtool) because the device reference is retrieved from within the rtnl lock section there. Once dismantle started, the net device is unlisted and no reference will be found.

Severity

CVSS 3.1

4.7 medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 7th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-09-02. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-21701 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-21701?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-21701?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-21701 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linuxfrom 5.15.8 before 5.15.179
Linuxfrom 5.10.87 before 5.11
Linux5.16 and later

Fixed in

ProductRelease lineFixed in
Linux5.155.15.179
Linux6.16.1.129
Linux6.66.6.76
Linux6.126.12.13
Linux6.136.13.2
Linuxlater releases6.14

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11linux-6.16.1.129-1~deb11u1DLA-4102-1
Debian12linux6.1.129-1DEBIAN-CVE-2025-21701
Debian13, 14linux6.12.13-1DEBIAN-CVE-2025-21701
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2025-21701
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2025-21701
Ubuntu20.04:LTSlinux-aws-5.155.15.0-1082.89~20.04.1UBUNTU-CVE-2025-21701 USN-7455-5
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1087.96~20.04.1UBUNTU-CVE-2025-21701 USN-7455-1
Ubuntu20.04:LTSlinux-azure-fde-5.155.15.0-1087.96~20.04.1.1USN-7455-1
Ubuntu20.04:LTSlinux-gcp-5.155.15.0-1081.90~20.04.1UBUNTU-CVE-2025-21701 USN-7459-2
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2025-21701
Ubuntu20.04:LTSlinux-hwe-5.15, linux-lowlatency-hwe-5.155.15.0-138.148~20.04.1UBUNTU-CVE-2025-21701 USN-7455-1
Ubuntu20.04:LTSlinux-ibm-5.155.15.0-1074.77~20.04.1UBUNTU-CVE-2025-21701
Ubuntu20.04:LTSlinux-intel-iotg-5.155.15.0-1077.83~20.04.1UBUNTU-CVE-2025-21701 USN-7459-1
Ubuntu20.04:LTSlinux-oracle-5.155.15.0-1079.85~20.04.1UBUNTU-CVE-2025-21701 USN-7455-4
Ubuntu20.04:LTSlinux-riscv-5.155.15.0-1077.81~20.04.1UBUNTU-CVE-2025-21701
59 more for Ubuntu in the JSON and on Ubuntu's page.
SUSELinux Enterprise High Availability Extension 15 SP6, Linux Enterprise Live Patching 15 SP6, Linux Enterprise Module for Legacy 15 SP6 and 1 morekernel-default6.4.0-150600.23.47.2SUSE-SU-2025:1180-1
SUSELinux Enterprise High Availability Extension 15 SP7, Linux Enterprise Live Patching 15 SP7, Linux Enterprise Module for Legacy 15 SP7 and 1 morekernel-default6.4.0-150700.53.3.1SUSE-SU-2025:01951-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSSkernel-64kb, kernel-source, kernel-default5.14.21-150500.55.121.2SUSE-SU-2025:03344-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Micro 5.5 and 2 morekernel-default-base5.14.21-150500.55.121.2.150500.6.57.2SUSE-SU-2025:03344-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Server 15 SP5-LTSS and 1 morekernel-docs, kernel-syms, kernel-obs-build5.14.21-150500.55.121.1SUSE-SU-2025:03344-1
SUSELinux Enterprise Live Patching 15 SP5kernel-default5.14.21-150500.55.121.2SUSE-SU-2025:03344-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5_Update_1914-150500.2.1SUSE-SU-2025:03186-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5_Update_2014-150500.2.1SUSE-SU-2025:03191-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5_Update_2110-150500.2.1SUSE-SU-2025:03185-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5_Update_236-150500.2.1SUSE-SU-2025:03208-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5_Update_246-150500.2.1SUSE-SU-2025:03194-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5_Update_255-150500.2.1SUSE-SU-2025:03207-1
58 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.6dtb-aarch64, kernel-docs, kernel-syms and 2 more6.4.0-150600.23.47.1SUSE-SU-2025:1180-1
openSUSELeap 15.6kernel-64kb, kernel-debug, kernel-source and 3 more6.4.0-150600.23.47.2SUSE-SU-2025:1180-1
openSUSELeap 15.6kernel-azure, kernel-source-azure6.4.0-150600.8.34.2SUSE-SU-2025:1177-1
openSUSELeap 15.6kernel-default-base6.4.0-150600.23.47.2.150600.12.20.2SUSE-SU-2025:1180-1
openSUSELeap 15.6kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more6.4.0-150600.10.34.1SUSE-SU-2025:1178-1
openSUSELeap 15.6kernel-syms-azure6.4.0-150600.8.34.1SUSE-SU-2025:1177-1
Alpaquita23linux-lts6.1.130-r0BELL-CVE-2025-21701
Alpaquita25linux-lts6.12.41-r0BELL-CVE-2025-21701
Alpaquitastreamlinux-lts6.18.35-r1BELL-CVE-2025-21701

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Low.

Red Hat's statement

A low severity race condition was found in the Linux kernel networking subsystem in the ethtool netlink (ethnl) operations path. When a network device is being unregistered while its configuration is concurrently modified (for example, changing the number of channels via ethtool), the ethnl operation can run after the device unregistration path has already destroyed the associated locks (such as the rss lock), producing a kernel WARNING and operating on an already-destroyed lock, which can result in a denial of service. Triggering this issue requires local access with network administration privileges and winning a narrow race window, and the impact is limited to system availability. For these reasons Red Hat rated this flaw Low severity (CVSS 4.7, AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H), which is meaningfully lower than the upstream CVE record's rating that assumes confidentiality and integrity impacts. According to the current assessment, Red Hat Enterprise Linux 6 and 7 are not affected by this flaw, and the Red Hat Enterprise Linux 8 streams are recorded as out of support scope. Red Hat Enterprise Linux 9, Red Hat Enterprise Linux 10, and Red Hat In-Vehicle OS are affected, and fixes for these products are currently deferred given the low severity of the issue. The residual risk is limited to a local denial of service that requires privileged local access and a narrow race between device unregistration and ethtool operations.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10kernelFix deferred
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelOut of support scope
Red Hat Enterprise Linux 8kernel-rtOut of support scope
Red Hat Enterprise Linux 9kernelFix deferred
Red Hat Enterprise Linux 9kernel-rtFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-21701.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-25-162-05Siemens SIMATIC S7-1500 CPU family2025-06-10EnergySIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON