CVE-2023-52483·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: mctp: perform route lookups under a RCU read-side lock Our current route lookups (mctp_route_lookup and mctp_route_lookup_null) traverse the net's route list without the RCU read lock held. This means the route lookup is subject to preemption, resulting in an potential grace period expiry, and so an eventual kfree() while we still have the route pointer. Add the proper read-side critical section locks around the route lookups, preventing premption and a possible parallel kfree. The remaining net->mctp.routes accesses are already under a rcu_read_lock, or protected by the RTNL for updates. Based on an analysis from Sili Luo <rootlab@huawei.com>, where introducing a delay in the route lookup could cause a UAF on simultaneous sendmsg() and route deletion.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.5.8
- Published
- 2024-02-29
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 MCTP route lookups. This vulnerability occurs when RCU read-side locks are missing during route traversal, allowing concurrent route deletion to cause memory corruption. Apply the kernel security patch immediately on systems running kernel versions 6.2 through 6.5.7.
sudo dnf update kernelDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version with `uname -r` and verify if it falls within 6.2.x to 6.5.7 range
- Step 2: Verify MCTP support is enabled by checking if `/proc/net/mctp` exists or checking kernel config with `grep CONFIG_MCTP /boot/config-$(uname -r)`
- Step 3: Search system logs for UAF-related crashes using `dmesg | grep -i 'use-after-free\|uaf\|kasan'` and `journalctl -xe | grep -i mctp`
- Step 4: After patching, confirm the new kernel version with `uname -r` and verify it is 6.5.8 or later, then reboot if necessary
FAQ
What is CVE-2023-52483?
This vulnerability is a use-after-free condition in the Linux kernel's MCTP (Management Component Transport Protocol) subsystem caused by missing RCU read-side critical section locks during route lookups. An attacker with local access can trigger simultaneous sendmsg() calls and route deletions to cause memory corruption and potential privilege escalation.
Is CVE-2023-52483 being actively exploited?
No, this vulnerability is not listed on CISA's Known Exploited Vulnerabilities catalog and no public exploits are available, though the vulnerability requires local access to exploit.
What versions of Kernel are affected by CVE-2023-52483?
Linux kernel versions 6.2.0 through 6.5.7 are affected; kernel 6.5.8 and later contain the fix.
How do I check if my server is vulnerable to CVE-2023-52483?
Run `uname -r` to check your kernel version; if the output shows a version between 6.2 and 6.5.7, and MCTP is enabled (check with `grep CONFIG_MCTP /boot/config-$(uname -r)`), your system is vulnerable.
Does Defensia detect CVE-2023-52483?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2023-52483 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/1db0724a01b558feb1ecae551782add1951a114a
- https://git.kernel.org/stable/c/2405f64a95a7a094eb24cba9bcfaffd1ea264de4
- https://git.kernel.org/stable/c/5093bbfc10ab6636b32728e35813cbd79feb063c
- https://git.kernel.org/stable/c/6c52b12159049046483fdb0c411a0a1869c41a67
- https://git.kernel.org/stable/c/1db0724a01b558feb1ecae551782add1951a114a
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2023-52483. Free for 1 server.
Get started free