CVE-2023-52642·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: media: rc: bpf attach/detach requires write permission Note that bpf attach/detach also requires CAP_NET_ADMIN.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.7.6
- Published
- 2024-04-17
Affected versions
From: 6.7
Until: 6.7.6
Fixed in: 6.7.6
How to fix this CVE
Update your Linux kernel to version 6.7.6 or later to resolve a privilege escalation vulnerability in the remote control (rc) BPF subsystem. This patch enforces proper write permission checks and CAP_NET_ADMIN capability verification when attaching or detaching BPF programs to RC devices, preventing unauthorized users from escalating privileges.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check kernel version with `uname -r` and compare against 6.7.6 — if your version is between 6.7 and 6.7.5, you are vulnerable
- Step 2: Verify RC/BPF subsystem is loaded by running `lsmod | grep rc` and `grep -i bpf /proc/modules`
- Step 3: Search system logs for unauthorized BPF attach/detach attempts: `sudo grep -i 'bpf.*attach\|bpf.*detach\|CAP_NET_ADMIN' /var/log/syslog /var/log/audit/audit.log 2>/dev/null`
- Step 4: After patching, verify the new kernel is running with `uname -r` and confirm it is 6.7.6 or later
FAQ
What is CVE-2023-52642?
This vulnerability is a privilege escalation flaw in the Linux kernel's remote control BPF subsystem that fails to properly enforce write permission and CAP_NET_ADMIN capability requirements when attaching or detaching BPF programs. A local user with low privileges can exploit this to gain elevated access.
Is CVE-2023-52642 being actively exploited?
No, there is no evidence of active exploitation or publicly available exploits for this vulnerability as of the last update. However, it should still be patched promptly due to its high severity and relative ease of exploitation by local users.
What versions of Kernel are affected by CVE-2023-52642?
Linux kernel versions 6.7 through 6.7.5 are vulnerable. Kernel 6.7.6 and later versions include the fix.
How do I check if my server is vulnerable to CVE-2023-52642?
Run `uname -r` to display your kernel version. If it returns a version between 6.7 and 6.7.5 (inclusive), your system is vulnerable and requires immediate patching.
Does Defensia detect CVE-2023-52642?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2023-52642 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/6a9d552483d50953320b9d3b57abdee8d436f23f
- https://git.kernel.org/stable/c/93136132d1b5792bf44151e3494ae3691cd738e8
- https://git.kernel.org/stable/c/93d8109bf182510629bbefc8cd45296d2393987f
- https://git.kernel.org/stable/c/9f6087851ec6dce5b15f694aeaf3e8ec8243224e
- https://git.kernel.org/stable/c/caf2da1d4562de4e35eedec0be2b7f1ee25d83be
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2023-52642. Free for 1 server.
Get started free