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

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

- **Severity:** LOW 3.3
- **CVSS:** 3.3 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; Availability impact: None
- **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-26)
- **CWE:** CWE-754
- **Published:** 2024-02-27T09:44:01.411Z
- **Modified:** 2026-06-17T04:15:54.190Z

## Who should check

- Anyone running Linux \>= 7d5cb45655f2e9e37ef75d18f50c0072ef14a38b, \< 407c8708fb1bf2d4afc5337ef50635cf540c364b; \>= 7d5cb45655f2e9e37ef75d18f50c0072ef14a38b, \< 9e4a3f47eff476097e0c7faac04d1831fc70237d; \>= 7d5cb45655f2e9e37ef75d18f50c0072ef14a38b, \< 8d31cbab4c295d7010ebb729e9d02d0e9cece18f; \>= 7d5cb45655f2e9e37ef75d18f50c0072ef14a38b, \< f68599581067e8a5a8901ba9eb270b4519690e26; \>= 7d5cb45655f2e9e37ef75d18f50c0072ef14a38b, \< bb436283e25aaf1533ce061605d23a9564447bdf
- Anyone running Linux 4.15

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

## Affected and fixed versions

- Linux: \>= 7d5cb45655f2e9e37ef75d18f50c0072ef14a38b, \< 407c8708fb1bf2d4afc5337ef50635cf540c364b; \>= 7d5cb45655f2e9e37ef75d18f50c0072ef14a38b, \< 9e4a3f47eff476097e0c7faac04d1831fc70237d; \>= 7d5cb45655f2e9e37ef75d18f50c0072ef14a38b, \< 8d31cbab4c295d7010ebb729e9d02d0e9cece18f; \>= 7d5cb45655f2e9e37ef75d18f50c0072ef14a38b, \< f68599581067e8a5a8901ba9eb270b4519690e26; \>= 7d5cb45655f2e9e37ef75d18f50c0072ef14a38b, \< bb436283e25aaf1533ce061605d23a9564447bdf (cvelist)
- Linux: 4.15 (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-46934. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-46934.md
Affected: Linux >= 7d5cb45655f2e9e37ef75d18f50c0072ef14a38b, < 407c8708fb1bf2d4afc5337ef50635cf540c364b; >= 7d5cb45655f2e9e37ef75d18f50c0072ef14a38b, < 9e4a3f47eff476097e0c7faac04d1831fc70237d; >= 7d5cb45655f2e9e37ef75d18f50c0072ef14a38b, < 8d31cbab4c295d7010ebb729e9d02d0e9cece18f; >= 7d5cb45655f2e9e37ef75d1…
Fixed in: Linux 407c8708fb1bf2d4afc5337ef50635cf540c364b, Linux 9e4a3f47eff476097e0c7faac04d1831fc70237d, Linux 8d31cbab4c295d7010ebb729e9d02d0e9cece18f

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-46934 being exploited?

There is no confirmed exploitation: CVE-2021-46934 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-26).

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

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

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

Linux \>= 7d5cb45655f2e9e37ef75d18f50c0072ef14a38b, \< 407c8708fb1bf2d4afc5337ef50635cf540c364b; \>= 7d5cb45655f2e9e37ef75d18f50c0072ef14a38b, \< 9e4a3f47eff476097e0c7faac04d1831fc70237d; \>= 7d5cb45655f2e9e37ef75d18f50c0072ef14a38b, \< 8d31cbab4c295d7010ebb729e9d02d0e9cece18f; \>= 7d5cb45655f2e9e37ef75d18f50c0072ef14a38b, \< f68599581067e8a5a8901ba9eb270b4519690e26; \>= 7d5cb45655f2e9e37ef75d18f50c0072ef14a38b, \< bb436283e25aaf1533ce061605d23a9564447bdf; Linux 4.15.

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

Yes. Fixed in Linux 407c8708fb1bf2d4afc5337ef50635cf540c364b, Linux 9e4a3f47eff476097e0c7faac04d1831fc70237d, Linux 8d31cbab4c295d7010ebb729e9d02d0e9cece18f. No fix listed yet: follow the vendor advisory.

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

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

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

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