CVE-2021-46943·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: media: staging/intel-ipu3: Fix set_fmt error handling If there in an error during a set_fmt, do not overwrite the previous sizes with the invalid config. Without this patch, v4l2-compliance ends up allocating 4GiB of RAM and causing the following OOPs [ 38.662975] ipu3-imgu 0000:00:05.0: swiotlb buffer is full (sz: 4096 bytes) [ 38.662980] DMA: Out of SW-IOMMU space for 4096 bytes at device 0000:00:05.0 [ 38.663010] general protection fault: 0000 [#1] PREEMPT SMP
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.12.3
- Published
- 2024-02-27
Affected versions
From: 5.12.0
Until: 5.12.3
Fixed in: 5.12.3
How to fix this CVE
Update your Linux kernel to version 5.12.3 or later to resolve this error handling vulnerability in the Intel IPU3 media driver. The fix prevents invalid video format configurations from persisting in memory, which was causing excessive memory allocation and system crashes. Apply this update during your next maintenance window, as it requires a kernel reboot to take effect.
sudo dnf update kernelDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your kernel version with: uname -r — if it shows 5.12.0, 5.12.1, or 5.12.2, you are vulnerable
- Step 2: Verify Intel IPU3 driver presence with: lspci | grep -i ipu — look for Intel Image Processing Unit entries
- Step 3: Search system logs for DMA allocation failures: grep -i 'swiotlb buffer is full' /var/log/kern.log or journalctl -b | grep -i 'DMA: Out of SW-IOMMU'
- Step 4: After applying the update, reboot and confirm the new kernel is active: uname -r should show 5.12.3 or higher
FAQ
What is CVE-2021-46943?
This vulnerability exists in the Intel IPU3 media driver where failed video format configuration operations leave invalid memory state, causing subsequent operations to attempt allocating gigabytes of RAM and triggering kernel crashes and memory exhaustion.
Is CVE-2021-46943 being actively exploited?
No, this vulnerability is not listed in CISA's Known Exploited Vulnerabilities catalog and there are no public exploits available. Exploitation requires local access and privileged operations on the video format subsystem.
What versions of Kernel are affected by CVE-2021-46943?
Linux kernel versions 5.12.0 through 5.12.2 are affected. Version 5.12.3 and all later kernel versions contain the fix.
How do I check if my server is vulnerable to CVE-2021-46943?
Run 'uname -r' to check your kernel version — if it is 5.12.0, 5.12.1, or 5.12.2 AND the system has Intel IPU3 hardware (check with 'lspci | grep ipu'), then you are vulnerable.
Does Defensia detect CVE-2021-46943?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2021-46943 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/34892ea938387d83ffcfb7775ec55f0f80767916
- https://git.kernel.org/stable/c/6fb617e37a39db0a3eca4489431359d0bdf3b9bc
- https://git.kernel.org/stable/c/a03fb1e8a110658215a4cefc3e2ad53279e496a6
- https://git.kernel.org/stable/c/ad91849996f9dd79741a961fd03585a683b08356
- https://git.kernel.org/stable/c/c6b81b897f6f9445d57f8d47c4e060ec21556137
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2021-46943. Free for 1 server.
Get started free