CVEvulnerability
CVE-2022-49749
5.5 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2025-03-27
- Last modified
- 2026-06-17
- Assigner
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- CVSS 3.1 ([email protected])
- 5.5 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- CVSS 3.1 (134c704f-9b21-4f2e-91b3-4a467353bcc0)
- 5.5 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- 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 configurations
• linux linux kernel (>= 3.2 < 5.10.166)
• linux linux kernel (>= 5.11 < 5.15.91)
• linux linux kernel (>= 5.16 < 6.1.9)
• linux linux kernel 6.2
Related
Weakness · CWE (1)
- CWE-190 Integer Overflow or Wraparound weakness
References
- https://git.kernel.org/stable/c/2f29d780bd691d20e89e5b35d5e6568607115e94 Patch
- https://git.kernel.org/stable/c/9f36aae9e80e79b7a6d62227eaa96935166be9fe Patch
- https://git.kernel.org/stable/c/c8c37bc514514999e62a17e95160ed9ebf75ca8d Patch
- https://git.kernel.org/stable/c/ed173f77fd28a3e4fffc13b3f28687b9eba61157 Patch