# CVE-2021-46934: i2c: validate user data in compat ioctl

- Severity: Low 3.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- 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-27T09:44:01.411Z
- Modified: 2026-06-17T04:15:54.190Z
- Weaknesses: CWE-754
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

i2c: validate user data in compat ioctl

Wrong user data may cause warning in i2c_transfer(), ex: zero msgs.
Userspace should not be able to trigger warnings, so this patch adds
validation checks for user data in compact ioctl to prevent reported
warnings

(As written by CVE List.)

## Affected

- Linux Linux: from 7d5cb45655f2e9e37ef75d18f50c0072ef14a38b before 407c8708fb1bf2d4afc5337ef50635cf540c364b; from 7d5cb45655f2e9e37ef75d18f50c0072ef14a38b before 9e4a3f47eff476097e0c7faac04d1831fc70237d; from 7d5cb45655f2e9e37ef75d18f50c0072ef14a38b before 8d31cbab4c295d7010ebb729e9d02d0e9cece18f; from 7d5cb45655f2e9e37ef75d18f50c0072ef14a38b before f68599581067e8a5a8901ba9eb270b4519690e26; from 7d5cb45655f2e9e37ef75d18f50c0072ef14a38b before bb436283e25aaf1533ce061605d23a9564447bdf; 4.15 (not affected: before 4.15; from 4.19.224 up to 4.19.*; from 5.4.170 up to 5.4.*; from 5.10.90 up to 5.10.*; from 5.15.13 up to 5.15.*; from 5.16 up to *)
- linux linux_kernel: from 4.15.0 before 4.19.224; from 4.20.0 before 5.4.170; from 5.5.0 before 5.10.90; from 5.11.0 before 5.15.13

## References

- <https://git.kernel.org/stable/c/407c8708fb1bf2d4afc5337ef50635cf540c364b> (patch)
- <https://git.kernel.org/stable/c/9e4a3f47eff476097e0c7faac04d1831fc70237d> (patch)
- <https://git.kernel.org/stable/c/8d31cbab4c295d7010ebb729e9d02d0e9cece18f> (patch)
- <https://git.kernel.org/stable/c/f68599581067e8a5a8901ba9eb270b4519690e26> (patch)
- <https://git.kernel.org/stable/c/bb436283e25aaf1533ce061605d23a9564447bdf> (patch)

## Sources

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

---

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