# CVE-2024-27014: net/mlx5e: Prevent deadlock while disabling aRFS

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 9, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2024-05-01T05:29:46.980Z
- **Modified:** 2026-06-17T07:18:56.470Z

## Who should check

- Anyone running Linux \>= 45bf454ae88414e80b80979ebb2c22bd66ea7d1b, \< 46efa4d5930cf3c2af8c01f75e0a47e4fc045e3b; \>= 45bf454ae88414e80b80979ebb2c22bd66ea7d1b, \< 48c4bb81df19402d4346032353d0795260255e3b; \>= 45bf454ae88414e80b80979ebb2c22bd66ea7d1b, \< 0080bf99499468030248ebd25dd645e487dcecdc; \>= 45bf454ae88414e80b80979ebb2c22bd66ea7d1b, \< fef965764cf562f28afb997b626fc7c3cec99693
- Anyone running Linux 4.7

## Description

In the Linux kernel, the following vulnerability has been resolved:

net/mlx5e: Prevent deadlock while disabling aRFS

When disabling aRFS under the \`priv-\>state\_lock\`, any scheduled
aRFS works are canceled using the \`cancel\_work\_sync\` function,
which waits for the work to end if it has already started.
However, while waiting for the work handler, the handler will
try to acquire the \`state\_lock\` which is already acquired.

The worker acquires the lock to delete the rules if the state
is down, which is not the worker's responsibility since
disabling aRFS deletes the rules.

Add an aRFS state variable, which indicates whether the aRFS is
enabled and prevent adding rules when the aRFS is disabled.

Kernel log:

======================================================
WARNING: possible circular locking dependency detected
6.7.0-rc4\_net\_next\_mlx5\_5483eb2 \#1 Tainted: G          I
------------------------------------------------------
ethtool/386089 is trying to acquire lock:
ffff88810f21ce68 ((work\_completion)(&rule-\>arfs\_work)){+.+.}-{0:0}, at: \_\_flush\_work+0x74/0x4e0

but task is already holding lock:
ffff8884a1808cc0 (&priv-\>state\_lock){+.+.}-{3:3}, at: mlx5e\_ethtool\_set\_channels+0x53/0x200 \[mlx5\_core\]

which lock already depends on the new lock.

the existing dependency chain (in reverse order) is:

-\> \#1 (&priv-\>state\_lock){+.+.}-{3:3}:
       \_\_mutex\_lock+0x80/0xc90
       arfs\_handle\_work+0x4b/0x3b0 \[mlx5\_core\]
       process\_one\_work+0x1dc/0x4a0
       worker\_thread+0x1bf/0x3c0
       kthread+0xd7/0x100
       ret\_from\_fork+0x2d/0x50
       ret\_from\_fork\_asm+0x11/0x20

-\> \#0 ((work\_completion)(&rule-\>arfs\_work)){+.+.}-{0:0}:
       \_\_lock\_acquire+0x17b4/0x2c80
       lock\_acquire+0xd0/0x2b0
       \_\_flush\_work+0x7a/0x4e0
       \_\_cancel\_work\_timer+0x131/0x1c0
       arfs\_del\_rules+0x143/0x1e0 \[mlx5\_core\]
       mlx5e\_arfs\_disable+0x1b/0x30 \[mlx5\_core\]
       mlx5e\_ethtool\_set\_channels+0xcb/0x200 \[mlx5\_core\]
       ethnl\_set\_channels+0x28f/0x3b0
       ethnl\_default\_set\_doit+0xec/0x240
       genl\_family\_rcv\_msg\_doit+0xd0/0x120
       genl\_rcv\_msg+0x188/0x2c0
       netlink\_rcv\_skb+0x54/0x100
       genl\_rcv+0x24/0x40
       netlink\_unicast+0x1a1/0x270
       netlink\_sendmsg+0x214/0x460
       \_\_sock\_sendmsg+0x38/0x60
       \_\_sys\_sendto+0x113/0x170
       \_\_x64\_sys\_sendto+0x20/0x30
       do\_syscall\_64+0x40/0xe0
       entry\_SYSCALL\_64\_after\_hwframe+0x46/0x4e

other info that might help us debug this:

 Possible unsafe locking scenario:

       CPU0                    CPU1
       ----                    ----
  lock(&priv-\>state\_lock);
                               lock((work\_completion)(&rule-\>arfs\_work));
                               lock(&priv-\>state\_lock);
  lock((work\_completion)(&rule-\>arfs\_work));

 \*\*\* DEADLOCK \*\*\*

3 locks held by ethtool/386089:
 \#0: ffffffff82ea7210 (cb\_lock){++++}-{3:3}, at: genl\_rcv+0x15/0x40
 \#1: ffffffff82e94c88 (rtnl\_mutex){+.+.}-{3:3}, at: ethnl\_default\_set\_doit+0xd3/0x240
 \#2: ffff8884a1808cc0 (&priv-\>state\_lock){+.+.}-{3:3}, at: mlx5e\_ethtool\_set\_channels+0x53/0x200 \[mlx5\_core\]

stack backtrace:
CPU: 15 PID: 386089 Comm: ethtool Tainted: G          I        6.7.0-rc4\_net\_next\_mlx5\_5483eb2 \#1
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.13.0-0-gf21b5a4aeb02-prebuilt.qemu.org 04/01/2014
Call Trace:
 \<TASK\>
 dump\_stack\_lvl+0x60/0xa0
 check\_noncircular+0x144/0x160
 \_\_lock\_acquire+0x17b4/0x2c80
 lock\_acquire+0xd0/0x2b0
 ? \_\_flush\_work+0x74/0x4e0
 ? save\_trace+0x3e/0x360
 ? \_\_flush\_work+0x74/0x4e0
 \_\_flush\_work+0x7a/0x4e0
 ? \_\_flush\_work+0x74/0x4e0
 ? \_\_lock\_acquire+0xa78/0x2c80
 ? lock\_acquire+0xd0/0x2b0
 ? mark\_held\_locks+0x49/0x70
 \_\_cancel\_work\_timer+0x131/0x1c0
 ? mark\_held\_locks+0x49/0x70
 arfs\_del\_rules+0x143/0x1e0 \[mlx5\_core\]
 mlx5e\_arfs\_disable+0x1b/0x30 \[mlx5\_core\]
 mlx5e\_ethtool\_set\_channels+0xcb/0x200 \[mlx5\_core\]
 ethnl\_set\_channels+0x28f/0x3b0
 ethnl\_default\_set\_doit+0xec/0x240
 genl\_family\_rcv\_msg\_doit+0xd0/0x120
 genl\_rcv\_msg+0x188/0x2c0
 ? ethn
---truncated---

## Affected and fixed versions

- Linux: \>= 45bf454ae88414e80b80979ebb2c22bd66ea7d1b, \< 46efa4d5930cf3c2af8c01f75e0a47e4fc045e3b; \>= 45bf454ae88414e80b80979ebb2c22bd66ea7d1b, \< 48c4bb81df19402d4346032353d0795260255e3b; \>= 45bf454ae88414e80b80979ebb2c22bd66ea7d1b, \< 0080bf99499468030248ebd25dd645e487dcecdc; \>= 45bf454ae88414e80b80979ebb2c22bd66ea7d1b, \< fef965764cf562f28afb997b626fc7c3cec99693 (cvelist)
- Linux: 4.7 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-27014. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-27014.md
Affected: Linux >= 45bf454ae88414e80b80979ebb2c22bd66ea7d1b, < 46efa4d5930cf3c2af8c01f75e0a47e4fc045e3b; >= 45bf454ae88414e80b80979ebb2c22bd66ea7d1b, < 48c4bb81df19402d4346032353d0795260255e3b; >= 45bf454ae88414e80b80979ebb2c22bd66ea7d1b, < 0080bf99499468030248ebd25dd645e487dcecdc; >= 45bf454ae88414e80b80979…
Fixed in: Linux 46efa4d5930cf3c2af8c01f75e0a47e4fc045e3b, Linux 48c4bb81df19402d4346032353d0795260255e3b, Linux 0080bf99499468030248ebd25dd645e487dcecdc

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-27014 being exploited?

There is no confirmed exploitation: CVE-2024-27014 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-27014?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-27014?

Linux \>= 45bf454ae88414e80b80979ebb2c22bd66ea7d1b, \< 46efa4d5930cf3c2af8c01f75e0a47e4fc045e3b; \>= 45bf454ae88414e80b80979ebb2c22bd66ea7d1b, \< 48c4bb81df19402d4346032353d0795260255e3b; \>= 45bf454ae88414e80b80979ebb2c22bd66ea7d1b, \< 0080bf99499468030248ebd25dd645e487dcecdc; \>= 45bf454ae88414e80b80979ebb2c22bd66ea7d1b, \< fef965764cf562f28afb997b626fc7c3cec99693; Linux 4.7.

### Is there a fix for CVE-2024-27014?

Yes. Fixed in Linux 46efa4d5930cf3c2af8c01f75e0a47e4fc045e3b, Linux 48c4bb81df19402d4346032353d0795260255e3b, Linux 0080bf99499468030248ebd25dd645e487dcecdc. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-27014?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/46efa4d5930cf3c2af8c01f75e0a47e4fc045e3b>
- patch: <https://git.kernel.org/stable/c/48c4bb81df19402d4346032353d0795260255e3b>
- patch: <https://git.kernel.org/stable/c/0080bf99499468030248ebd25dd645e487dcecdc>
- patch: <https://git.kernel.org/stable/c/fef965764cf562f28afb997b626fc7c3cec99693>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DAMSOZXJEPUOXW33WZYWCVAY7Z5S7OOY/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EZ6PJW7VOZ224TD7N4JZNU6KV32ZJ53/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GCBZZEC7L7KTWWAS2NLJK6SO3IZIL4WW/>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-27014>

HTML: <https://flawdb.com/CVE-2024-27014> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-27014>
