Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 648233DCDB5 for ; Fri, 24 Apr 2026 14:33:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041239; cv=none; b=InmYHIkMf2j2GLv/Rj+Oy9CWBdCiCj/ISDqkrA9ONUMyenmllc00etxF4S7ECbneuEbp9YeZYaO58r2tTHRCzcwKed+bSOpuIfGBgIVmlKOm5eUjgzeZqJA3CQuBut/VGciN0brtHnkoHyFJLtMXC6S2RP1j5e1m9ERUTgvBRmY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041239; c=relaxed/simple; bh=F2JdNf673kuE4uX+fk/Sym4R1H8N9iRyf7RDLUdXPmU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VmuEjl5OOZ7Y9GzXJOj6o9+WWucDxqi4Teow9VHDrxuL6p8lVuKtOXR2V3S4lVoIQm8GQij5AWP/h+KH8Ur/eD7Ue1CMXKpiQ55O7yDbtTHAiIs1fC73fEwaoAOkps2GO0r2qS10aqanLOIgbEXYiuLMJ83HOaZ0ZC0730XyVUA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dQlIyB0W; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="dQlIyB0W" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE95EC19425; Fri, 24 Apr 2026 14:33:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777041239; bh=F2JdNf673kuE4uX+fk/Sym4R1H8N9iRyf7RDLUdXPmU=; h=From:To:Cc:Subject:Date:Reply-To:From; b=dQlIyB0WPQYRC/Nz4Md1t3Nra3WcU/h5kksBAuT2tQPv43rQBTiw3YIiWVk46Nr9H rusYXI/pkcGN4N2BlhmTRpR3DNXWVQg97mi5W+YL9z5MSIv/JY85ZQzJEwayUo6lij WeOyJUlyhjxGuOqYE6gfkUsBZI8DEXEdmE5Ki04I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31551: wifi: mac80211: Fix static_branch_dec() underflow for aql_disable. Date: Fri, 24 Apr 2026 16:33:34 +0200 Message-ID: <2026042426-CVE-2026-31551-81e8@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=5998; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=R4IrsO4fhRZ2J0wOKXiZN4t4KmfZ7aeFqS+nudszEUI=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmv681aWjeZ/FW+tn0p899n88plhb7Hf/ry0N5G/E9i6 PnlRe7LO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAidX0M8/SW7+iaxct2zM1D 4dTD/PoobstNtxjmWRYpiur85bMT9rx56uR+0aS3RSctAQ== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: Fix static_branch_dec() underflow for aql_disable. syzbot reported static_branch_dec() underflow in aql_enable_write(). [0] The problem is that aql_enable_write() does not serialise concurrent write()s to the debugfs. aql_enable_write() checks static_key_false(&aql_disable.key) and later calls static_branch_inc() or static_branch_dec(), but the state may change between the two calls. aql_disable does not need to track inc/dec. Let's use static_branch_enable() and static_branch_disable(). [0]: val == 0 WARNING: kernel/jump_label.c:311 at __static_key_slow_dec_cpuslocked.part.0+0x107/0x120 kernel/jump_label.c:311, CPU#0: syz.1.3155/20288 Modules linked in: CPU: 0 UID: 0 PID: 20288 Comm: syz.1.3155 Tainted: G U L syzkaller #0 PREEMPT(full) Tainted: [U]=USER, [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/24/2026 RIP: 0010:__static_key_slow_dec_cpuslocked.part.0+0x107/0x120 kernel/jump_label.c:311 Code: f2 c9 ff 5b 5d c3 cc cc cc cc e8 54 f2 c9 ff 48 89 df e8 ac f9 ff ff eb ad e8 45 f2 c9 ff 90 0f 0b 90 eb a2 e8 3a f2 c9 ff 90 <0f> 0b 90 eb 97 48 89 df e8 5c 4b 33 00 e9 36 ff ff ff 0f 1f 80 00 RSP: 0018:ffffc9000b9f7c10 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffffffff9b3e5d40 RCX: ffffffff823c57b4 RDX: ffff8880285a0000 RSI: ffffffff823c5846 RDI: ffff8880285a0000 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 000000000000000a R13: 1ffff9200173ef88 R14: 0000000000000001 R15: ffffc9000b9f7e98 FS: 00007f530dd726c0(0000) GS:ffff8881245e3000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000001140 CR3: 000000007cc4a000 CR4: 00000000003526f0 Call Trace: __static_key_slow_dec_cpuslocked kernel/jump_label.c:297 [inline] __static_key_slow_dec kernel/jump_label.c:321 [inline] static_key_slow_dec+0x7c/0xc0 kernel/jump_label.c:336 aql_enable_write+0x2b2/0x310 net/mac80211/debugfs.c:343 short_proxy_write+0x133/0x1a0 fs/debugfs/file.c:383 vfs_write+0x2aa/0x1070 fs/read_write.c:684 ksys_pwrite64 fs/read_write.c:793 [inline] __do_sys_pwrite64 fs/read_write.c:801 [inline] __se_sys_pwrite64 fs/read_write.c:798 [inline] __x64_sys_pwrite64+0x1eb/0x250 fs/read_write.c:798 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f530cf9aeb9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f530dd72028 EFLAGS: 00000246 ORIG_RAX: 0000000000000012 RAX: ffffffffffffffda RBX: 00007f530d215fa0 RCX: 00007f530cf9aeb9 RDX: 0000000000000003 RSI: 0000000000000000 RDI: 0000000000000010 RBP: 00007f530d008c1f R08: 0000000000000000 R09: 0000000000000000 R10: 4200000000000005 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f530d216038 R14: 00007f530d215fa0 R15: 00007ffde89fb978 The Linux kernel CVE team has assigned CVE-2026-31551 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit e908435e402aff23c9b0b3c59c7cd12b08b681b0 and fixed in 5.15.203 with commit 787152497ac763deab16f6f4b7ce79aaeb3eb7e8 Issue introduced in 5.12 with commit e908435e402aff23c9b0b3c59c7cd12b08b681b0 and fixed in 6.1.167 with commit 8bb90ff77326c34e75b573b1febdd9586fec5aba Issue introduced in 5.12 with commit e908435e402aff23c9b0b3c59c7cd12b08b681b0 and fixed in 6.6.130 with commit 256f7d4c11235d0569f78413c41dc89d2dc1557c Issue introduced in 5.12 with commit e908435e402aff23c9b0b3c59c7cd12b08b681b0 and fixed in 6.12.78 with commit 29a1a350afcd28a2150bd73b8bd83eac3480f13e Issue introduced in 5.12 with commit e908435e402aff23c9b0b3c59c7cd12b08b681b0 and fixed in 6.18.20 with commit 5ba05436f15d16ae7ab04b880e8bf8d440be892b Issue introduced in 5.12 with commit e908435e402aff23c9b0b3c59c7cd12b08b681b0 and fixed in 6.19.10 with commit b24763d32d5b4ada766deca4b42d6766272fef0c Issue introduced in 5.12 with commit e908435e402aff23c9b0b3c59c7cd12b08b681b0 and fixed in 7.0 with commit b94ae8e0d5fe1bdbbfdc3854ff6ce98f6876a828 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-31551 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: net/mac80211/debugfs.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/787152497ac763deab16f6f4b7ce79aaeb3eb7e8 https://git.kernel.org/stable/c/8bb90ff77326c34e75b573b1febdd9586fec5aba https://git.kernel.org/stable/c/256f7d4c11235d0569f78413c41dc89d2dc1557c https://git.kernel.org/stable/c/29a1a350afcd28a2150bd73b8bd83eac3480f13e https://git.kernel.org/stable/c/5ba05436f15d16ae7ab04b880e8bf8d440be892b https://git.kernel.org/stable/c/b24763d32d5b4ada766deca4b42d6766272fef0c https://git.kernel.org/stable/c/b94ae8e0d5fe1bdbbfdc3854ff6ce98f6876a828