Linux kernel use-after-free in Altera EDAC error paths
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.567.2.107.3In the Linux kernel, the following vulnerability has been resolved:
EDAC/altera: Fix use-after-free in error paths
In both altr_edac_a10_device_add() and altr_portb_setup(), the error path freed the dci structure before releasing the devres group. Since the managed single and double bit IRQ handlers use altdev(dci->pvt_info) as their data, an IRQ firing between freeing dci and unregistering the IRQs could dereference the freed memory.
Release the devres group first so the managed IRQs are unregistered before the dci structure is freed.
From the CVE record · Linux
The Linux kernel’s EDAC/altera code has a use-after-free in the error paths of altr_edac_a10_device_add() and altr_portb_setup(). If an IRQ fires after the dci structure is freed but before the managed IRQ handlers are unregistered, a handler can dereference freed memory. The input does not specify an attacker action, access requirements, or user interaction.
Engineers running Linux kernels with the affected EDAC/altera code should check their kernel versions; affected versions are not specified.