{"id":"CVE-2025-40293","aliases":["CVE-2025-40293"],"related":[],"kind":"vulnerability","state":"published","title":"iommufd: Don't overflow during division for dirty tracking","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\niommufd: Don't overflow during division for dirty tracking\n\nIf pgshift is 63 then BITS_PER_TYPE(*bitmap->bitmap) * pgsize will overflow\nto 0 and this triggers divide by 0.\n\nIn this case the index should just be 0, so reorganize things to divide\nby shift and avoid hitting any overflows.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\niommufd: Don't overflow during division for dirty tracking\n\nIf pgshift is 63 then BITS_PER_TYPE(*bitmap->bitmap) * pgsize will overflow\nto 0 and this triggers divide by 0.\n\nIn this case the index should just be 0, so reorganize things to divide\nby shift and avoid hitting any overflows.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\niommufd: No desbordar durante la división para el seguimiento de suciedad\n\nSi pgshift es 63, entonces BITS_PER_TYPE(bitmap -> bitmap) * pgsize se desbordará a 0 y esto provoca una división por 0.\n\nEn este caso, el índice debería ser simplemente 0, así que se reorganizan las cosas para dividir por shift y evitar cualquier desbordamiento.","source":"nvd"}],"published":"2025-12-08T00:46:16.850Z","modified":"2026-10-14T22:10:00.210Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"58ccf0190d19d9a8a41f8a02b9e06742b58df4a1","fixed":"07105e61882ff4a7d58db63cc5f9e90c6c60506c","status":"affected"},{"type":"git","introduced":"58ccf0190d19d9a8a41f8a02b9e06742b58df4a1","fixed":"4c8a4f1d34eced168cc0b3a3dfe7b6dcc2090f69","status":"affected"},{"type":"git","introduced":"58ccf0190d19d9a8a41f8a02b9e06742b58df4a1","fixed":"de7f2c67ceb1941b05b04ac35458a03e93cc57b1","status":"affected"},{"type":"git","introduced":"58ccf0190d19d9a8a41f8a02b9e06742b58df4a1","fixed":"dbf316fc90aa954dcd5440817f4b944627ed63e0","status":"affected"},{"type":"git","introduced":"58ccf0190d19d9a8a41f8a02b9e06742b58df4a1","fixed":"cb30dfa75d55eced379a42fd67bd5fb7ec38555e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.1","status":"unaffected"},{"type":"semver","introduced":"6.1.159","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.117","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.58","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.8","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/07105e61882ff4a7d58db63cc5f9e90c6c60506c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4c8a4f1d34eced168cc0b3a3dfe7b6dcc2090f69","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/de7f2c67ceb1941b05b04ac35458a03e93cc57b1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dbf316fc90aa954dcd5440817f4b944627ed63e0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cb30dfa75d55eced379a42fd67bd5fb7ec38555e","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40293","url":"https://www.cve.org/CVERecord?id=CVE-2025-40293","licence":"CVE Terms of Use","modified":"2026-05-11T21:46:32.879Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40293","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40293","licence":"Public domain","modified":"2026-10-14T22:10:00.210Z"}],"updatedAt":"2026-11-25T22:59:08.392Z","epss":{"score":0.00216,"percentile":0.12724,"date":"2026-12-01T12:00:22.000Z"}}