Linux
EDAC/altera: Fix use-after-free in error paths
In 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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 588cb03ea208b303e6dee7e916f329043fd0fc26, < 865f3bdebbc9b34012358c377c9b15154f95f33b
- >= 588cb03ea208b303e6dee7e916f329043fd0fc26, < 87364b19b3fe4e6dbf88d6acf6db4ec87e7dfbba
- >= 588cb03ea208b303e6dee7e916f329043fd0fc26, < eef3b67f9c6782127163b631c9043011a68016e2
Fixed in 865f3bdebbc9b34012358c377c9b15154f95f33b, 87364b19b3fe4e6dbf88d6acf6db4ec87e7dfbba, eef3b67f9c6782127163b631c9043011a68016e2
- 4.7
Fixed in 0, 6.18.56, 7.2.10, 7.3
Mitigation
Upgrade Linux to 865f3bdebbc9b34012358c377c9b15154f95f33b or 87364b19b3fe4e6dbf88d6acf6db4ec87e7dfbba or eef3b67f9c6782127163b631c9043011a68016e2 or later.
Upgrade Linux to 0 or 6.18.56 or 7.2.10 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.