CVE-2025-22119: wifi: cfg80211: init wiphy_work before allocating rfkill fails

Published Apr 16, 2025
·
Updated

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

wifi: cfg80211: init wiphywork before allocating rfkill fails

syzbort reported a uninitialize wiphyworklock in cfg80211devfree. [1]

After rfkill allocation fails, the wiphy release process will be performed, which will cause cfg80211devfree to access the uninitialized wiphywork related data.

Move the initialization of wiphywork to before rfkill initialization to avoid this issue.

[1] INFO: trying to register non-static key. The code is fine but needs lockdep annotation, or maybe you didn't initialize this object before use? turning off the locking correctness validator. CPU: 0 UID: 0 PID: 5935 Comm: syz-executor550 Not tainted 6.14.0-rc6-syzkaller-00103-g4003c9e78778 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: <TASK> dumpstack lib/dumpstack.c:94 [inline] dumpstacklvl+0x116/0x1f0 lib/dumpstack.c:120 assignlockkey kernel/locking/lockdep.c:983 [inline] registerlockclass+0xc39/0x1240 kernel/locking/lockdep.c:1297 lockacquire+0x135/0x3c40 kernel/locking/lockdep.c:5103 lockacquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5851 rawspinlockirqsave include/linux/spinlockapismp.h:110 [inline] rawspinlockirqsave+0x3a/0x60 kernel/locking/spinlock.c:162 cfg80211devfree+0x30/0x3d0 net/wireless/core.c:1196 devicerelease+0xa1/0x240 drivers/base/core.c:2568 kobjectcleanup lib/kobject.c:689 [inline] kobjectrelease lib/kobject.c:720 [inline] krefput include/linux/kref.h:65 [inline] kobjectput+0x1e4/0x5a0 lib/kobject.c:737 putdevice+0x1f/0x30 drivers/base/core.c:3774 wiphyfree net/wireless/core.c:1224 [inline] wiphynewnm+0x1c1f/0x2160 net/wireless/core.c:562 ieee80211allochwnm+0x1b7a/0x2260 net/mac80211/main.c:835 mac80211hwsimnewradio+0x1d6/0x54e0 drivers/net/wireless/virtual/mac80211hwsim.c:5185 hwsimnewradionl+0xb42/0x12b0 drivers/net/wireless/virtual/mac80211hwsim.c:6242 genlfamilyrcvmsgdoit+0x202/0x2f0 net/netlink/genetlink.c:1115 genlfamilyrcvmsg net/netlink/genetlink.c:1195 [inline] genlrcvmsg+0x565/0x800 net/netlink/genetlink.c:1210 netlinkrcvskb+0x16b/0x440 net/netlink/afnetlink.c:2533 genlrcv+0x28/0x40 net/netlink/genetlink.c:1219 netlinkunicastkernel net/netlink/afnetlink.c:1312 [inline] netlinkunicast+0x53c/0x7f0 net/netlink/afnetlink.c:1338 netlinksendmsg+0x8b8/0xd70 net/netlink/afnetlink.c:1882 socksendmsgnosec net/socket.c:718 [inline] socksendmsg net/socket.c:733 [inline] syssendmsg+0xaaf/0xc90 net/socket.c:2573 syssendmsg+0x135/0x1e0 net/socket.c:2627 syssendmsg+0x16e/0x220 net/socket.c:2659 dosyscallx64 arch/x86/entry/common.c:52 [inline] dosyscall64+0xcd/0x250 arch/x86/entry/common.c:83

Close: https://syzkaller.appspot.com/bug?extid=aaf0488c83d1d5f4f029

Affected Software

10 affected componentsFixes available
Linux Kernel
Linux Linux kernel>=6.1.132<6.1.142
Linux Linux kernel>=6.6.84<6.6.95
Linux Linux kernel>=6.12.20<6.12.35
Linux Linux kernel>=6.13.8<6.14
Linux Linux kernel=6.14
Linux Linux kernel=6.14-rc7
Linux Linux kernel=6.14.1
Debian Debian Linux=11.0
debian/linux
6.1.176-16.1.190-16.12.107-16.12.113-17.2.12-17.2.13-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.113-1Fixed in 7.2.12-1Fixed in 7.2.13-1
  2. Compensating control

    Initialize wiphy_work before allocating or initializing rfkill, so cfg80211_dev_free cannot access uninitialized wiphy_work-related data when rfkill allocation fails.

Event History

Apr 16, 2025
CVE Published
via MITRE·02:13 PM
Data Sourced
via MITRE·02:13 PM
Description
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2025-22119?

CVE-2025-22119 is classified as a medium severity vulnerability in the Linux kernel.

2

How do I fix CVE-2025-22119?

To fix CVE-2025-22119, update your Linux kernel to the latest stable version that includes the patch for this vulnerability.

3

What components are affected by CVE-2025-22119?

CVE-2025-22119 affects the cfg80211 subsystem in the Linux kernel.

4

Can CVE-2025-22119 be exploited remotely?

CVE-2025-22119 does not present a direct remote exploitation vector but could lead to local privilege escalation.

5

When was CVE-2025-22119 reported?

CVE-2025-22119 was reported in 2025 and is addressed in recent kernel updates.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203