CVE-2026-46041 Details
Description
In the Linux kernel, the following vulnerability has been resolved: greybus: gb-beagleplay: fix sleep in atomic context in hdlc_tx_frames() hdlc_append() calls usleep_range() to wait for circular buffer space, but it is called with tx_producer_lock (a spinlock) held via hdlc_tx_frames() -> hdlc_append_tx_frame()/hdlc_append_tx_u8()/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 hdlc_append() and into hdlc_tx_frames(), before the spinlock is acquired. The new flow: 1. Pre-calculate the worst-case encoded frame length. 2. Wait (with sleep) outside the lock until enough space is available, kicking the TX consumer work to drain the buffer. 3. Acquire the spinlock, re-verify space, and write the entire frame atomically. 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.
A vulnerability exists in the Linux kernel's Greybus BeaglePlay driver, specifically within the HDLC transmission functions. The issue arises because the function responsible for appending HDLC data to be transmitted calls a sleep function while holding a spinlock. This practice is illegal and can lead to scheduling errors, as indicated by the 'BUG: scheduling while atomic' message. The vulnerability affects several versions of the Linux kernel.
The vulnerability has been addressed by modifying the HDLC transmission workflow. The buffer-space wait has been moved out of the function that appends data, and into the function that prepares the data for transmission, ensuring that the wait occurs without any locks held. This change has been implemented in the latest version of the Linux kernel.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/51667fe2d9294d66e0228b9f51d1f01b6680a641 | kernel.org | Patch |
| https://git.kernel.org/stable/c/6b526dca0966f2370835765019a54319b78fca8d | kernel.org | Patch |
| https://git.kernel.org/stable/c/9f2b87bcdfed55145acbf932dc12f2c057145cad | kernel.org | Patch |
| https://git.kernel.org/stable/c/b2801647c203a38e013802e9e9616b5bfac64968 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.7, < 6.12.86 >= 6.13, < 6.18.27 >= 6.19, < 7.0.4 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 16, 2026 | Initial Analysis | [email protected] |
| May 27, 2026 | New CVE Received | kernel.org |