Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 712A153D9D5 for ; Thu, 17 Sep 2026 16:40:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789663234; cv=none; b=VIA2NYCG8k7WayzRaFjYnqI2ciZf2lvzcpspigj66t/SnxB5TZ+CPeS+4FsKkOkXuPjyE2ICqc+M1RDu+xbtOyBSutSCbmSZzFdrSb+yRMH8fr6LmZsQ/oS5cKftAXecocVGs73ivpLvgmj/Ico6sVt8/hzQS3d3+TjPKsN6ZBw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789663234; c=relaxed/simple; bh=C5avoca5LozobB3ecHdpFIeudlXW0UlV+y7Cc4/Mduw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=im8kg8WAPq11KAMXyBzn2szjcTmemkLYqCx4LcKfaABJ1zzVKcQOsm8xOW5CstC5cVFOcLHepPm3Qn07XRxADcrbzIJQ4MBK4RgUg+q82K55rHK/yOltQEt2/ynMwseYQJWeqrsvtWBLubBhEStB64MNJ6tBtfp7EtTSdEUBWRQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qBHGTkQi; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="qBHGTkQi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C15981F00893; Thu, 17 Sep 2026 16:40:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789663233; bh=PjjWBwdGGKAZGuCc1db49euJL4TbJvAsbZ6f1liA/w4=; h=From:To:Cc:Subject:Date:Reply-To; b=qBHGTkQiOLdoPDxz4Gqw8CdWqiSP/9AjcTr94NBb9NGBIoijTQQwJpjEULg5kQw/R n6QvSsr4F9AvBw24KmxK0c6kvppnjhl8M6RMazgwbE3V326eml3a3e87TyUPLYc+m6 iWFX3J5WCTLLMatBMTXlYjkjHD+acHwHaxZp08VM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-93173: bpf,lsm: Drop bpf_prog_free from sleepable_lsm_hooks Date: Thu, 17 Sep 2026 17:17:30 +0100 Message-ID: <2026091700-CVE-2026-93173-28b8@gregkh> X-Mailer: git-send-email 2.55.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=3302; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=P6+jDfszNadwv5FFMy+16or9Yovykft1rB/gHJ20pWU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBG5wJhRYSX7vMdfgSE66UPn6M+/OiKMJX27p/048q Xw76ptiRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExE5AfDPM2W2NvL/m2teTT5 5YIs339pInJf+xgWzPWIvbcn7HXA0QML4me+Ou4dGzP1IQA= 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: bpf,lsm: Drop bpf_prog_free from sleepable_lsm_hooks __bpf_prog_put_rcu() is the call_rcu() callback for non-sleepable programs. security_bpf_prog_free() called from there fires bpf_prog_free in softirq; if a sleepable LSM prog is attached to that hook, might_fault() BUGs: BUG: sleeping function called from invalid context in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5038 preempt_count: 101, expected: 0 Call Trace: __bpf_prog_enter_sleepable+0x1cd/0x320 kernel/bpf/trampoline.c:1255 bpf_trampoline_6442549705+0x53/0xd7 security_bpf_prog_free+0xde/0x130 security/security.c:5465 __bpf_prog_put_rcu+0xab/0xd0 kernel/bpf/syscall.c:2365 rcu_do_batch kernel/rcu/tree.c:2617 [inline] handle_softirqs+0x236/0x800 kernel/softirq.c:622 The call_rcu/call_rcu_tasks_trace split reflects the freed program's sleepability, not that of any attached observer. security_bpf_prog_free() also frees prog->aux->security, which has to stay after the grace period, so drop bpf_prog_free from sleepable_lsm_hooks rather than move the call. Non-sleepable observers still run there. The Linux kernel CVE team has assigned CVE-2026-93173 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit 1b67772e4e3f16cd647b229cae95fc06d120be08 and fixed in 6.12.110 with commit 2135f661fae7160a7fc603cab43cbc7999e8bfce Issue introduced in 6.9 with commit 1b67772e4e3f16cd647b229cae95fc06d120be08 and fixed in 6.18.52 with commit d5f2f741a900123fbcb7c7c0a002b81306fbe242 Issue introduced in 6.9 with commit 1b67772e4e3f16cd647b229cae95fc06d120be08 and fixed in 7.2.6 with commit 915c2d9d69fc6c5f9f41d12bf4a9c51293aaee62 Issue introduced in 6.9 with commit 1b67772e4e3f16cd647b229cae95fc06d120be08 and fixed in 7.3-rc1 with commit 2ce3f548cfc6a1fe4c53479cf8a21931cdfd51d8 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-93173 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: kernel/bpf/bpf_lsm.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/2135f661fae7160a7fc603cab43cbc7999e8bfce https://git.kernel.org/stable/c/d5f2f741a900123fbcb7c7c0a002b81306fbe242 https://git.kernel.org/stable/c/915c2d9d69fc6c5f9f41d12bf4a9c51293aaee62 https://git.kernel.org/stable/c/2ce3f548cfc6a1fe4c53479cf8a21931cdfd51d8