What’s Vulnerable › Vulnerabilities
CVE-2022-49749: i2c: designware: use casting of u64 in clock multiplication to avoid overflow
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-03-27 · updated 2026-06-17
- Weakness: CWE-190
Description
In the Linux kernel, the following vulnerability has been resolved: i2c: designware: use casting of u64 in clock multiplication to avoid overflow In functions i2c_dw_scl_lcnt() and i2c_dw_scl_hcnt() may have overflow by depending on the values of the given parameters including the ic_clk. For example in our use case where ic_clk is larger than one million, multiplication of ic_clk * 4700 will result in 32 bit overflow. Add cast of u64 to the calculation to avoid multiplication overflow, and use the corresponding define for divide.
Affected products
- Linux kernel: from 3.2 before 5.10.166; from 5.11 before 5.15.91; from 5.16 before 6.1.9; 6.2-rc1, 6.2-rc2, 6.2-rc3, 6.2-rc4, 6.2-rc5 — fixed in 5.10.166, 5.15.91, 6.1.9
How to fix
Upgrade to a fixed version: Linux kernel 5.10.166, 5.15.91, 6.1.9. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/2f29d780bd691d20e89e5b35d5e6568607115e94
- https://git.kernel.org/stable/c/9f36aae9e80e79b7a6d62227eaa96935166be9fe
- https://git.kernel.org/stable/c/c8c37bc514514999e62a17e95160ed9ebf75ca8d
- https://git.kernel.org/stable/c/ed173f77fd28a3e4fffc13b3f28687b9eba61157
Get alerted when CVE-2022-49749 or the next vulnerability affects your stack