# CVE-2024-56593: wifi: brcmfmac: Fix oops due to NULL pointer dereference in brcmf\_sdiod\_sglist\_rw()

> 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, CNA) `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.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-12-27T14:51:00.466Z
- **Modified:** 2026-06-17T08:12:29.780Z

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

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

- Linux: \>= af1fa210f4fc6e304b859b386a3c8a266b1110ab, \< 342f87d263462c2670b77ea9a32074cab2ac6fa1; \>= af1fa210f4fc6e304b859b386a3c8a266b1110ab, \< 7522d7d745d13fbeff3350fe6aa56c8dae263571; \>= af1fa210f4fc6e304b859b386a3c8a266b1110ab, \< dfb3f9d3f602602de208da7bdcc0f6d5ee74af68; \>= af1fa210f4fc6e304b859b386a3c8a266b1110ab, \< 67a25ea28f8ec1da8894f2f115d01d3becf67dc7; \>= af1fa210f4fc6e304b859b386a3c8a266b1110ab, \< 07c020c6d14d29e5a3ea4e4576b8ecf956a80834; \>= af1fa210f4fc6e304b859b386a3c8a266b1110ab, \< 34941321b516bd7c6103bd01287d71a1804d19d3; \>= af1fa210f4fc6e304b859b386a3c8a266b1110ab, \< 857282b819cbaa0675aaab1e7542e2c0579f52d7 (cvelist)
- Linux: 3.15 (cvelist)

## Mitigation

- Upgrade Linux to 857282b819cbaa0675aaab1e7542e2c0579f52d7 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

## References

- patch: <https://git.kernel.org/stable/c/342f87d263462c2670b77ea9a32074cab2ac6fa1>
- patch: <https://git.kernel.org/stable/c/7522d7d745d13fbeff3350fe6aa56c8dae263571>
- patch: <https://git.kernel.org/stable/c/dfb3f9d3f602602de208da7bdcc0f6d5ee74af68>
- patch: <https://git.kernel.org/stable/c/67a25ea28f8ec1da8894f2f115d01d3becf67dc7>
- patch: <https://git.kernel.org/stable/c/07c020c6d14d29e5a3ea4e4576b8ecf956a80834>
- patch: <https://git.kernel.org/stable/c/34941321b516bd7c6103bd01287d71a1804d19d3>
- patch: <https://git.kernel.org/stable/c/857282b819cbaa0675aaab1e7542e2c0579f52d7>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>

## 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-2024-56593>

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