{"id":"CVE-2025-38312","aliases":["CVE-2025-38312"],"related":[],"kind":"vulnerability","state":"published","title":"fbdev: core: fbcvt: avoid division by 0 in fb_cvt_hperiod()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nfbdev: core: fbcvt: avoid division by 0 in fb_cvt_hperiod()\n\nIn fb_find_mode_cvt(), iff mode->refresh somehow happens to be 0x80000000,\ncvt.f_refresh will become 0 when multiplying it by 2 due to overflow. It's\nthen passed to fb_cvt_hperiod(), where it's used as a divider -- division\nby 0 will result in kernel oops. Add a sanity check for cvt.f_refresh to\navoid such overflow...\n\nFound by Linux Verification Center (linuxtesting.org) with the Svace static\nanalysis tool.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nfbdev: core: fbcvt: avoid division by 0 in fb_cvt_hperiod()\n\nIn fb_find_mode_cvt(), iff mode->refresh somehow happens to be 0x80000000,\ncvt.f_refresh will become 0 when multiplying it by 2 due to overflow. It's\nthen passed to fb_cvt_hperiod(), where it's used as a divider -- division\nby 0 will result in kernel oops. Add a sanity check for cvt.f_refresh to\navoid such overflow...\n\nFound by Linux Verification Center (linuxtesting.org) with the Svace static\nanalysis tool.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: fbdev: core: fbcvt: evitar la división por 0 en fb_cvt_hperiod(). En fb_find_mode_cvt(), si mode-&gt;refresh resulta ser 0x80000000, cvt.f_refresh se convertirá en 0 al multiplicarlo por 2 debido a un desbordamiento. Luego se pasa a fb_cvt_hperiod(), donde se usa como divisor; la división por 0 provocará un error en el kernel. Añada una comprobación de seguridad para cvt.f_refresh para evitar dicho desbordamiento. Encontrado por el Centro de Verificación de Linux (linuxtesting.org) con la herramienta de análisis estático Svace.","source":"nvd"}],"published":"2025-07-10T07:42:20.647Z","modified":"2026-11-05T21:18:26.147Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-369"],"affected":[{"ranges":[{"type":"git","introduced":"96fe6a2109db29cd15b90a093c16e6cb4b19371a","fixed":"9027ce4c037b566b658b8939a76326b7125e3627","status":"affected"},{"type":"git","introduced":"96fe6a2109db29cd15b90a093c16e6cb4b19371a","fixed":"610f247f2772e4f92b63442125a1b7ade79898d8","status":"affected"},{"type":"git","introduced":"96fe6a2109db29cd15b90a093c16e6cb4b19371a","fixed":"2d63433e8eaa3c91b2948190e395bc67009db0d9","status":"affected"},{"type":"git","introduced":"96fe6a2109db29cd15b90a093c16e6cb4b19371a","fixed":"54947530663edcbaaee1314c01fdd8c72861b124","status":"affected"},{"type":"git","introduced":"96fe6a2109db29cd15b90a093c16e6cb4b19371a","fixed":"ab91647acdf43b984824776559a452212eaeb21a","status":"affected"},{"type":"git","introduced":"96fe6a2109db29cd15b90a093c16e6cb4b19371a","fixed":"b235393b9f43ff86a38ca2bde6372312ea215dc5","status":"affected"},{"type":"git","introduced":"96fe6a2109db29cd15b90a093c16e6cb4b19371a","fixed":"53784073cbad18f75583fd3da9ffdfc4d1f05405","status":"affected"},{"type":"git","introduced":"96fe6a2109db29cd15b90a093c16e6cb4b19371a","fixed":"3f6dae09fc8c306eb70fdfef70726e1f154e173a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.14","status":"unaffected"},{"type":"semver","introduced":"5.4.295","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.239","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.186","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.142","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.94","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.34","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.15.3","lastAffected":"6.15.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.16","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":"2.6.14","fixed":"5.4.295"},{"status":"affected","introduced":"5.5","fixed":"5.10.239"},{"status":"affected","introduced":"5.11","fixed":"5.15.186"},{"status":"affected","introduced":"5.16","fixed":"6.1.142"},{"status":"affected","introduced":"6.2","fixed":"6.6.94"},{"status":"affected","introduced":"6.7","fixed":"6.12.34"},{"status":"affected","introduced":"6.13","fixed":"6.15.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/9027ce4c037b566b658b8939a76326b7125e3627","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/610f247f2772e4f92b63442125a1b7ade79898d8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2d63433e8eaa3c91b2948190e395bc67009db0d9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/54947530663edcbaaee1314c01fdd8c72861b124","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ab91647acdf43b984824776559a452212eaeb21a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b235393b9f43ff86a38ca2bde6372312ea215dc5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/53784073cbad18f75583fd3da9ffdfc4d1f05405","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3f6dae09fc8c306eb70fdfef70726e1f154e173a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T20:54:16.461Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-38312","url":"https://www.cve.org/CVERecord?id=CVE-2025-38312","licence":"CVE Terms of Use","modified":"2026-11-05T21:02:32.438Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-38312","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38312","licence":"Public domain","modified":"2026-11-05T21:18:26.147Z"}],"updatedAt":"2026-11-25T22:59:01.069Z","epss":{"score":0.002,"percentile":0.10375,"date":"2026-12-01T12:00:22.000Z"}}