CVE-2021-47339

media: v4l2-core: explicitly clear ioctl input data

State
Published
Severity
Not scored
Published
May 21, 2024
Updated
May 11, 2026
Reserved
May 21, 2024

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 8dbcc3fa387c16abfc88a628cf528c439c91b332 to before dc02c0b2bd6096f2f3ce63e1fc317aeda05f74d8Affected
  • 8dbcc3fa387c16abfc88a628cf528c439c91b332 to before bfb48b54db25c3b4ef4bef5e0691464ebc4aa335Affected
  • 8dbcc3fa387c16abfc88a628cf528c439c91b332 to before 7b53cca764f9b291b7907fcd39d9e66ad728ee0bAffected
LinuxLinux
  • 5.11Affected
  • before 5.11Not affected
  • 5.12.18 through 5.12.*Not affected
  • 5.13.3 through 5.13.*Not affected
  • 5.14 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.