{"id":"CVE-2024-56593","published":"2024-12-27T14:51:00Z","modified":"2026-05-11T20:55:27Z","title":"wifi: brcmfmac: Fix oops due to NULL pointer dereference in brcmf_sdiod_sglist_rw()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: brcmfmac: Fix oops due to NULL pointer dereference in brcmf_sdiod_sglist_rw()\n\nThis patch fixes a NULL pointer dereference bug in brcmfmac that occurs\nwhen a high 'sd_sgentry_align' value applies (e.g. 512) and a lot of queued SKBs\nare sent from the pkt queue.\n\nThe problem is the number of entries in the pre-allocated sgtable, it is\nnents = max(rxglom_size, txglom_size) + max(rxglom_size, txglom_size) >> 4 + 1.\nGiven the default [rt]xglom_size=32 it's actually 35 which is too small.\nWorst case, the pkt queue can end up with 64 SKBs. This occurs when a new SKB\nis added for each original SKB if tailroom isn't enough to hold tail_pad.\nAt least one sg entry is needed for each SKB. So, eventually the \"skb_queue_walk loop\"\nin brcmf_sdiod_sglist_rw may run out of sg entries. This makes sg_next return\nNULL and this causes the oops.\n\nThe patch sets nents to max(rxglom_size, txglom_size) * 2 to be able handle\nthe worst-case.\nBtw. this requires only 64-35=29 * 16 (or 20 if CONFIG_NEED_SG_DMA_LENGTH) = 464\nadditional bytes of memory.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00242,"percentile":0.1565,"provenance":"source"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"references":[{"url":"https://git.kernel.org/stable/c/342f87d263462c2670b77ea9a32074cab2ac6fa1","tags":[]},{"url":"https://git.kernel.org/stable/c/7522d7d745d13fbeff3350fe6aa56c8dae263571","tags":[]},{"url":"https://git.kernel.org/stable/c/dfb3f9d3f602602de208da7bdcc0f6d5ee74af68","tags":[]},{"url":"https://git.kernel.org/stable/c/67a25ea28f8ec1da8894f2f115d01d3becf67dc7","tags":[]},{"url":"https://git.kernel.org/stable/c/07c020c6d14d29e5a3ea4e4576b8ecf956a80834","tags":[]},{"url":"https://git.kernel.org/stable/c/34941321b516bd7c6103bd01287d71a1804d19d3","tags":[]},{"url":"https://git.kernel.org/stable/c/857282b819cbaa0675aaab1e7542e2c0579f52d7","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":[]}],"priority":{"score":7.0,"factors":[{"name":"EPSS percentile","points":3.13},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 342f87d263462c2670b77ea9a32074cab2ac6fa1",">= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 7522d7d745d13fbeff3350fe6aa56c8dae263571",">= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < dfb3f9d3f602602de208da7bdcc0f6d5ee74af68",">= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 67a25ea28f8ec1da8894f2f115d01d3becf67dc7",">= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 07c020c6d14d29e5a3ea4e4576b8ecf956a80834",">= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 34941321b516bd7c6103bd01287d71a1804d19d3",">= af1fa210f4fc6e304b859b386a3c8a266b1110ab, < 857282b819cbaa0675aaab1e7542e2c0579f52d7"]},{"vendor":"Linux","product":"Linux","versions":["3.15"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-01T20:01:39.392025Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-53241","exploited":false,"provenance":"source"}}