net: pds_core: Fix possible double free in error handling path
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.6.226.7.106.8In the Linux kernel, the following vulnerability has been resolved:
net: pds_core: Fix possible double free in error handling path
When auxiliary_device_add() returns error and then calls auxiliary_device_uninit(), Callback function pdsc_auxbus_dev_release calls kfree(padev) to free memory. We shouldn't call kfree(padev) again in the error handling path.
Fix this by cleaning up the redundant kfree() and putting the error handling back to where the errors happened.
From the CVE record · Linux
The Linux kernel pds_core error path can free the same memory twice when auxiliary_device_add() fails. The input does not specify what an attacker could do or whether exploitation requires network access, authentication, or user interaction.
Teams running Linux kernels with the pds_core component should check their versions; affected versions are not specified in the input.