cve.bz

CVE-2024-40912 linux linux kernel: Improper Locking

5.5 mediumEPSS 0.2%Fix available

Medium (5.5) 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: wifi: mac80211: Fix deadlock in ieee80211_sta_ps_deliver_wakeup() The ieee80211_sta_ps_deliver_wakeup() function takes sta->ps_lock to synchronizes with ieee80211_tx_h_unicast_ps_buf() which is called from softirq context. However using only spin_lock() to get sta->ps_lock in ieee80211_sta_ps_deliver_wakeup() does not prevent softirq to execute on this same CPU, to run ieee80211_tx_h_unicast_ps_buf() and try to take this same lock ending in deadlock. Below is an example of rcu stall that arises in such situation. rcu: INFO: rcu_sched self-detected stall on CPU rcu: 2-....: (42413413 ticks this GP) idle=b154/1/0x4000000000000000 softirq=1763/1765 fqs=21206996 rcu: (t=42586894 jiffies g=2057 q=362405 ncpus=4) CPU: 2 PID: 719 Comm: wpa_supplicant Tainted: G W 6.4.0-02158-g1b062f552873 #742 Hardware name: RPT (r1) (DT) pstate: 00000005 (nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : queued_spin_lock_slowpath+0x58/0x2d0 lr : invoke_tx_handlers_early+0x5b4/0x5c0 sp : ffff00001ef64660 x29: ffff00001ef64660 x28: ffff000009bc1070 x27: ffff000009bc0ad8 x26: ffff000009bc0900 x25: ffff00001ef647a8 x24: 0000000000000000 x23: ffff000009bc0900 x22: ffff000009bc0900 x21: ffff00000ac0e000 x20: ffff00000a279e00 x19: ffff00001ef646e8 x18: 0000000000000000 x17: ffff800016468000 x16: ffff00001ef608c0 x15: 0010533c93f64f80 x14: 0010395c9faa3946 x13: 0000000000000000 x12: 00000000fa83b2da x11: 000000012edeceea x10: ffff0000010fbe00 x9 : 0000000000895440 x8 : 000000000010533c x7 : ffff00000ad8b740 x6 : ffff00000c350880 x5 : 0000000000000007 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000000 x1 : 0000000000000001 x0 : ffff00000ac0e0e8 Call trace: queued_spin_lock_slowpath+0x58/0x2d0 ieee80211_tx+0x80/0x12c ieee80211_tx_pending+0x110/0x278 tasklet_action_common.constprop.0+0x10c/0x144 tasklet_action+0x20/0x28 _stext+0x11c/0x284 ____do_softirq+0xc/0x14 call_on_irq_stack+0x24/0x34 do_softirq_own_stack+0x18/0x20 do_softirq+0x74/0x7c __local_bh_enable_ip+0xa0/0xa4 _ieee80211_wake_txqs+0x3b0/0x4b8 __ieee80211_wake_queue+0x12c/0x168 ieee80211_add_pending_skbs+0xec/0x138 ieee80211_sta_ps_deliver_wakeup+0x2a4/0x480 ieee80211_mps_sta_status_update.part.0+0xd8/0x11c ieee80211_mps_sta_status_update+0x18/0x24 sta_apply_parameters+0x3bc/0x4c0 ieee80211_change_station+0x1b8/0x2dc nl80211_set_station+0x444/0x49c genl_family_rcv_msg_doit.isra.0+0xa4/0xfc genl_rcv_msg+0x1b0/0x244 netlink_rcv_skb+0x38/0x10c genl_rcv+0x34/0x48 netlink_unicast+0x254/0x2bc netlink_sendmsg+0x190/0x3b4 ____sys_sendmsg+0x1e8/0x218 ___sys_sendmsg+0x68/0x8c __sys_sendmsg+0x44/0x84 __arm64_sys_sendmsg+0x20/0x28 do_el0_svc+0x6c/0xe8 el0_svc+0x14/0x48 el0t_64_sync_handler+0xb0/0xb4 el0t_64_sync+0x14c/0x150 Using spin_lock_bh()/spin_unlock_bh() instead prevents softirq to raise on the same CPU that is holding the lock.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/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; 13th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-09-10. 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-667 Improper Locking
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-2024-40912 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-40912?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-40912?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-2024-40912 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 3.2.56 before 3.3
Linuxfrom 3.4.84 before 3.5
Linuxfrom 3.10.34 before 3.11
Linuxfrom 3.12.15 before 3.13
Linuxfrom 3.13.7 before 3.14
Linux3.14 and later

Fixed in

ProductRelease lineFixed in
Linux4.194.19.317
Linux5.45.4.279
Linux5.105.10.221
Linux5.155.15.162
Linux6.16.1.95
Linux6.66.6.35
Linux6.96.9.6
Linuxlater releases6.10

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11linux5.10.221-1DSA-5730-1
Debian11linux-6.16.1.119-1~deb11u1DLA-4008-1
Debian12linux6.1.99-1DEBIAN-CVE-2024-40912 DSA-5731-1
Debian13, 14linux6.9.7-1DEBIAN-CVE-2024-40912
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2024-40912
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2024-40912
Ubuntu20.04:LTSlinux5.4.0-195.215UBUNTU-CVE-2024-40912 USN-7003-1
Ubuntu20.04:LTSlinux-aws5.4.0-1132.142UBUNTU-CVE-2024-40912 USN-7003-1
Ubuntu20.04:LTSlinux-aws-5.155.15.0-1069.75~20.04.1UBUNTU-CVE-2024-40912 USN-7007-1
Ubuntu20.04:LTSlinux-azure5.4.0-1137.144UBUNTU-CVE-2024-40912 USN-7003-1
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1072.81~20.04.1UBUNTU-CVE-2024-40912 USN-7009-1
Ubuntu20.04:LTSlinux-azure-fde-5.155.15.0-1072.81~20.04.1.1USN-7009-2
Ubuntu20.04:LTSlinux-bluefield5.4.0-1092.99UBUNTU-CVE-2024-40912 USN-7003-1
Ubuntu20.04:LTSlinux-gcp5.4.0-1136.145UBUNTU-CVE-2024-40912 USN-7003-1
Ubuntu20.04:LTSlinux-gcp-5.155.15.0-1068.76~20.04.1UBUNTU-CVE-2024-40912 USN-7007-1
Ubuntu20.04:LTSlinux-gke, linux-riscv, linux-raspi2 and 24 moreno fix listedUBUNTU-CVE-2024-40912
92 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-553.22.1.el8_10RHSA-2024:7000
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-553.22.1.el8_10RHSA-2024:7000
Red Hatenterprise_linux:8::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-553.22.1.rt7.363.el8_10RHSA-2024:7001
Red Hatenterprise_linux:8::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-553.22.1.rt7.363.el8_10RHSA-2024:7001
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 26 more0:5.14.0-427.33.1.el9_4RHSA-2024:5928
Red Hatenterprise_linux:9::appstream, enterprise_linux:9::crb, enterprise_linux:9::nfv and 1 morebpftool-debuginfo0:7.3.0-427.33.1.el9_4RHSA-2024:5928
Red Hatenterprise_linux:9::baseosbpftool, bpftool-debuginfo0:7.3.0-427.33.1.el9_4RHSA-2024:5928
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 43 more0:5.14.0-427.33.1.el9_4RHSA-2024:5928
Red Hatenterprise_linux:9::crblibperf, perf-debuginfo, kernel-debuginfo and 14 more0:5.14.0-427.33.1.el9_4RHSA-2024:5928
Red Hatenterprise_linux:9::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 20 more0:5.14.0-427.33.1.el9_4RHSA-2024:5928
Red Hatenterprise_linux:9::realtimekernel-rt, kernel-rt-core, perf-debuginfo and 18 more0:5.14.0-427.33.1.el9_4RHSA-2024:5928
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Live Patching 12 SP5, Linux Enterprise Workstation Extension 12 SP5kernel-default4.12.14-122.225.1SUSE-SU-2024:2940-1
SUSELinux Enterprise High Availability Extension 15 SP5, Linux Enterprise Live Patching 15 SP5, Linux Enterprise Micro 5.5 and 2 morekernel-default5.14.21-150500.55.73.1SUSE-SU-2024:2939-1
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.22.1SUSE-SU-2024:3383-1
SUSELinux Enterprise Live Patching 12 SP5kgraft-patch-SLE12-SP5_Update_591-8.3.1SUSE-SU-2024:2940-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5-RT_Update_181-150500.11.3.1SUSE-SU-2024:2894-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5_Update_171-150500.11.3.1SUSE-SU-2024:2939-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6-RT_Update_21-150600.1.3.2SUSE-SU-2024:3195-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6_Update_41-150600.13.3.3SUSE-SU-2024:3383-1
SUSELinux Enterprise Micro 5.5kernel-rt, kernel-source-rt5.14.21-150500.13.64.1SUSE-SU-2024:2894-1
SUSELinux Enterprise Micro 5.5, Linux Enterprise Module for Basesystem 15 SP5kernel-default-base5.14.21-150500.55.73.1.150500.6.33.8SUSE-SU-2024:2939-1
SUSELinux Enterprise Module for Basesystem 15 SP5kernel-64kb, kernel-source, kernel-default and 1 more5.14.21-150500.55.73.1SUSE-SU-2024:2939-1
SUSELinux Enterprise Module for Basesystem 15 SP6kernel-64kb, kernel-source, kernel-default and 1 more6.4.0-150600.23.22.1SUSE-SU-2024:3383-1
19 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.5dtb-aarch64, kernel-64kb, kernel-syms and 7 more5.14.21-150500.55.73.1SUSE-SU-2024:2939-1
openSUSELeap 15.5kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150500.33.63.1SUSE-SU-2024:2947-1
openSUSELeap 15.5kernel-docs5.14.21-150500.55.73.2SUSE-SU-2024:2939-1
openSUSELeap 15.5kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.14.21-150500.13.64.1SUSE-SU-2024:2894-1
openSUSELeap 15.5, Leap Micro 5.5kernel-default-base5.14.21-150500.55.73.1.150500.6.33.8SUSE-SU-2024:2939-1
openSUSELeap 15.6dtb-aarch64, kernel-64kb, kernel-docs and 8 more6.4.0-150600.23.22.1SUSE-SU-2024:3383-1
openSUSELeap 15.6kernel-azure, kernel-syms-azure, kernel-source-azure6.4.0-150600.8.11.1SUSE-SU-2024:3194-1
openSUSELeap 15.6kernel-default-base6.4.0-150600.23.22.1.150600.12.8.3SUSE-SU-2024:3383-1
openSUSELeap 15.6kernel-rt, kernel-rt_debug, kernel-source-rt6.4.0-150600.10.8.3SUSE-SU-2024:3195-1
openSUSELeap 15.6kernel-syms-rt6.4.0-150600.10.8.1SUSE-SU-2024:3195-1
openSUSELeap Micro 5.5kernel-default5.14.21-150500.55.73.1SUSE-SU-2024:2939-1
openSUSELeap Micro 5.5kernel-rt5.14.21-150500.13.64.1SUSE-SU-2024:2894-1
AlmaLinux8kernel-rt, kernel-rt-kvm, kernel-rt-core and 9 more4.18.0-553.22.1.rt7.363.el8_10ALSA-2024:7001
AlmaLinux8perf, kernel, bpftool and 22 more4.18.0-553.22.1.el8_10ALSA-2024:7000
AlmaLinux9bpftool7.3.0-427.33.1.el9_4ALSA-2024:5928
AlmaLinux9rv, perf, rtla and 58 more5.14.0-427.33.1.el9_4ALSA-2024:5928
Rocky Linux8kernel0:4.18.0-553.22.1.el8_10RLSA-2024:7000
Rocky Linux8kernel-rt0:4.18.0-553.22.1.rt7.363.el8_10RLSA-2024:7001
Alpaquita23linux-lts6.1.97-r0BELL-CVE-2024-40912
Alpaquita25, streamlinux-lts6.12.41-r0BELL-CVE-2024-40912

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

Red Hat

Red Hat rates this Moderate.

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 8kernel-rt-0:4.18.0-553.22.1.rt7.363.el8_10Fixed 2024-09-24RHSA-2024:7001
Red Hat Enterprise Linux 8kernel-0:4.18.0-553.22.1.el8_10Fixed 2024-09-24RHSA-2024:7000
Red Hat Enterprise Linux 9kernel-0:5.14.0-427.33.1.el9_4Fixed 2024-08-28RHSA-2024:5928
RHOAI-2.13-RHEL-8rhoai/odh-codeflare-operator-rhel8:v2.13.1-1Fixed 2024-10-24RHBA-2024:8413
RHOAI-2.13-RHEL-8rhoai/odh-dashboard-rhel8:v2.13.1-1Fixed 2024-10-24RHBA-2024:8413
RHOAI-2.13-RHEL-8rhoai/odh-data-science-pipelines-argo-argoexec-rhel8:v2.13.1-1Fixed 2024-10-24RHBA-2024:8413
RHOAI-2.13-RHEL-8rhoai/odh-data-science-pipelines-argo-workflowcontroller-rhel8:v2.13.1-1Fixed 2024-10-24RHBA-2024:8413
RHOAI-2.13-RHEL-8rhoai/odh-data-science-pipelines-operator-controller-rhel8:v2.13.1-1Fixed 2024-10-24RHBA-2024:8413
RHOAI-2.13-RHEL-8rhoai/odh-kf-notebook-controller-rhel8:v2.13.1-1Fixed 2024-10-24RHBA-2024:8413
RHOAI-2.13-RHEL-8rhoai/odh-kuberay-operator-controller-rhel8:v2.13.1-1Fixed 2024-10-24RHBA-2024:8413
RHOAI-2.13-RHEL-8rhoai/odh-kueue-controller-rhel8:v2.13.1-1Fixed 2024-10-24RHBA-2024:8413
RHOAI-2.13-RHEL-8rhoai/odh-mlmd-grpc-server-rhel8:v2.13.1-1Fixed 2024-10-24RHBA-2024:8413
RHOAI-2.13-RHEL-8rhoai/odh-ml-pipelines-api-server-rhel8:v2.13.1-1Fixed 2024-10-24RHBA-2024:8413
RHOAI-2.13-RHEL-8rhoai/odh-ml-pipelines-api-server-v2-rhel8:v2.13.1-1Fixed 2024-10-24RHBA-2024:8413
RHOAI-2.13-RHEL-8rhoai/odh-ml-pipelines-artifact-manager-rhel8:v2.13.1-1Fixed 2024-10-24RHBA-2024:8413
RHOAI-2.13-RHEL-8rhoai/odh-ml-pipelines-cache-rhel8:v2.13.1-1Fixed 2024-10-24RHBA-2024:8413
Red Hat Enterprise Linux 6kernelOut of support scope
Red Hat Enterprise Linux 7kernelOut of support scope
Red Hat Enterprise Linux 7kernel-rtOut of support scope
Red Hat Enterprise Linux 9kernel-rtWill not fix
49 more in the JSON and on Red Hat's page.

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-2024-40912.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-25-226-07Siemens Third-Party Components in SINEC OS2025-08-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and Facilitiesnone listednone listed
ICSA-24-102-01Siemens SIMATIC S7-1500 TM MFP2024-04-09Critical ManufacturingSIMATIC S7-1500 TM MFP - GNU/Linux subsystemnone 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-25 Forced Deadlock Likelihood: Low · Severity: High
  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High

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

References

Check your stackJSON