CVE-2023-52509 ravb: Fix use-after-free issue in ravb_tx_timeout_work()
A use-after-free vulnerability in the Linux kernel's ravb network driver allows attackers to cause denial of service or potentially execute code via race conditions.
- 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-2023-52509?
CVE-2023-52509 is a high-severity use after free vulnerability in Linux kernel, published on 2 Mar 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:
ravb: Fix use-after-free issue in ravb_tx_timeout_work()
The ravb_stop() should call cancel_work_sync(). Otherwise, ravb_tx_timeout_work() is possible to use the freed priv after ravb_remove() was called like below:
CPU0 CPU1 ravb_tx_timeout() ravb_remove() unregister_netdev() free_netdev(ndev) // free priv ravb_tx_timeout_work() // use priv
unregister_netdev() will call .ndo_stop() so that ravb_stop() is called. And, after phy_stop() is called, netif_carrier_off() is also called. So that .ndo_tx_timeout() will not be called after phy_stop().
Weakness: CWE-416
Which versions are affected by CVE-2023-52509?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-52509?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2023-52509 being exploited?
There is no known exploitation of CVE-2023-52509 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2023-52509, DEBIAN-CVE-2023-52509, GHSA-wgvh-m7hp-9m4m, UBUNTU-CVE-2023-52509.