dmaengine: ptdma: Fix the error handling path in pt_core_init()
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 |
|
|
5.15.255.16.115.17In the Linux kernel, the following vulnerability has been resolved:
dmaengine: ptdma: Fix the error handling path in pt_core_init()
In order to free resources correctly in the error handling path of pt_core_init(), 2 goto's have to be switched. Otherwise, some resources will leak and we will try to release things that have not been allocated yet.
Also move a dev_err() to a place where it is more meaningful.
From the CVE record · Linux
The Linux kernel's ptdma initialization error path can leak resources and attempt to release resources that were never allocated. The input does not specify how an attacker could trigger this path or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the ptdma component should check their versions; affected versions are not specified.