{"id":"CVE-2026-98492","state":"PUBLISHED","title":"net: macb: fix dma_alloc_coherent() leak on macb_alloc() error paths","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: macb: fix dma_alloc_coherent() leak on macb_alloc() error paths\n\nFix 3 leaks in macb_alloc() error paths:\n- Tx buffer allocated but crossing a 4G boundary: Tx leaked.\n- Rx buffer allocation fails: Tx leaked.\n- Rx buffer allocated but crossing a 4G boundary: Tx & Rx leaked.\n\nThis is because our error handling calls macb_free(bp) which in turn\nfrees the buffers stored in bp->queues[0], but nothing has been stored\nin there. Fix by storing allocated buffers into bp->queues[0] ASAP.","publishedAt":"2026-10-18T15:16:21.208Z","updatedAt":"2026-10-19T09:20:29.361Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"78d901897b3cae06b38f54e48a2378cf9da21175","status":"affected","lessThan":"bda487567d0b7b15dfa876511085c0666b9efad5","versionType":"git"},{"version":"78d901897b3cae06b38f54e48a2378cf9da21175","status":"affected","lessThan":"259e6cbb6a097da8ced544ee92a6fbde35aa1338","versionType":"git"},{"version":"78d901897b3cae06b38f54e48a2378cf9da21175","status":"affected","lessThan":"23d42b9a3bcd55b17d3b371544fedc708c2397e9","versionType":"git"},{"version":"982a4d9a2e12b693f684eff943043a607628d871","status":"affected","versionType":"git"},{"version":"6.17.3","status":"affected","lessThan":"6.18","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/cadence/macb_main.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.55","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.9","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","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/cadence/macb_main.c"]}],"references":["https://git.kernel.org/stable/c/bda487567d0b7b15dfa876511085c0666b9efad5","https://git.kernel.org/stable/c/259e6cbb6a097da8ced544ee92a6fbde35aa1338","https://git.kernel.org/stable/c/23d42b9a3bcd55b17d3b371544fedc708c2397e9"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:43.249Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/98xxx/CVE-2026-98492.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-98492","state":"PUBLISHED","datePublished":"2026-10-18T15:16:21.208Z","dateUpdated":"2026-10-19T09:20:29.361Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.353Z"},"containers":{"cna":{"title":"net: macb: fix dma_alloc_coherent() leak on macb_alloc() error paths","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: macb: fix dma_alloc_coherent() leak on macb_alloc() error paths\n\nFix 3 leaks in macb_alloc() error paths:\n- Tx buffer allocated but crossing a 4G boundary: Tx leaked.\n- Rx buffer allocation fails: Tx leaked.\n- Rx buffer allocated but crossing a 4G boundary: Tx & Rx leaked.\n\nThis is because our error handling calls macb_free(bp) which in turn\nfrees the buffers stored in bp->queues[0], but nothing has been stored\nin there. Fix by storing allocated buffers into bp->queues[0] ASAP."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"78d901897b3cae06b38f54e48a2378cf9da21175","status":"affected","lessThan":"bda487567d0b7b15dfa876511085c0666b9efad5","versionType":"git"},{"version":"78d901897b3cae06b38f54e48a2378cf9da21175","status":"affected","lessThan":"259e6cbb6a097da8ced544ee92a6fbde35aa1338","versionType":"git"},{"version":"78d901897b3cae06b38f54e48a2378cf9da21175","status":"affected","lessThan":"23d42b9a3bcd55b17d3b371544fedc708c2397e9","versionType":"git"},{"version":"982a4d9a2e12b693f684eff943043a607628d871","status":"affected","versionType":"git"},{"version":"6.17.3","status":"affected","lessThan":"6.18","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/cadence/macb_main.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.55","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.9","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","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/cadence/macb_main.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/bda487567d0b7b15dfa876511085c0666b9efad5"},{"url":"https://git.kernel.org/stable/c/259e6cbb6a097da8ced544ee92a6fbde35aa1338"},{"url":"https://git.kernel.org/stable/c/23d42b9a3bcd55b17d3b371544fedc708c2397e9"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T09:20:29.361Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"6.18.55"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.2.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}