{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-56593","id":"CVE-2024-56593","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 sgtab","descriptionLong":"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.","published":"2024-12-27T14:51:00.466Z","updated":"2026-10-28T02:31:07.371131099Z","reserved":"2024-12-27T14:03:06.003Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"af1fa210f4fc6e304b859b386a3c8a266b1110ab","lessThan":"342f87d263462c2670b77ea9a32074cab2ac6fa1","status":"affected","versionType":"git"},{"version":"af1fa210f4fc6e304b859b386a3c8a266b1110ab","lessThan":"7522d7d745d13fbeff3350fe6aa56c8dae263571","status":"affected","versionType":"git"},{"version":"af1fa210f4fc6e304b859b386a3c8a266b1110ab","lessThan":"dfb3f9d3f602602de208da7bdcc0f6d5ee74af68","status":"affected","versionType":"git"},{"version":"af1fa210f4fc6e304b859b386a3c8a266b1110ab","lessThan":"67a25ea28f8ec1da8894f2f115d01d3becf67dc7","status":"affected","versionType":"git"},{"version":"af1fa210f4fc6e304b859b386a3c8a266b1110ab","lessThan":"07c020c6d14d29e5a3ea4e4576b8ecf956a80834","status":"affected","versionType":"git"},{"version":"af1fa210f4fc6e304b859b386a3c8a266b1110ab","lessThan":"34941321b516bd7c6103bd01287d71a1804d19d3","status":"affected","versionType":"git"},{"version":"af1fa210f4fc6e304b859b386a3c8a266b1110ab","lessThan":"857282b819cbaa0675aaab1e7542e2c0579f52d7","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.15","status":"affected"},{"version":"0","lessThan":"3.15","status":"unaffected","versionType":"semver"},{"version":"5.4.287","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.231","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.174","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.120","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.66","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.5","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.13","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-476"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/342f87d263462c2670b77ea9a32074cab2ac6fa1","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/7522d7d745d13fbeff3350fe6aa56c8dae263571","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/dfb3f9d3f602602de208da7bdcc0f6d5ee74af68","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/67a25ea28f8ec1da8894f2f115d01d3becf67dc7","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/07c020c6d14d29e5a3ea4e4576b8ecf956a80834","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/34941321b516bd7c6103bd01287d71a1804d19d3","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/857282b819cbaa0675aaab1e7542e2c0579f52d7","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":["web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56593.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56593","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00242,"epssPercentile":0.15489,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-56593","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56593","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-56593","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-56593","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}