{"id":"CVE-2026-23134","published":"2026-02-14T15:14:33Z","modified":"2026-05-11T22:00:47Z","title":"slab: fix kmalloc_nolock() context check for PREEMPT_RT","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nslab: fix kmalloc_nolock() context check for PREEMPT_RT\n\nOn PREEMPT_RT kernels, local_lock becomes a sleeping lock. The current\ncheck in kmalloc_nolock() only verifies we're not in NMI or hard IRQ\ncontext, but misses the case where preemption is disabled.\n\nWhen a BPF program runs from a tracepoint with preemption disabled\n(preempt_count > 0), kmalloc_nolock() proceeds to call\nlocal_lock_irqsave() which attempts to acquire a sleeping lock,\ntriggering:\n\n  BUG: sleeping function called from invalid context\n  in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 6128\n  preempt_count: 2, expected: 0\n\nFix this by checking !preemptible() on PREEMPT_RT, which directly\nexpresses the constraint that we cannot take a sleeping lock when\npreemption is disabled. This encompasses the previous checks for NMI\nand hard IRQ contexts while also catching cases where preemption is\ndisabled.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00177,"percentile":0.04331,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/f60ba4a97ae3f94e4818722ed2e4d260bbb17b44","tags":[]},{"url":"https://git.kernel.org/stable/c/99a3e3a1cfc93b8fe318c0a3a5cfb01f1d4ad53c","tags":[]}],"priority":{"score":0.9,"factors":[{"name":"EPSS percentile","points":0.87}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= af92793e52c3a99b828ed4bdd277fd3e11c18d08, < f60ba4a97ae3f94e4818722ed2e4d260bbb17b44",">= af92793e52c3a99b828ed4bdd277fd3e11c18d08, < 99a3e3a1cfc93b8fe318c0a3a5cfb01f1d4ad53c"]},{"vendor":"Linux","product":"Linux","versions":["6.18"]}],"euvd":{"id":"EUVD-2026-5903","exploited":false,"provenance":"source"}}