{"id":"CVE-2024-56593","state":"PUBLISHED","title":"wifi: brcmfmac: Fix oops due to NULL pointer dereference in brcmf_sdiod_sglist_rw()","description":"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.","publishedAt":"2024-12-27T14:51:00.466Z","updatedAt":"2026-05-11T20:55:27.627Z","severity":{"score":5.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"af1fa210f4fc6e304b859b386a3c8a266b1110ab","status":"affected","lessThan":"342f87d263462c2670b77ea9a32074cab2ac6fa1","versionType":"git"},{"version":"af1fa210f4fc6e304b859b386a3c8a266b1110ab","status":"affected","lessThan":"7522d7d745d13fbeff3350fe6aa56c8dae263571","versionType":"git"},{"version":"af1fa210f4fc6e304b859b386a3c8a266b1110ab","status":"affected","lessThan":"dfb3f9d3f602602de208da7bdcc0f6d5ee74af68","versionType":"git"},{"version":"af1fa210f4fc6e304b859b386a3c8a266b1110ab","status":"affected","lessThan":"67a25ea28f8ec1da8894f2f115d01d3becf67dc7","versionType":"git"},{"version":"af1fa210f4fc6e304b859b386a3c8a266b1110ab","status":"affected","lessThan":"07c020c6d14d29e5a3ea4e4576b8ecf956a80834","versionType":"git"},{"version":"af1fa210f4fc6e304b859b386a3c8a266b1110ab","status":"affected","lessThan":"34941321b516bd7c6103bd01287d71a1804d19d3","versionType":"git"},{"version":"af1fa210f4fc6e304b859b386a3c8a266b1110ab","status":"affected","lessThan":"857282b819cbaa0675aaab1e7542e2c0579f52d7","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.15","versionType":"semver"},{"version":"5.4.287","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.231","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.174","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.120","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.66","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.5","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c"]}],"references":["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","https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"],"weaknesses":["CWE-476"],"ingestedAt":"2026-10-29T20:08:12.933Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/56xxx/CVE-2024-56593.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-56593","state":"PUBLISHED","datePublished":"2024-12-27T14:51:00.466Z","dateUpdated":"2026-05-11T20:55:27.627Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-12-27T14:03:06.003Z"},"containers":{"cna":{"title":"wifi: brcmfmac: Fix oops due to NULL pointer dereference in brcmf_sdiod_sglist_rw()","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"af1fa210f4fc6e304b859b386a3c8a266b1110ab","status":"affected","lessThan":"342f87d263462c2670b77ea9a32074cab2ac6fa1","versionType":"git"},{"version":"af1fa210f4fc6e304b859b386a3c8a266b1110ab","status":"affected","lessThan":"7522d7d745d13fbeff3350fe6aa56c8dae263571","versionType":"git"},{"version":"af1fa210f4fc6e304b859b386a3c8a266b1110ab","status":"affected","lessThan":"dfb3f9d3f602602de208da7bdcc0f6d5ee74af68","versionType":"git"},{"version":"af1fa210f4fc6e304b859b386a3c8a266b1110ab","status":"affected","lessThan":"67a25ea28f8ec1da8894f2f115d01d3becf67dc7","versionType":"git"},{"version":"af1fa210f4fc6e304b859b386a3c8a266b1110ab","status":"affected","lessThan":"07c020c6d14d29e5a3ea4e4576b8ecf956a80834","versionType":"git"},{"version":"af1fa210f4fc6e304b859b386a3c8a266b1110ab","status":"affected","lessThan":"34941321b516bd7c6103bd01287d71a1804d19d3","versionType":"git"},{"version":"af1fa210f4fc6e304b859b386a3c8a266b1110ab","status":"affected","lessThan":"857282b819cbaa0675aaab1e7542e2c0579f52d7","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.15","versionType":"semver"},{"version":"5.4.287","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.231","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.174","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.120","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.66","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.5","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/342f87d263462c2670b77ea9a32074cab2ac6fa1"},{"url":"https://git.kernel.org/stable/c/7522d7d745d13fbeff3350fe6aa56c8dae263571"},{"url":"https://git.kernel.org/stable/c/dfb3f9d3f602602de208da7bdcc0f6d5ee74af68"},{"url":"https://git.kernel.org/stable/c/67a25ea28f8ec1da8894f2f115d01d3becf67dc7"},{"url":"https://git.kernel.org/stable/c/07c020c6d14d29e5a3ea4e4576b8ecf956a80834"},{"url":"https://git.kernel.org/stable/c/34941321b516bd7c6103bd01287d71a1804d19d3"},{"url":"https://git.kernel.org/stable/c/857282b819cbaa0675aaab1e7542e2c0579f52d7"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T20:55:27.627Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.15","versionEndExcluding":"5.4.287"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.15","versionEndExcluding":"5.10.231"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.15","versionEndExcluding":"5.15.174"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.15","versionEndExcluding":"6.1.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.15","versionEndExcluding":"6.6.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.15","versionEndExcluding":"6.12.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.15","versionEndExcluding":"6.13"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"id":"CVE-2024-56593","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2025-10-01T20:01:39.392025Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-476","lang":"en","type":"CWE","description":"CWE-476 NULL Pointer Dereference"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-01T20:07:14.320Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T20:50:17.021Z"}}]}}}