# CVE-2021-46943: media: staging/intel-ipu3: Fix set_fmt error handling

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-02-27T18:40:29.903Z
- Modified: 2026-06-17T04:15:56.080Z
- Weaknesses: CWE-131
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

(As written by CVE List.)

## Affected

- Linux Linux: from 6d5f26f2e045f2377b524516194657c00efbbce8 before a03fb1e8a110658215a4cefc3e2ad53279e496a6; from 6d5f26f2e045f2377b524516194657c00efbbce8 before c6b81b897f6f9445d57f8d47c4e060ec21556137; from 6d5f26f2e045f2377b524516194657c00efbbce8 before 34892ea938387d83ffcfb7775ec55f0f80767916; from 6d5f26f2e045f2377b524516194657c00efbbce8 before 6fb617e37a39db0a3eca4489431359d0bdf3b9bc; from 6d5f26f2e045f2377b524516194657c00efbbce8 before ad91849996f9dd79741a961fd03585a683b08356; 5.2 (not affected: before 5.2; from 5.4.118 up to 5.4.*; from 5.10.36 up to 5.10.*; from 5.11.20 up to 5.11.*; from 5.12.3 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 5.2.0 before 5.4.118; from 5.5.0 before 5.10.36; from 5.11.0 before 5.11.20; from 5.12.0 before 5.12.3

## References

- <https://git.kernel.org/stable/c/a03fb1e8a110658215a4cefc3e2ad53279e496a6> (patch)
- <https://git.kernel.org/stable/c/c6b81b897f6f9445d57f8d47c4e060ec21556137> (patch)
- <https://git.kernel.org/stable/c/34892ea938387d83ffcfb7775ec55f0f80767916> (patch)
- <https://git.kernel.org/stable/c/6fb617e37a39db0a3eca4489431359d0bdf3b9bc> (patch)
- <https://git.kernel.org/stable/c/ad91849996f9dd79741a961fd03585a683b08356> (patch)

## Sources

- CVE List: [CVE-2021-46943](https://www.cve.org/CVERecord?id=CVE-2021-46943), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-46943](https://nvd.nist.gov/vuln/detail/CVE-2021-46943), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-46943 · Whole record: https://cve.day/CVE-2021-46943.json · Rebuilt by cve.day 2026-11-25T22:58:08.579Z
