CVE-2024-56593
wifi: brcmfmac: Fix oops due to NULL pointer dereference in brcmf_sdiod_sglist_rw()
Mitigation
- Upgrade Linux to 857282b819cbaa0675aaab1e7542e2c0579f52d7 or later.
Who should check
- Anyone running Linux >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 342f87d263462c2670b77ea9a32074cab2ac6fa1; >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 7522d7d745d13fbeff3350fe6aa56c8dae263571; >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < dfb3f9d3f602602de208da7bdcc0f6d5ee74af68; >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 67a25ea28f8ec1da8894f2f115d01d3becf67dc7; >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 07c020c6d14d29e5a3ea4e4576b8ecf956a80834; >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 34941321b516bd7c6103bd01287d71a1804d19d3; >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 857282b819cbaa0675aaab1e7542e2c0579f52d7
- Anyone running Linux 3.15
Vulnerability facts
- Affected
- Linux >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 342f87d263462c2670b77ea9a32074cab2ac6fa1; >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 7522d7d745d13fbeff3350fe6aa56c8dae263571; >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < dfb3f9d3f602602de208da7bdcc0f6d5ee74af68; >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 67a25ea28f8ec1da8894f2f115d01d3becf67dc7; >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 07c020c6d14d29e5a3ea4e4576b8ecf956a80834; >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 34941321b516bd7c6103bd01287d71a1804d19d3; >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 857282b819cbaa0675aaab1e7542e2c0579f52d7; Linux 3.15
- Fixed in
- Linux 342f87d263462c2670b77ea9a32074cab2ac6fa1, Linux 7522d7d745d13fbeff3350fe6aa56c8dae263571, Linux 67a25ea28f8ec1da8894f2f115d01d3becf67dc7, Linux 07c020c6d14d29e5a3ea4e4576b8ecf956a80834, Linux 34941321b516bd7c6103bd01287d71a1804d19d3, Linux 857282b819cbaa0675aaab1e7542e2c0579f52d7
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.31% chance of exploitation in 30 days (percentile 16, 2026-11-26)
- CWE
- CWE-476
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: wifi: brcmfmac: Fix oops due to NULL pointer dereference in brcmf_sdiod_sglist_rw() This patch fixes a NULL pointer dereference bug in brcmfmac that occurs when a high 'sd_sgentry_align' value applies (e.g. 512) and a lot of queued SKBs are sent from the pkt queue. The problem is the number of entries in the pre-allocated sgtable, it is nents = max(rxglom_size, txglom_size) + max(rxglom_size, txglom_size) >> 4 + 1. Given the default [rt]xglom_size=32 it's actually 35 which is too small. Worst case, the pkt queue can end up with 64 SKBs. This occurs when a new SKB is added for each original SKB if tailroom isn't enough to hold tail_pad. At least one sg entry is needed for each SKB. So, eventually the "skb_queue_walk loop" in brcmf_sdiod_sglist_rw may run out of sg entries. This makes sg_next return NULL and this causes the oops. The patch sets nents to max(rxglom_size, txglom_size) * 2 to be able handle the worst-case. Btw. this requires only 64-35=29 * 16 (or 20 if CONFIG_NEED_SG_DMA_LENGTH) = 464 additional bytes of memory.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 342f87d263462c2670b77ea9a32074cab2ac6fa1; >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 7522d7d745d13fbeff3350fe6aa56c8dae263571; >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < dfb3f9d3f602602de208da7bdcc0f6d5ee74af68; >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 67a25ea28f8ec1da8894f2f115d01d3becf67dc7; >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 07c020c6d14d29e5a3ea4e4576b8ecf956a80834; >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 34941321b516bd7c6103bd01287d71a1804d19d3; >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 857282b819cbaa0675aaab1e7542e2c0579f52d7 | — | cvelist |
| Linux | 3.15 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-56593. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-56593.md Affected: Linux >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 342f87d263462c2670b77ea9a32074cab2ac6fa1; >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 7522d7d745d13fbeff3350fe6aa56c8dae263571; >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < dfb3f9d3f602602de208da7bdcc0f6d5ee74af68; >= af1fa210f4fc6e304b859b3… Fixed in: Linux 342f87d263462c2670b77ea9a32074cab2ac6fa1, Linux 7522d7d745d13fbeff3350fe6aa56c8dae263571, Linux 67a25ea28f8ec1da8894f2f115d01d3becf67dc7, Linux 07c020c6d14d29e5a3ea4e4576b8ecf956a80834, Linux 34941321b516bd7c6103bd01287d71a1804d19d3, Linux 857282b819cbaa0675aaab1e7542e2c0579f52d7 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.
References
Patches
- https://git.kernel.org/stable/c/342f87d263462c2670b77ea9a32074cab2ac6fa1
- https://git.kernel.org/stable/c/7522d7d745d13fbeff3350fe6aa56c8dae263571
- https://git.kernel.org/stable/c/dfb3f9d3f602602de208da7bdcc0f6d5ee74af68
- https://git.kernel.org/stable/c/67a25ea28f8ec1da8894f2f115d01d3becf67dc7
- https://git.kernel.org/stable/c/07c020c6d14d29e5a3ea4e4576b8ecf956a80834
- https://git.kernel.org/stable/c/34941321b516bd7c6103bd01287d71a1804d19d3
- https://git.kernel.org/stable/c/857282b819cbaa0675aaab1e7542e2c0579f52d7
FAQ
Is CVE-2024-56593 being exploited?
There is no confirmed exploitation: CVE-2024-56593 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-56593?
Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-56593?
Linux >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 342f87d263462c2670b77ea9a32074cab2ac6fa1; >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 7522d7d745d13fbeff3350fe6aa56c8dae263571; >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < dfb3f9d3f602602de208da7bdcc0f6d5ee74af68; >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 67a25ea28f8ec1da8894f2f115d01d3becf67dc7; >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 07c020c6d14d29e5a3ea4e4576b8ecf956a80834; >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 34941321b516bd7c6103bd01287d71a1804d19d3; >= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 857282b819cbaa0675aaab1e7542e2c0579f52d7; Linux 3.15.
Is there a fix for CVE-2024-56593?
Yes. Fixed in Linux 342f87d263462c2670b77ea9a32074cab2ac6fa1, Linux 7522d7d745d13fbeff3350fe6aa56c8dae263571, Linux 67a25ea28f8ec1da8894f2f115d01d3becf67dc7, Linux 07c020c6d14d29e5a3ea4e4576b8ecf956a80834, Linux 34941321b516bd7c6103bd01287d71a1804d19d3, Linux 857282b819cbaa0675aaab1e7542e2c0579f52d7. Upgrade Linux to 857282b819cbaa0675aaab1e7542e2c0579f52d7 or later.
How do I check if I'm affected by CVE-2024-56593?
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.