# CVE-2021-46943: media: staging/intel-ipu3: Fix set\_fmt error handling

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 9, 2026-11-28)
- **CWE:** CWE-131
- **Published:** 2024-02-27T18:40:29.903Z
- **Modified:** 2026-06-17T04:15:56.080Z

## Who should check

- Anyone running Linux \>= 6d5f26f2e045f2377b524516194657c00efbbce8, \< a03fb1e8a110658215a4cefc3e2ad53279e496a6; \>= 6d5f26f2e045f2377b524516194657c00efbbce8, \< c6b81b897f6f9445d57f8d47c4e060ec21556137; \>= 6d5f26f2e045f2377b524516194657c00efbbce8, \< 34892ea938387d83ffcfb7775ec55f0f80767916; \>= 6d5f26f2e045f2377b524516194657c00efbbce8, \< 6fb617e37a39db0a3eca4489431359d0bdf3b9bc; \>= 6d5f26f2e045f2377b524516194657c00efbbce8, \< ad91849996f9dd79741a961fd03585a683b08356
- Anyone running Linux 5.2

## 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

## Affected and fixed versions

- Linux: \>= 6d5f26f2e045f2377b524516194657c00efbbce8, \< a03fb1e8a110658215a4cefc3e2ad53279e496a6; \>= 6d5f26f2e045f2377b524516194657c00efbbce8, \< c6b81b897f6f9445d57f8d47c4e060ec21556137; \>= 6d5f26f2e045f2377b524516194657c00efbbce8, \< 34892ea938387d83ffcfb7775ec55f0f80767916; \>= 6d5f26f2e045f2377b524516194657c00efbbce8, \< 6fb617e37a39db0a3eca4489431359d0bdf3b9bc; \>= 6d5f26f2e045f2377b524516194657c00efbbce8, \< ad91849996f9dd79741a961fd03585a683b08356 (cvelist)
- Linux: 5.2 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-46943. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-46943.md
Affected: Linux >= 6d5f26f2e045f2377b524516194657c00efbbce8, < a03fb1e8a110658215a4cefc3e2ad53279e496a6; >= 6d5f26f2e045f2377b524516194657c00efbbce8, < c6b81b897f6f9445d57f8d47c4e060ec21556137; >= 6d5f26f2e045f2377b524516194657c00efbbce8, < 34892ea938387d83ffcfb7775ec55f0f80767916; >= 6d5f26f2e045f2377b52451…
Fixed in: Linux 34892ea938387d83ffcfb7775ec55f0f80767916, Linux 6fb617e37a39db0a3eca4489431359d0bdf3b9bc

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-46943 being exploited?

There is no confirmed exploitation: CVE-2021-46943 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2021-46943?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-46943?

Linux \>= 6d5f26f2e045f2377b524516194657c00efbbce8, \< a03fb1e8a110658215a4cefc3e2ad53279e496a6; \>= 6d5f26f2e045f2377b524516194657c00efbbce8, \< c6b81b897f6f9445d57f8d47c4e060ec21556137; \>= 6d5f26f2e045f2377b524516194657c00efbbce8, \< 34892ea938387d83ffcfb7775ec55f0f80767916; \>= 6d5f26f2e045f2377b524516194657c00efbbce8, \< 6fb617e37a39db0a3eca4489431359d0bdf3b9bc; \>= 6d5f26f2e045f2377b524516194657c00efbbce8, \< ad91849996f9dd79741a961fd03585a683b08356; Linux 5.2.

### Is there a fix for CVE-2021-46943?

Yes. Fixed in Linux 34892ea938387d83ffcfb7775ec55f0f80767916, Linux 6fb617e37a39db0a3eca4489431359d0bdf3b9bc. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2021-46943?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-46943>

HTML: <https://flawdb.com/CVE-2021-46943> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-46943>
