CVE-2023-52509·Kernel vulnerability
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().
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.5.8
- Published
- 2024-03-02
Affected versions
From: 6.2
Until: 6.5.8
Fixed in: 6.5.8
How to fix this CVE
Update your Linux kernel to version 6.5.8 or later to resolve a use-after-free vulnerability in the Ravb network driver. This flaw can lead to memory corruption when the driver's timeout handler accesses freed memory during module removal. Apply the patch through your distribution's kernel update mechanism immediately.
sudo dnf update kernelDefensia detects this vulnerability
How to check if you are affected
- Run `uname -r` to display the currently running kernel version and verify it is 6.5.8 or later
- Check if Ravb driver is loaded with `lsmod | grep ravb` — presence indicates potential exposure on systems with affected kernel versions
- Search system logs for driver crash patterns: `grep -i 'ravb\|use-after-free\|UAF' /var/log/kern.log /var/log/messages` to identify exploitation attempts
- Confirm patch application by comparing kernel build date: `cat /proc/version` should show build date after the fix release date (June 2023 onwards for 6.5.8)
FAQ
What is CVE-2023-52509?
CVE-2023-52509 is a use-after-free vulnerability in the Linux kernel's Ravb Ethernet driver where the timeout work handler may access memory after it has been freed during device removal, potentially causing system crashes or memory corruption.
Is CVE-2023-52509 being actively exploited?
No, CVE-2023-52509 is not listed as actively exploited according to CISA's Known Exploited Vulnerabilities catalog, and no public exploit code is currently available.
What versions of Kernel are affected by CVE-2023-52509?
Linux kernel versions 6.2 through 6.5.7 are affected; the vulnerability is resolved in kernel version 6.5.8 and later.
How do I check if my server is vulnerable to CVE-2023-52509?
Run `uname -r` to check your kernel version — if it reports a version between 6.2 and 6.5.7, your system is vulnerable and requires immediate kernel update.
Does Defensia detect CVE-2023-52509?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2023-52509 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/105abd68ad8f781985113aee2e92e0702b133705
- https://git.kernel.org/stable/c/3971442870713de527684398416970cf025b4f89
- https://git.kernel.org/stable/c/616761cf9df9af838c0a1a1232a69322a9eb67e6
- https://git.kernel.org/stable/c/65d34cfd4e347054eb4193bc95d9da7eaa72dee5
- https://git.kernel.org/stable/c/6f6fa8061f756aedb93af12a8a5d3cf659127965
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2023-52509. Free for 1 server.
Get started free