# CVE-2023-53509: qed: allow sleep in qed\_mcp\_trace\_dump()

> 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.22% (percentile 7, 2026-11-26)
- **Published:** 2025-10-01T11:45:58.762Z
- **Modified:** 2026-11-05T21:17:23.523Z

## Who should check

- Anyone running Linux \>= c965db44462919f613973aa618271f6c3f5a1e64, \< e0387f4f39a8d92302273ac356d1f6b2a38160d8; \>= c965db44462919f613973aa618271f6c3f5a1e64, \< 50c81b35df01db12b348c5cbf4b1917dc9a7db54; \>= c965db44462919f613973aa618271f6c3f5a1e64, \< 5401c3e0992860b11fb4b25796e4c4f1921740df
- Anyone running Linux 4.9

## Description

In the Linux kernel, the following vulnerability has been resolved:

qed: allow sleep in qed\_mcp\_trace\_dump()

By default, qed\_mcp\_cmd\_and\_union() delays 10us at a time in a loop
that can run 500K times, so calls to qed\_mcp\_nvm\_rd\_cmd()
may block the current thread for over 5s.
We observed thread scheduling delays over 700ms in production,
with stacktraces pointing to this code as the culprit.

qed\_mcp\_trace\_dump() is called from ethtool, so sleeping is permitted.
It already can sleep in qed\_mcp\_halt(), which calls qed\_mcp\_cmd().
Add a "can sleep" parameter to qed\_find\_nvram\_image() and
qed\_nvram\_read() so they can sleep during qed\_mcp\_trace\_dump().
qed\_mcp\_trace\_get\_meta\_info() and qed\_mcp\_trace\_read\_meta(),
called only by qed\_mcp\_trace\_dump(), allow these functions to sleep.
I can't tell if the other caller (qed\_grc\_dump\_mcp\_hw\_dump()) can sleep,
so keep b\_can\_sleep set to false when it calls these functions.

An example stacktrace from a custom warning we added to the kernel
showing a thread that has not scheduled despite long needing resched:
\[ 2745.362925,17\] ------------\[ cut here \]------------
\[ 2745.362941,17\] WARNING: CPU: 23 PID: 5640 at arch/x86/kernel/irq.c:233 do\_IRQ+0x15e/0x1a0()
\[ 2745.362946,17\] Thread not rescheduled for 744 ms after irq 99
\[ 2745.362956,17\] Modules linked in: ...
\[ 2745.363339,17\] CPU: 23 PID: 5640 Comm: lldpd Tainted: P           O    4.4.182+ \#202104120910+6d1da174272d.61x
\[ 2745.363343,17\] Hardware name: FOXCONN MercuryB/Quicksilver Controller, BIOS H11P1N09 07/08/2020
\[ 2745.363346,17\]  0000000000000000 ffff885ec07c3ed8 ffffffff8131eb2f ffff885ec07c3f20
\[ 2745.363358,17\]  ffffffff81d14f64 ffff885ec07c3f10 ffffffff81072ac2 ffff88be98ed0000
\[ 2745.363369,17\]  0000000000000063 0000000000000174 0000000000000074 0000000000000000
\[ 2745.363379,17\] Call Trace:
\[ 2745.363382,17\]  \<IRQ\>  \[\<ffffffff8131eb2f\>\] dump\_stack+0x8e/0xcf
\[ 2745.363393,17\]  \[\<ffffffff81072ac2\>\] warn\_slowpath\_common+0x82/0xc0
\[ 2745.363398,17\]  \[\<ffffffff81072b4c\>\] warn\_slowpath\_fmt+0x4c/0x50
\[ 2745.363404,17\]  \[\<ffffffff810d5a8e\>\] ? rcu\_irq\_exit+0xae/0xc0
\[ 2745.363408,17\]  \[\<ffffffff817c99fe\>\] do\_IRQ+0x15e/0x1a0
\[ 2745.363413,17\]  \[\<ffffffff817c7ac9\>\] common\_interrupt+0x89/0x89
\[ 2745.363416,17\]  \<EOI\>  \[\<ffffffff8132aa74\>\] ? delay\_tsc+0x24/0x50
\[ 2745.363425,17\]  \[\<ffffffff8132aa04\>\] \_\_udelay+0x34/0x40
\[ 2745.363457,17\]  \[\<ffffffffa04d45ff\>\] qed\_mcp\_cmd\_and\_union+0x36f/0x7d0 \[qed\]
\[ 2745.363473,17\]  \[\<ffffffffa04d5ced\>\] qed\_mcp\_nvm\_rd\_cmd+0x4d/0x90 \[qed\]
\[ 2745.363490,17\]  \[\<ffffffffa04e1dc7\>\] qed\_mcp\_trace\_dump+0x4a7/0x630 \[qed\]
\[ 2745.363504,17\]  \[\<ffffffffa04e2556\>\] ? qed\_fw\_asserts\_dump+0x1d6/0x1f0 \[qed\]
\[ 2745.363520,17\]  \[\<ffffffffa04e4ea7\>\] qed\_dbg\_mcp\_trace\_get\_dump\_buf\_size+0x37/0x80 \[qed\]
\[ 2745.363536,17\]  \[\<ffffffffa04ea881\>\] qed\_dbg\_feature\_size+0x61/0xa0 \[qed\]
\[ 2745.363551,17\]  \[\<ffffffffa04eb427\>\] qed\_dbg\_all\_data\_size+0x247/0x260 \[qed\]
\[ 2745.363560,17\]  \[\<ffffffffa0482c10\>\] qede\_get\_regs\_len+0x30/0x40 \[qede\]
\[ 2745.363566,17\]  \[\<ffffffff816c9783\>\] ethtool\_get\_drvinfo+0xe3/0x190
\[ 2745.363570,17\]  \[\<ffffffff816cc152\>\] dev\_ethtool+0x1362/0x2140
\[ 2745.363575,17\]  \[\<ffffffff8109bcc6\>\] ? finish\_task\_switch+0x76/0x260
\[ 2745.363580,17\]  \[\<ffffffff817c2116\>\] ? \_\_schedule+0x3c6/0x9d0
\[ 2745.363585,17\]  \[\<ffffffff810dbd50\>\] ? hrtimer\_start\_range\_ns+0x1d0/0x370
\[ 2745.363589,17\]  \[\<ffffffff816c1e5b\>\] ? dev\_get\_by\_name\_rcu+0x6b/0x90
\[ 2745.363594,17\]  \[\<ffffffff816de6a8\>\] dev\_ioctl+0xe8/0x710
\[ 2745.363599,17\]  \[\<ffffffff816a58a8\>\] sock\_do\_ioctl+0x48/0x60
\[ 2745.363603,17\]  \[\<ffffffff816a5d87\>\] sock\_ioctl+0x1c7/0x280
\[ 2745.363608,17\]  \[\<ffffffff8111f393\>\] ? seccomp\_phase1+0x83/0x220
\[ 2745.363612,17\]  \[\<ffffffff811e3503\>\] do\_vfs\_ioctl+0x2b3/0x4e0
\[ 2745.363616,17\]  \[\<ffffffff811e3771\>\] SyS\_ioctl+0x41/0x70
\[ 2745.363619,17\]  \[\<ffffffff817c6ffe\>\] entry\_SYSCALL\_64\_fastpath+0x1e/0x79
\[ 2745.363622,17\] ---\[ end trace f6954aa440266421 \]---

## Affected and fixed versions

- Linux: \>= c965db44462919f613973aa618271f6c3f5a1e64, \< e0387f4f39a8d92302273ac356d1f6b2a38160d8; \>= c965db44462919f613973aa618271f6c3f5a1e64, \< 50c81b35df01db12b348c5cbf4b1917dc9a7db54; \>= c965db44462919f613973aa618271f6c3f5a1e64, \< 5401c3e0992860b11fb4b25796e4c4f1921740df (cvelist)
- Linux: 4.9 (cvelist)

## Mitigation

- Upgrade Linux to 5401c3e0992860b11fb4b25796e4c4f1921740df or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53509.md
Affected: Linux >= c965db44462919f613973aa618271f6c3f5a1e64, < e0387f4f39a8d92302273ac356d1f6b2a38160d8; >= c965db44462919f613973aa618271f6c3f5a1e64, < 50c81b35df01db12b348c5cbf4b1917dc9a7db54; >= c965db44462919f613973aa618271f6c3f5a1e64, < 5401c3e0992860b11fb4b25796e4c4f1921740df; Linux 4.9
Fixed in: Linux 50c81b35df01db12b348c5cbf4b1917dc9a7db54, Linux 5401c3e0992860b11fb4b25796e4c4f1921740df

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-2023-53509 being exploited?

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

### How serious is CVE-2023-53509?

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

### Which versions are affected by CVE-2023-53509?

Linux \>= c965db44462919f613973aa618271f6c3f5a1e64, \< e0387f4f39a8d92302273ac356d1f6b2a38160d8; \>= c965db44462919f613973aa618271f6c3f5a1e64, \< 50c81b35df01db12b348c5cbf4b1917dc9a7db54; \>= c965db44462919f613973aa618271f6c3f5a1e64, \< 5401c3e0992860b11fb4b25796e4c4f1921740df; Linux 4.9.

### Is there a fix for CVE-2023-53509?

Yes. Fixed in Linux 50c81b35df01db12b348c5cbf4b1917dc9a7db54, Linux 5401c3e0992860b11fb4b25796e4c4f1921740df. Upgrade Linux to 5401c3e0992860b11fb4b25796e4c4f1921740df or later.

### How do I check if I'm affected by CVE-2023-53509?

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/e0387f4f39a8d92302273ac356d1f6b2a38160d8>
- patch: <https://git.kernel.org/stable/c/50c81b35df01db12b348c5cbf4b1917dc9a7db54>
- patch: <https://git.kernel.org/stable/c/5401c3e0992860b11fb4b25796e4c4f1921740df>

## 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-2023-53509>

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