{"id":"CVE-2024-50170","state":"PUBLISHED","title":"net: bcmasp: fix potential memory leak in bcmasp_xmit()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: bcmasp: fix potential memory leak in bcmasp_xmit()\n\nThe bcmasp_xmit() returns NETDEV_TX_OK without freeing skb\nin case of mapping fails, add dev_kfree_skb() to fix it.","publishedAt":"2024-11-07T09:31:46.722Z","updatedAt":"2026-08-05T11:42:14.785Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"490cb412007de593e07c1d3e2b1ec4233886707c","status":"affected","lessThan":"7218de0778aefbbbcfe474a55f88bbf6f244627d","versionType":"git"},{"version":"490cb412007de593e07c1d3e2b1ec4233886707c","status":"affected","lessThan":"f689f20d3e09f2d4d0a2c575a9859115a33e68bd","versionType":"git"},{"version":"490cb412007de593e07c1d3e2b1ec4233886707c","status":"affected","lessThan":"fed07d3eb8a8d9fcc0e455175a89bc6445d6faed","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.6.59","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.11.6","status":"unaffected","lessThanOrEqual":"6.11.*","versionType":"semver"},{"version":"6.12","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c"]}],"references":["https://git.kernel.org/stable/c/7218de0778aefbbbcfe474a55f88bbf6f244627d","https://git.kernel.org/stable/c/f689f20d3e09f2d4d0a2c575a9859115a33e68bd","https://git.kernel.org/stable/c/fed07d3eb8a8d9fcc0e455175a89bc6445d6faed"],"weaknesses":["CWE-401"],"ingestedAt":"2026-10-29T20:07:56.516Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/50xxx/CVE-2024-50170.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-50170","state":"PUBLISHED","datePublished":"2024-11-07T09:31:46.722Z","dateUpdated":"2026-08-05T11:42:14.785Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-10-21T19:36:19.963Z"},"containers":{"cna":{"title":"net: bcmasp: fix potential memory leak in bcmasp_xmit()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: bcmasp: fix potential memory leak in bcmasp_xmit()\n\nThe bcmasp_xmit() returns NETDEV_TX_OK without freeing skb\nin case of mapping fails, add dev_kfree_skb() to fix it."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"490cb412007de593e07c1d3e2b1ec4233886707c","status":"affected","lessThan":"7218de0778aefbbbcfe474a55f88bbf6f244627d","versionType":"git"},{"version":"490cb412007de593e07c1d3e2b1ec4233886707c","status":"affected","lessThan":"f689f20d3e09f2d4d0a2c575a9859115a33e68bd","versionType":"git"},{"version":"490cb412007de593e07c1d3e2b1ec4233886707c","status":"affected","lessThan":"fed07d3eb8a8d9fcc0e455175a89bc6445d6faed","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.6.59","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.11.6","status":"unaffected","lessThanOrEqual":"6.11.*","versionType":"semver"},{"version":"6.12","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/7218de0778aefbbbcfe474a55f88bbf6f244627d"},{"url":"https://git.kernel.org/stable/c/f689f20d3e09f2d4d0a2c575a9859115a33e68bd"},{"url":"https://git.kernel.org/stable/c/fed07d3eb8a8d9fcc0e455175a89bc6445d6faed"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - The leak sits in the `ndo_start_xmit` handler of an Ethernet NIC, which is driven by remotely-solicited transmissions — an unauthenticated remote peer flooding the host with ARP/ICMP/TCP triggers a kernel-generated reply through `bcmasp_xmit()` for each packet. This matches how other net-driver/net-stack skb-leak CVEs are scored (e.g. CVE-2026-23453, CVE-2026-43373, CVE-2025-37757).\nAC:L - The attacker drives the vulnerable path at will by generating sustained traffic, and that same flood raises in-flight DMA/swiotlb pressure that produces the `dma_mapping_error()` condition; once a failure occurs the leaked mappings make further failures progressively easier, so the trigger is repeatable rather than dependent on conditions outside the attacker's influence.\nPR:N - No credentials or privileges are needed — a remote unauthenticated attacker merely sends packets that elicit kernel replies, and locally any unprivileged process can transmit on the interface via an ordinary socket.\nUI:N - No victim action is required; the transmit path runs autonomously as the kernel answers received traffic or as any process sends data.\nS:U - The leaked skbs and DMA mappings are kernel resources of the same system and security authority as the vulnerable driver; no VM, IOMMU, or sandbox boundary is crossed.\nC:N - Nothing is disclosed to the attacker — the skb is simply never freed, and no descriptor holding stale data is published to hardware, so there is no out-of-bounds read or information leak.\nI:N - No memory is corrupted or modified: the descriptor ring is rewound and `tx_spb_dma_valid` is left unadvanced, so the hardware never consumes the partially-built entries and no write primitive arises.\nA:H - Each failure permanently leaks a full skb (head plus fragment pages) and its DMA/swiotlb mappings, and the lost DMA resources make further failures more likely, so a sustained remote-driven flood escalates into unbounded kernel memory exhaustion, OOM kills, and system-wide denial of service on the memory-constrained STB/embedded platforms this driver targets."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:42:14.785Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.6.59"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.11.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.12"}]}]}],"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-50170","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2025-10-01T20:19:39.275994Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-401","lang":"en","type":"CWE","description":"CWE-401 Missing Release of Memory after Effective Lifetime"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-01T20:27:11.113Z"}}]}}}