CVE-2022-48948·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: uvc: Prevent buffer overflow in setup handler Setup function uvc_function_setup permits control transfer requests with up to 64 bytes of payload (UVC_MAX_REQUEST_SIZE), data stage handler for OUT transfer uses memcpy to copy req->actual bytes to uvc_event->data.data array of size 60. This may result in an overflow of 4 bytes.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.0.15
- Published
- 2024-10-21
Affected versions
From: 5.16
Until: 6.0.15
Fixed in: 6.0.15
How to fix this CVE
Update your Linux kernel to version 6.0.15 or later to patch a buffer overflow vulnerability in the USB gadget UVC (USB Video Class) handler. This vulnerability allows a local authenticated attacker to write 4 bytes beyond the intended buffer boundary via malformed USB control transfer requests. Immediate kernel patching is recommended for systems with USB gadget functionality enabled.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to display your current kernel version and compare against affected range 5.16 to 6.0.15
- Check if USB gadget mode is enabled with 'lsmod | grep usb_f_uvc' — if the module loads, the vulnerable code path is present
- Search kernel logs with 'dmesg | grep -i uvc' or 'journalctl -u kernel | grep -i uvc' for any buffer overflow warnings or memory corruption messages
- After patching, verify the new kernel version with 'uname -r' and confirm it reports 6.0.15 or later
FAQ
What is CVE-2022-48948?
A buffer overflow in the Linux kernel's USB Video Class (UVC) gadget driver that permits writing 4 bytes past the boundary of a 60-byte data array when processing USB control transfer requests up to 64 bytes in size.
Is CVE-2022-48948 being actively exploited?
No, this vulnerability is not listed in the CISA KEV catalog and has no publicly disclosed exploits. However, local code execution is theoretically possible if an attacker can trigger malformed USB requests on a system with UVC gadget functionality.
What versions of Kernel are affected by CVE-2022-48948?
Linux kernel versions 5.16 through 6.0.14 are vulnerable. Version 6.0.15 and all later releases contain the patch.
How do I check if my server is vulnerable to CVE-2022-48948?
Run 'uname -r' and check if your kernel version falls within 5.16.x through 6.0.14. If your version is 6.0.15 or higher, you are patched.
Does Defensia detect CVE-2022-48948?
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-2022-48948 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/06fd17ee92c8f1704c7e54ec0fd50ae0542a49a5
- https://git.kernel.org/stable/c/4972e3528b968665b596b5434764ff8fd9446d35
- https://git.kernel.org/stable/c/4c92670b16727365699fe4b19ed32013bab2c107
- https://git.kernel.org/stable/c/6b41a35b41f77821db24f2d8f66794b390a585c5
- https://git.kernel.org/stable/c/7b1f773277a72f9756d47a41b94e43506cce1954
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2022-48948. Free for 1 server.
Get started free