{"id":"CVE-2026-64145","summary":"wifi: wilc1000: fix dma_buffer leak on bus acquire failure","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: wilc1000: fix dma_buffer leak on bus acquire failure\n\nwilc_wlan_firmware_download() allocates dma_buffer with kmalloc() at\nthe top of the function and uses a 'fail:' label to free it via\nkfree(dma_buffer) on error.\n\nAll later error paths correctly use 'goto fail' to route through this\ncleanup. However, the early failure path after the first acquire_bus()\ncall uses a bare 'return ret;', which leaks dma_buffer whenever the bus\nacquire fails.\n\nReplace the early return with goto fail so the existing cleanup path\nruns.\n\nFound via a custom Coccinelle semantic patch hunting for kmalloc'd\nlocals leaked on early-return error paths in driver firmware-download\ncode.","modified":"2026-07-21T03:47:52.009932218Z","published":"2026-07-19T15:40:36.767Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64145.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/32d7584441b9ecb279a03653b432612546e5efbe"},{"type":"WEB","url":"https://git.kernel.org/stable/c/95c82d498d74c4e587db30021ca1aec90e29b5a5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dd7b6a8671939708cc4b7a46786d8c11297e8f69"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64145.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64145"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"1241c5650ff7a0236cebb89acca8aade48839fd6"},{"fixed":"95c82d498d74c4e587db30021ca1aec90e29b5a5"},{"fixed":"32d7584441b9ecb279a03653b432612546e5efbe"},{"fixed":"dd7b6a8671939708cc4b7a46786d8c11297e8f69"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-64145.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.34"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.0.11"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-64145.json"}}],"schema_version":"1.7.5"}