net: macb: fix use after free on rmmod
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 83a77e9ec4150ee4acc635638f7dedd9da523a26 · < d82d5303c4c539db86588ffb5dc5b26c3f1513e8| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: macb: fix use after free on rmmod
plat_dev->dev->platform_data is released by platform_device_unregister(), use of pclk and hclk is a use-after-free. Since device unregister won't need a clk device we adjust the function call sequence to fix this issue.
[ 31.261225] BUG: KASAN: use-after-free in macb_remove+0x77/0xc6 [macb_pci] [ 31.275563] Freed by task 306: [ 30.276782] platform_device_release+0x25/0x80
From the CVE record · Linux
The Linux kernel’s macb driver can access freed platform data when the module is removed with rmmod. This is a local issue triggered during module removal; the input does not specify authentication requirements or user interaction.
Engineers running Linux kernels with the macb driver should check whether their kernel includes the fix; affected versions are not specified.