In the Linux kernel, the following vulnerability has been resolved:
greybus: gb-beagleplay: fix sleep in atomic context in hdlctxframes()
hdlcappend() calls usleeprange() to wait for circular buffer space, but it is called with txproducerlock (a spinlock) held via hdlctxframes() -> hdlcappendtxframe()/hdlcappendtxu8()/etc. Sleeping while holding a spinlock is illegal and can trigger "BUG: scheduling while atomic".
Fix this by moving the buffer-space wait out of hdlcappend() and into hdlctx_frames(), before the spinlock is acquired. The new flow:
This ensures that sleeping only happens without any lock held, and that frames are either fully enqueued or not written at all.
This bug is found by CodeQL static analysis tool (interprocedural sleep-in-atomic query) and my code review.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46041.json"
}