CVE-2024-38586 r8169: Fix possible ring buffer corruption on fragmented Tx packets.
A memory corruption vulnerability in the r8169 network driver allows attackers to cause system crashes or potentially execute code via fragmented packets.
- 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-38586?
CVE-2024-38586 is a high-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:
r8169: Fix possible ring buffer corruption on fragmented Tx packets.
An issue was found on the RTL8125b when transmitting small fragmented packets, whereby invalid entries were inserted into the transmit ring buffer, subsequently leading to calls to dma_unmap_single() with a null address.
This was caused by rtl8169_start_xmit() not noticing changes to nr_frags which may occur when small packets are padded (to work around hardware quirks) in rtl8169_tso_csum_v2().
To fix this, postpone inspecting nr_frags until after any padding has been applied.
Weakness: CWE-787
Which versions are affected by CVE-2024-38586?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-38586?
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-38586 being exploited?
There is no known exploitation of CVE-2024-38586 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-38586, DEBIAN-CVE-2024-38586, GHSA-6f25-fxw5-f5mv, UBUNTU-CVE-2024-38586.