CVE-2024-38554 ax25: Fix reference count leak issue of net_device
A reference count leak in the Linux kernel AX.25 subsystem can cause memory leaks, potentially leading to denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-38554?
CVE-2024-38554 is a medium-severity memory corruption vulnerability in Linux kernel, published on 19 Jun 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Which versions are affected by CVE-2024-38554?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-38554?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2024-38554 being exploited?
There is no known exploitation of CVE-2024-38554 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-38554, DEBIAN-CVE-2024-38554, GHSA-gwmp-87px-jxrx, ROOT-OS-DEBIAN-11-CVE-2024-38554, ROOT-OS-UBUNTU-2204-CVE-2024-38554, UBUNTU-CVE-2024-38554.