{"id":"CVE-2022-49749","summary":"i2c: designware: use casting of u64 in clock multiplication to avoid overflow","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ni2c: designware: use casting of u64 in clock multiplication to avoid overflow\n\nIn functions i2c_dw_scl_lcnt() and i2c_dw_scl_hcnt() may have overflow\nby depending on the values of the given parameters including the ic_clk.\nFor example in our use case where ic_clk is larger than one million,\nmultiplication of ic_clk * 4700 will result in 32 bit overflow.\n\nAdd cast of u64 to the calculation to avoid multiplication overflow, and\nuse the corresponding define for divide.","modified":"2026-04-02T08:27:53.652435Z","published":"2025-03-27T16:42:58.426Z","related":["SUSE-SU-2025:01600-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49749.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2f29d780bd691d20e89e5b35d5e6568607115e94"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9f36aae9e80e79b7a6d62227eaa96935166be9fe"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c8c37bc514514999e62a17e95160ed9ebf75ca8d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ed173f77fd28a3e4fffc13b3f28687b9eba61157"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49749.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49749"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2373f6b9744d5373b886f3ce1a985193cca0a356"},{"fixed":"ed173f77fd28a3e4fffc13b3f28687b9eba61157"},{"fixed":"2f29d780bd691d20e89e5b35d5e6568607115e94"},{"fixed":"9f36aae9e80e79b7a6d62227eaa96935166be9fe"},{"fixed":"c8c37bc514514999e62a17e95160ed9ebf75ca8d"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49749.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}