# CVE-2024-56607: wifi: ath12k: fix atomic calls in ath12k\_mac\_op\_set\_bitrate\_mask()

> 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.29% (percentile 15, 2026-11-26)
- **Published:** 2024-12-27T14:51:12.143Z
- **Modified:** 2026-06-17T08:12:32.133Z

## Who should check

- Anyone running Linux \>= d889913205cf7ebda905b1e62c5867ed4e39f6c2, \< 3ed6b2daa4e9029987885f86835ffbc003d11c01; \>= d889913205cf7ebda905b1e62c5867ed4e39f6c2, \< 2093f062b26805789b73f2af214691475d9baa29; \>= d889913205cf7ebda905b1e62c5867ed4e39f6c2, \< 8fac3266c68a8e647240b8ac8d0b82f1821edf85
- Anyone running Linux 6.3

## Description

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

wifi: ath12k: fix atomic calls in ath12k\_mac\_op\_set\_bitrate\_mask()

When I try to manually set bitrates:

iw wlan0 set bitrates legacy-2.4 1

I get sleeping from invalid context error, see below. Fix that by switching to
use recently introduced ieee80211\_iterate\_stations\_mtx().

Do note that WCN6855 firmware is still crashing, I'm not sure if that firmware
even supports bitrate WMI commands and should we consider disabling
ath12k\_mac\_op\_set\_bitrate\_mask() for WCN6855? But that's for another patch.

BUG: sleeping function called from invalid context at drivers/net/wireless/ath/ath12k/wmi.c:420
in\_atomic(): 0, irqs\_disabled(): 0, non\_block: 0, pid: 2236, name: iw
preempt\_count: 0, expected: 0
RCU nest depth: 1, expected: 0
3 locks held by iw/2236:
 \#0: ffffffffabc6f1d8 (cb\_lock){++++}-{3:3}, at: genl\_rcv+0x14/0x40
 \#1: ffff888138410810 (&rdev-\>wiphy.mtx){+.+.}-{3:3}, at: nl80211\_pre\_doit+0x54d/0x800 \[cfg80211\]
 \#2: ffffffffab2cfaa0 (rcu\_read\_lock){....}-{1:2}, at: ieee80211\_iterate\_stations\_atomic+0x2f/0x200 \[mac80211\]
CPU: 3 UID: 0 PID: 2236 Comm: iw Not tainted 6.11.0-rc7-wt-ath+ \#1772
Hardware name: Intel(R) Client Systems NUC8i7HVK/NUC8i7HVB, BIOS HNKBLi70.86A.0067.2021.0528.1339 05/28/2021
Call Trace:
 \<TASK\>
 dump\_stack\_lvl+0xa4/0xe0
 dump\_stack+0x10/0x20
 \_\_might\_resched+0x363/0x5a0
 ? \_\_alloc\_skb+0x165/0x340
 \_\_might\_sleep+0xad/0x160
 ath12k\_wmi\_cmd\_send+0xb1/0x3d0 \[ath12k\]
 ? ath12k\_wmi\_init\_wcn7850+0xa40/0xa40 \[ath12k\]
 ? \_\_netdev\_alloc\_skb+0x45/0x7b0
 ? \_\_asan\_memset+0x39/0x40
 ? ath12k\_wmi\_alloc\_skb+0xf0/0x150 \[ath12k\]
 ? reacquire\_held\_locks+0x4d0/0x4d0
 ath12k\_wmi\_set\_peer\_param+0x340/0x5b0 \[ath12k\]
 ath12k\_mac\_disable\_peer\_fixed\_rate+0xa3/0x110 \[ath12k\]
 ? ath12k\_mac\_vdev\_stop+0x4f0/0x4f0 \[ath12k\]
 ieee80211\_iterate\_stations\_atomic+0xd4/0x200 \[mac80211\]
 ath12k\_mac\_op\_set\_bitrate\_mask+0x5d2/0x1080 \[ath12k\]
 ? ath12k\_mac\_vif\_chan+0x320/0x320 \[ath12k\]
 drv\_set\_bitrate\_mask+0x267/0x470 \[mac80211\]
 ieee80211\_set\_bitrate\_mask+0x4cc/0x8a0 \[mac80211\]
 ? \_\_this\_cpu\_preempt\_check+0x13/0x20
 nl80211\_set\_tx\_bitrate\_mask+0x2bc/0x530 \[cfg80211\]
 ? nl80211\_parse\_tx\_bitrate\_mask+0x2320/0x2320 \[cfg80211\]
 ? trace\_contention\_end+0xef/0x140
 ? rtnl\_unlock+0x9/0x10
 ? nl80211\_pre\_doit+0x557/0x800 \[cfg80211\]
 genl\_family\_rcv\_msg\_doit+0x1f0/0x2e0
 ? genl\_family\_rcv\_msg\_attrs\_parse.isra.0+0x250/0x250
 ? ns\_capable+0x57/0xd0
 genl\_family\_rcv\_msg+0x34c/0x600
 ? genl\_family\_rcv\_msg\_dumpit+0x310/0x310
 ? \_\_lock\_acquire+0xc62/0x1de0
 ? he\_set\_mcs\_mask.isra.0+0x8d0/0x8d0 \[cfg80211\]
 ? nl80211\_parse\_tx\_bitrate\_mask+0x2320/0x2320 \[cfg80211\]
 ? cfg80211\_external\_auth\_request+0x690/0x690 \[cfg80211\]
 genl\_rcv\_msg+0xa0/0x130
 netlink\_rcv\_skb+0x14c/0x400
 ? genl\_family\_rcv\_msg+0x600/0x600
 ? netlink\_ack+0xd70/0xd70
 ? rwsem\_optimistic\_spin+0x4f0/0x4f0
 ? genl\_rcv+0x14/0x40
 ? down\_read\_killable+0x580/0x580
 ? netlink\_deliver\_tap+0x13e/0x350
 ? \_\_this\_cpu\_preempt\_check+0x13/0x20
 genl\_rcv+0x23/0x40
 netlink\_unicast+0x45e/0x790
 ? netlink\_attachskb+0x7f0/0x7f0
 netlink\_sendmsg+0x7eb/0xdb0
 ? netlink\_unicast+0x790/0x790
 ? \_\_this\_cpu\_preempt\_check+0x13/0x20
 ? selinux\_socket\_sendmsg+0x31/0x40
 ? netlink\_unicast+0x790/0x790
 \_\_sock\_sendmsg+0xc9/0x160
 \_\_\_\_sys\_sendmsg+0x620/0x990
 ? kernel\_sendmsg+0x30/0x30
 ? \_\_copy\_msghdr+0x410/0x410
 ? \_\_kasan\_check\_read+0x11/0x20
 ? mark\_lock+0xe6/0x1470
 \_\_\_sys\_sendmsg+0xe9/0x170
 ? copy\_msghdr\_from\_user+0x120/0x120
 ? \_\_lock\_acquire+0xc62/0x1de0
 ? do\_fault\_around+0x2c6/0x4e0
 ? do\_user\_addr\_fault+0x8c1/0xde0
 ? reacquire\_held\_locks+0x220/0x4d0
 ? do\_user\_addr\_fault+0x8c1/0xde0
 ? \_\_kasan\_check\_read+0x11/0x20
 ? \_\_fdget+0x4e/0x1d0
 ? sockfd\_lookup\_light+0x1a/0x170
 \_\_sys\_sendmsg+0xd2/0x180
 ? \_\_sys\_sendmsg\_sock+0x20/0x20
 ? reacquire\_held\_locks+0x4d0/0x4d0
 ? debug\_smp\_processor\_id+0x17/0x20
 \_\_x64\_sys\_sendmsg+0x72/0xb0
 ? lockdep\_hardirqs\_on+0x7d/0x100
 x64\_sys\_call+0x894/0x9f0
 do\_syscall\_64+0x64/0x130
 entry\_SYSCALL\_64\_after\_
---truncated---

## Affected and fixed versions

- Linux: \>= d889913205cf7ebda905b1e62c5867ed4e39f6c2, \< 3ed6b2daa4e9029987885f86835ffbc003d11c01; \>= d889913205cf7ebda905b1e62c5867ed4e39f6c2, \< 2093f062b26805789b73f2af214691475d9baa29; \>= d889913205cf7ebda905b1e62c5867ed4e39f6c2, \< 8fac3266c68a8e647240b8ac8d0b82f1821edf85 (cvelist)
- Linux: 6.3 (cvelist)

## Mitigation

- Upgrade Linux to 8fac3266c68a8e647240b8ac8d0b82f1821edf85 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-56607.md
Affected: Linux >= d889913205cf7ebda905b1e62c5867ed4e39f6c2, < 3ed6b2daa4e9029987885f86835ffbc003d11c01; >= d889913205cf7ebda905b1e62c5867ed4e39f6c2, < 2093f062b26805789b73f2af214691475d9baa29; >= d889913205cf7ebda905b1e62c5867ed4e39f6c2, < 8fac3266c68a8e647240b8ac8d0b82f1821edf85; Linux 6.3
Fixed in: Linux 3ed6b2daa4e9029987885f86835ffbc003d11c01, Linux 2093f062b26805789b73f2af214691475d9baa29, Linux 8fac3266c68a8e647240b8ac8d0b82f1821edf85

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-56607 being exploited?

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

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

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

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

Linux \>= d889913205cf7ebda905b1e62c5867ed4e39f6c2, \< 3ed6b2daa4e9029987885f86835ffbc003d11c01; \>= d889913205cf7ebda905b1e62c5867ed4e39f6c2, \< 2093f062b26805789b73f2af214691475d9baa29; \>= d889913205cf7ebda905b1e62c5867ed4e39f6c2, \< 8fac3266c68a8e647240b8ac8d0b82f1821edf85; Linux 6.3.

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

Yes. Fixed in Linux 3ed6b2daa4e9029987885f86835ffbc003d11c01, Linux 2093f062b26805789b73f2af214691475d9baa29, Linux 8fac3266c68a8e647240b8ac8d0b82f1821edf85. Upgrade Linux to 8fac3266c68a8e647240b8ac8d0b82f1821edf85 or later.

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

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/3ed6b2daa4e9029987885f86835ffbc003d11c01>
- patch: <https://git.kernel.org/stable/c/2093f062b26805789b73f2af214691475d9baa29>
- patch: <https://git.kernel.org/stable/c/8fac3266c68a8e647240b8ac8d0b82f1821edf85>

## 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-56607>

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