CVE-2022-49749 i2c: designware: use casting of u64 in clock multiplication to avoid overflow
설명
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.
영향 받는 제품 제품 1개
-
해결 버전 있음
Linux
Linux
영향 받는 버전
- 3.2
해결 버전
- 3.2 미만
- 5.10.166 이상
- 5.15.91 이상
- 6.1.9 이상
참고 자료 4건
- git.kernel.org https://git.kernel.org/stable/c/2f29d780bd691d20e89e5b35d5e6568607115e94 (새 창)
- git.kernel.org https://git.kernel.org/stable/c/9f36aae9e80e79b7a6d62227eaa96935166be9fe (새 창)
- git.kernel.org https://git.kernel.org/stable/c/c8c37bc514514999e62a17e95160ed9ebf75ca8d (새 창)
- git.kernel.org https://git.kernel.org/stable/c/ed173f77fd28a3e4fffc13b3f28687b9eba61157 (새 창)