# CVE-2021-47339: media: v4l2-core: explicitly clear ioctl input data

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.30%, higher than 16% of CVEs (2026-11-30)
- Published: 2024-05-21T14:35:47.683Z
- Modified: 2026-06-17T04:17:14.097Z
- Weaknesses: CWE-908
- 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: v4l2-core: explicitly clear ioctl input data

As seen from a recent syzbot bug report, mistakes in the compat ioctl
implementation can lead to uninitialized kernel stack data getting used
as input for driver ioctl handlers.

The reported bug is now fixed, but it's possible that other related
bugs are still present or get added in the future. As the drivers need
to check user input already, the possible impact is fairly low, but it
might still cause an information leak.

To be on the safe side, always clear the entire ioctl buffer before
calling the conversion handler functions that are meant to initialize
them.

(As written by CVE List.)

## Affected

- Linux Linux: from 8dbcc3fa387c16abfc88a628cf528c439c91b332 before dc02c0b2bd6096f2f3ce63e1fc317aeda05f74d8; from 8dbcc3fa387c16abfc88a628cf528c439c91b332 before bfb48b54db25c3b4ef4bef5e0691464ebc4aa335; from 8dbcc3fa387c16abfc88a628cf528c439c91b332 before 7b53cca764f9b291b7907fcd39d9e66ad728ee0b; 5.11 (not affected: before 5.11; from 5.12.18 up to 5.12.*; from 5.13.3 up to 5.13.*; from 5.14 up to *)
- linux linux_kernel: before 5.12.18; from 5.13 before 5.13.3

## References

- <https://git.kernel.org/stable/c/dc02c0b2bd6096f2f3ce63e1fc317aeda05f74d8> (patch)
- <https://git.kernel.org/stable/c/bfb48b54db25c3b4ef4bef5e0691464ebc4aa335> (patch)
- <https://git.kernel.org/stable/c/7b53cca764f9b291b7907fcd39d9e66ad728ee0b> (patch)

## Sources

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

---

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