Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E13FC3859EC for ; Fri, 1 May 2026 14:19:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777645200; cv=none; b=PGBUG1smv0tTNpw7bazfugw6AGPVXYEQaMsh/36fo8HwIXgaYwjYqVOMndP7Opw/EQs7fuq7K2b2z2cbUIIc94L9b8LXbtm+ZCzPtXEub+EpEyY0C+Bvl3qJuoBHVLAFtz0Eza1ouFwgFBm7CGxhtMiZKZ9rSpvICfUWzl2tIIo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777645200; c=relaxed/simple; bh=cJYm0Eszc/ipOKyeBk+kenh2jFu1t6JNru2Mg2jy218=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Em8lpaXJ4zTxYA4z6PlEanebRXqI2aX8ByqQdQCpNvqd0PkC3MAnqldc2S382qK7DD1fvSuEv5J/aYOJZ8cJ/yUSN1ibKROXCuTe7Koiudf1IKn5XlHynsu0UVTWdF4RGfWGh+k/kkHwll3poM22VDdZdCv8/nRkZ+rDa4+rwdA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ThiubRAu; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ThiubRAu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB3CBC2BCB4; Fri, 1 May 2026 14:19:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777645199; bh=cJYm0Eszc/ipOKyeBk+kenh2jFu1t6JNru2Mg2jy218=; h=From:To:Cc:Subject:Date:Reply-To:From; b=ThiubRAukurOhzGHp01Jhvk4W6IhI6TXPoUhN3sUxP0G3nfahuLsLynFkI7ceW0w/ mR2bCstAmkqghYKjhqjmmD5MKtkzWu9qX9m1+x+HWvrX9ZNqGFpClGh+nvFeQV0TYl Agaxl/BsWilq9WiHHhc8RRBsv6Yx8lqNQPmli9rY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43015: net: macb: fix clk handling on PCI glue driver removal Date: Fri, 1 May 2026 16:15:48 +0200 Message-ID: <2026050156-CVE-2026-43015-9063@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=6302; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=aE3vDRSew1SxRzBTjcUKTHC5D5/t2BDFBbuHgFgSQVs=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlftiY83eu+RFT0fYvVFOtzb7KX2PflLTzs37fzV4uEv /gTc9mcjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIvD3DgqvNTRsaVHj8a5Wu dz3/I361bcoBT4b57pdM3uw9Exr5IWb+2+Dl6f+5eYO6AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: net: macb: fix clk handling on PCI glue driver removal platform_device_unregister() may still want to use the registered clks during runtime resume callback. Note that there is a commit d82d5303c4c5 ("net: macb: fix use after free on rmmod") that addressed the similar problem of clk vs platform device unregistration but just moved the bug to another place. Save the pointers to clks into local variables for reuse after platform device is unregistered. BUG: KASAN: use-after-free in clk_prepare+0x5a/0x60 Read of size 8 at addr ffff888104f85e00 by task modprobe/597 CPU: 2 PID: 597 Comm: modprobe Not tainted 6.1.164+ #114 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.16.1-0-g3208b098f51a-prebuilt.qemu.org 04/01/2014 Call Trace: dump_stack_lvl+0x8d/0xba print_report+0x17f/0x496 kasan_report+0xd9/0x180 clk_prepare+0x5a/0x60 macb_runtime_resume+0x13d/0x410 [macb] pm_generic_runtime_resume+0x97/0xd0 __rpm_callback+0xc8/0x4d0 rpm_callback+0xf6/0x230 rpm_resume+0xeeb/0x1a70 __pm_runtime_resume+0xb4/0x170 bus_remove_device+0x2e3/0x4b0 device_del+0x5b3/0xdc0 platform_device_del+0x4e/0x280 platform_device_unregister+0x11/0x50 pci_device_remove+0xae/0x210 device_remove+0xcb/0x180 device_release_driver_internal+0x529/0x770 driver_detach+0xd4/0x1a0 bus_remove_driver+0x135/0x260 driver_unregister+0x72/0xb0 pci_unregister_driver+0x26/0x220 __do_sys_delete_module+0x32e/0x550 do_syscall_64+0x35/0x80 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 Allocated by task 519: kasan_save_stack+0x2c/0x50 kasan_set_track+0x21/0x30 __kasan_kmalloc+0x8e/0x90 __clk_register+0x458/0x2890 clk_hw_register+0x1a/0x60 __clk_hw_register_fixed_rate+0x255/0x410 clk_register_fixed_rate+0x3c/0xa0 macb_probe+0x1d8/0x42e [macb_pci] local_pci_probe+0xd7/0x190 pci_device_probe+0x252/0x600 really_probe+0x255/0x7f0 __driver_probe_device+0x1ee/0x330 driver_probe_device+0x4c/0x1f0 __driver_attach+0x1df/0x4e0 bus_for_each_dev+0x15d/0x1f0 bus_add_driver+0x486/0x5e0 driver_register+0x23a/0x3d0 do_one_initcall+0xfd/0x4d0 do_init_module+0x18b/0x5a0 load_module+0x5663/0x7950 __do_sys_finit_module+0x101/0x180 do_syscall_64+0x35/0x80 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 Freed by task 597: kasan_save_stack+0x2c/0x50 kasan_set_track+0x21/0x30 kasan_save_free_info+0x2a/0x50 __kasan_slab_free+0x106/0x180 __kmem_cache_free+0xbc/0x320 clk_unregister+0x6de/0x8d0 macb_remove+0x73/0xc0 [macb_pci] pci_device_remove+0xae/0x210 device_remove+0xcb/0x180 device_release_driver_internal+0x529/0x770 driver_detach+0xd4/0x1a0 bus_remove_driver+0x135/0x260 driver_unregister+0x72/0xb0 pci_unregister_driver+0x26/0x220 __do_sys_delete_module+0x32e/0x550 do_syscall_64+0x35/0x80 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 The Linux kernel CVE team has assigned CVE-2026-43015 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10.70 with commit 7721221e87d25c9840d9ca6b986dbdc410d5ce2b and fixed in 5.10.253 with commit bf64cae913cdd4821f13d5d1d68900c0891bef69 Issue introduced in 5.15 with commit d82d5303c4c539db86588ffb5dc5b26c3f1513e8 and fixed in 5.15.203 with commit 67f70841a175fa3469119f52d77a3662c07507a2 Issue introduced in 5.15 with commit d82d5303c4c539db86588ffb5dc5b26c3f1513e8 and fixed in 6.1.168 with commit 2d96204e4184d6f7dd2f93c6f218fd0c1f55e9ae Issue introduced in 5.15 with commit d82d5303c4c539db86588ffb5dc5b26c3f1513e8 and fixed in 6.6.134 with commit b3f799cdf830df1782ae463cf15ace35015be99e Issue introduced in 5.15 with commit d82d5303c4c539db86588ffb5dc5b26c3f1513e8 and fixed in 6.12.81 with commit f310a836da90d0f0321b14d446c071af63f9ee4c Issue introduced in 5.15 with commit d82d5303c4c539db86588ffb5dc5b26c3f1513e8 and fixed in 6.18.22 with commit 16ab4c0e2b15df5d33bfcb9ea8e4441b85dd4a57 Issue introduced in 5.15 with commit d82d5303c4c539db86588ffb5dc5b26c3f1513e8 and fixed in 6.19.12 with commit 3496fb9e66f79d4def3bb7ec7563e3eaa33a688f Issue introduced in 5.15 with commit d82d5303c4c539db86588ffb5dc5b26c3f1513e8 and fixed in 7.0 with commit ce8fe5287b87e24e225c342f3b0ec04f0b3680fe Issue introduced in 4.14.249 with commit a7d521cc726f30b8e679a6f36d04b18a8ab3c536 Issue introduced in 4.19.209 with commit 46670fb832ee80943715df618632ca13c2e96f2b Issue introduced in 5.4.150 with commit 1da750d1e2140ef43d64d17f301ff6f41b45541e Issue introduced in 5.14.9 with commit 4ad6f2d23b0f6ac0d3e5f3102a4256d1c86c90f5 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-43015 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/net/ethernet/cadence/macb_pci.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/bf64cae913cdd4821f13d5d1d68900c0891bef69 https://git.kernel.org/stable/c/67f70841a175fa3469119f52d77a3662c07507a2 https://git.kernel.org/stable/c/2d96204e4184d6f7dd2f93c6f218fd0c1f55e9ae https://git.kernel.org/stable/c/b3f799cdf830df1782ae463cf15ace35015be99e https://git.kernel.org/stable/c/f310a836da90d0f0321b14d446c071af63f9ee4c https://git.kernel.org/stable/c/16ab4c0e2b15df5d33bfcb9ea8e4441b85dd4a57 https://git.kernel.org/stable/c/3496fb9e66f79d4def3bb7ec7563e3eaa33a688f https://git.kernel.org/stable/c/ce8fe5287b87e24e225c342f3b0ec04f0b3680fe