cxl/region: Fix use-after-free in find_pos_and_ways() error path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
8ad454d3050a40fd616d481e48d1aebb27d9951e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
cxl/region: Fix use-after-free in find_pos_and_ways() error path
The error path releases its reference to a switch decoder before logging an error that includes the decoder name. If the released reference is the last one, the decoder can be freed before the error message accesses its name.
Drop the reference after the error is reported.
From the CVE record · Linux
The Linux kernel's cxl/region code can access a freed switch decoder name while logging an error in find_pos_and_ways(). This occurs if the error path drops the decoder's last reference before logging; the input does not specify attacker capabilities or access requirements.
Engineers running Linux kernels with cxl/region code should check their versions; affected versions are not specified.