ax25: Fix reference count leak issue of net_device
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
ef0a2a0565727a48f2e36a2c461f8b1e3a61922d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ax25: Fix reference count leak issue of net_device
There is a reference count leak issue of the object "net_device" in ax25_dev_device_down(). When the ax25 device is shutting down, the ax25_dev_device_down() drops the reference count of net_device one or zero times depending on if we goto unlock_put or not, which will cause memory leak.
In order to solve the above issue, decrease the reference count of net_device after dev->ax25_ptr is set to null.
From the CVE record · Linux
The Linux kernel's AX.25 device shutdown path can leak a net_device reference, causing a memory leak. The input does not describe how an attacker could trigger it or specify access, authentication, or user-interaction requirements.
Engineers running Linux kernels with AX.25 support should check their installations; affected versions are not specified.