{"id":"CVE-2025-21724","aliases":["CVE-2025-21724"],"related":[],"kind":"vulnerability","state":"published","title":"iommufd/iova_bitmap: Fix shift-out-of-bounds in iova_bitmap_offset_to_index()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\niommufd/iova_bitmap: Fix shift-out-of-bounds in iova_bitmap_offset_to_index()\n\nResolve a UBSAN shift-out-of-bounds issue in iova_bitmap_offset_to_index()\nwhere shifting the constant \"1\" (of type int) by bitmap->mapped.pgshift\n(an unsigned long value) could result in undefined behavior.\n\nThe constant \"1\" defaults to a 32-bit \"int\", and when \"pgshift\" exceeds\n31 (e.g., pgshift = 63) the shift operation overflows, as the result\ncannot be represented in a 32-bit type.\n\nTo resolve this, the constant is updated to \"1UL\", promoting it to an\nunsigned long type to match the operand's type.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\niommufd/iova_bitmap: Fix shift-out-of-bounds in iova_bitmap_offset_to_index()\n\nResolve a UBSAN shift-out-of-bounds issue in iova_bitmap_offset_to_index()\nwhere shifting the constant \"1\" (of type int) by bitmap->mapped.pgshift\n(an unsigned long value) could result in undefined behavior.\n\nThe constant \"1\" defaults to a 32-bit \"int\", and when \"pgshift\" exceeds\n31 (e.g., pgshift = 63) the shift operation overflows, as the result\ncannot be represented in a 32-bit type.\n\nTo resolve this, the constant is updated to \"1UL\", promoting it to an\nunsigned long type to match the operand's type.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: iommufd/iova_bitmap: Se soluciona el problema de desplazamiento fuera de los límites en iova_bitmap_offset_to_index() Se soluciona un problema de desplazamiento fuera de los límites de UBSAN en iova_bitmap_offset_to_index() donde desplazar la constante \"1\" (de tipo int) por bitmap-&gt;mapped.pgshift (un valor unsigned long) podría resultar en un comportamiento indefinido. La constante \"1\" tiene como valor predeterminado un \"int\" de 32 bits, y cuando \"pgshift\" supera los 31 (por ejemplo, pgshift = 63) la operación de desplazamiento se desborda, ya que el resultado no se puede representar en un tipo de 32 bits. Para resolver esto, la constante se actualiza a \"1UL\", promoviéndola a un tipo unsigned long para que coincida con el tipo del operando.","source":"nvd"}],"published":"2025-02-27T02:07:31.630Z","modified":"2026-11-05T21:17:41.613Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"58ccf0190d19d9a8a41f8a02b9e06742b58df4a1","fixed":"44d9c94b7a3f29a3e07c4753603a35e9b28842a3","status":"affected"},{"type":"git","introduced":"58ccf0190d19d9a8a41f8a02b9e06742b58df4a1","fixed":"38ac76fc06bc6826a3e4b12a98efbe98432380a9","status":"affected"},{"type":"git","introduced":"58ccf0190d19d9a8a41f8a02b9e06742b58df4a1","fixed":"d5d33f01b86af44b23eea61ee309e4ef22c0cdfe","status":"affected"},{"type":"git","introduced":"58ccf0190d19d9a8a41f8a02b9e06742b58df4a1","fixed":"b1f8453b8ff1ab79a03820ef608256c499769cb6","status":"affected"},{"type":"git","introduced":"58ccf0190d19d9a8a41f8a02b9e06742b58df4a1","fixed":"e24c1551059268b37f6f40639883eafb281b8b9c","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.129","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.76","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.13","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.2","lastAffected":"6.13.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.14","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.1","fixed":"6.1.129"},{"status":"affected","introduced":"6.2","fixed":"6.6.76"},{"status":"affected","introduced":"6.7","fixed":"6.12.13"},{"status":"affected","introduced":"6.13","fixed":"6.13.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/44d9c94b7a3f29a3e07c4753603a35e9b28842a3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/38ac76fc06bc6826a3e4b12a98efbe98432380a9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d5d33f01b86af44b23eea61ee309e4ef22c0cdfe","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b1f8453b8ff1ab79a03820ef608256c499769cb6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e24c1551059268b37f6f40639883eafb281b8b9c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T20:34:32.058Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-21724","url":"https://www.cve.org/CVERecord?id=CVE-2025-21724","licence":"CVE Terms of Use","modified":"2026-11-05T20:41:41.193Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-21724","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21724","licence":"Public domain","modified":"2026-11-05T21:17:41.613Z"}],"updatedAt":"2026-11-25T22:58:54.499Z","epss":{"score":0.00191,"percentile":0.09132,"date":"2026-12-01T12:00:22.000Z"}}