# CVE-2026-46041: greybus: gb-beagleplay: fix sleep in atomic context in hdlc\_tx\_frames()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.16% (percentile 3, 2026-11-26)
- **Published:** 2026-05-27T12:56:54.418Z
- **Modified:** 2026-06-17T10:52:57.027Z

## Who should check

- Anyone running Linux \>= ec558bbfea671ac020a6dc6be8bf8f0ee556cce0, \< 9f2b87bcdfed55145acbf932dc12f2c057145cad; \>= ec558bbfea671ac020a6dc6be8bf8f0ee556cce0, \< b2801647c203a38e013802e9e9616b5bfac64968; \>= ec558bbfea671ac020a6dc6be8bf8f0ee556cce0, \< 51667fe2d9294d66e0228b9f51d1f01b6680a641; \>= ec558bbfea671ac020a6dc6be8bf8f0ee556cce0, \< 6b526dca0966f2370835765019a54319b78fca8d
- Anyone running Linux 6.7

## 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.

## Affected and fixed versions

- Linux: \>= ec558bbfea671ac020a6dc6be8bf8f0ee556cce0, \< 9f2b87bcdfed55145acbf932dc12f2c057145cad; \>= ec558bbfea671ac020a6dc6be8bf8f0ee556cce0, \< b2801647c203a38e013802e9e9616b5bfac64968; \>= ec558bbfea671ac020a6dc6be8bf8f0ee556cce0, \< 51667fe2d9294d66e0228b9f51d1f01b6680a641; \>= ec558bbfea671ac020a6dc6be8bf8f0ee556cce0, \< 6b526dca0966f2370835765019a54319b78fca8d (cvelist)
- Linux: 6.7 (cvelist)

## Mitigation

- Upgrade Linux to 6b526dca0966f2370835765019a54319b78fca8d or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-46041. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-46041.md
Affected: Linux >= ec558bbfea671ac020a6dc6be8bf8f0ee556cce0, < 9f2b87bcdfed55145acbf932dc12f2c057145cad; >= ec558bbfea671ac020a6dc6be8bf8f0ee556cce0, < b2801647c203a38e013802e9e9616b5bfac64968; >= ec558bbfea671ac020a6dc6be8bf8f0ee556cce0, < 51667fe2d9294d66e0228b9f51d1f01b6680a641; >= ec558bbfea671ac020a6dc6…
Fixed in: Linux 9f2b87bcdfed55145acbf932dc12f2c057145cad, Linux 51667fe2d9294d66e0228b9f51d1f01b6680a641, Linux 6b526dca0966f2370835765019a54319b78fca8d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-46041 being exploited?

There is no confirmed exploitation: CVE-2026-46041 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.16% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-46041?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-46041?

Linux \>= ec558bbfea671ac020a6dc6be8bf8f0ee556cce0, \< 9f2b87bcdfed55145acbf932dc12f2c057145cad; \>= ec558bbfea671ac020a6dc6be8bf8f0ee556cce0, \< b2801647c203a38e013802e9e9616b5bfac64968; \>= ec558bbfea671ac020a6dc6be8bf8f0ee556cce0, \< 51667fe2d9294d66e0228b9f51d1f01b6680a641; \>= ec558bbfea671ac020a6dc6be8bf8f0ee556cce0, \< 6b526dca0966f2370835765019a54319b78fca8d; Linux 6.7.

### Is there a fix for CVE-2026-46041?

Yes. Fixed in Linux 9f2b87bcdfed55145acbf932dc12f2c057145cad, Linux 51667fe2d9294d66e0228b9f51d1f01b6680a641, Linux 6b526dca0966f2370835765019a54319b78fca8d. Upgrade Linux to 6b526dca0966f2370835765019a54319b78fca8d or later.

### How do I check if I'm affected by CVE-2026-46041?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/9f2b87bcdfed55145acbf932dc12f2c057145cad>
- patch: <https://git.kernel.org/stable/c/b2801647c203a38e013802e9e9616b5bfac64968>
- patch: <https://git.kernel.org/stable/c/51667fe2d9294d66e0228b9f51d1f01b6680a641>
- patch: <https://git.kernel.org/stable/c/6b526dca0966f2370835765019a54319b78fca8d>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-46041>

HTML: <https://flawdb.com/CVE-2026-46041> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-46041>
