{"id":"CVE-2025-68296","aliases":["CVE-2025-68296"],"related":[],"kind":"vulnerability","state":"published","title":"drm, fbcon, vga_switcheroo: Avoid race condition in fbcon setup","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm, fbcon, vga_switcheroo: Avoid race condition in fbcon setup\n\nProtect vga_switcheroo_client_fb_set() with console lock. Avoids OOB\naccess in fbcon_remap_all(). Without holding the console lock the call\nraces with switching outputs.\n\nVGA switcheroo calls fbcon_remap_all() when switching clients. The fbcon\nfunction uses struct fb_info.node, which is set by register_framebuffer().\nAs the fb-helper code currently sets up VGA switcheroo before registering\nthe framebuffer, the value of node is -1 and therefore not a legal value.\nFor example, fbcon uses the value within set_con2fb_map() [1] as an index\ninto an array.\n\nMoving vga_switcheroo_client_fb_set() after register_framebuffer() can\nresult in VGA switching that does not switch fbcon correctly.\n\nTherefore move vga_switcheroo_client_fb_set() under fbcon_fb_registered(),\nwhich already holds the console lock. Fbdev calls fbcon_fb_registered()\nfrom within register_framebuffer(). Serializes the helper with VGA\nswitcheroo's call to fbcon_remap_all().\n\nAlthough vga_switcheroo_client_fb_set() takes an instance of struct fb_info\nas parameter, it really only needs the contained fbcon state. Moving the\ncall to fbcon initialization is therefore cleaner than before. Only amdgpu,\ni915, nouveau and radeon support vga_switcheroo. For all other drivers,\nthis change does nothing.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm, fbcon, vga_switcheroo: Avoid race condition in fbcon setup\n\nProtect vga_switcheroo_client_fb_set() with console lock. Avoids OOB\naccess in fbcon_remap_all(). Without holding the console lock the call\nraces with switching outputs.\n\nVGA switcheroo calls fbcon_remap_all() when switching clients. The fbcon\nfunction uses struct fb_info.node, which is set by register_framebuffer().\nAs the fb-helper code currently sets up VGA switcheroo before registering\nthe framebuffer, the value of node is -1 and therefore not a legal value.\nFor example, fbcon uses the value within set_con2fb_map() [1] as an index\ninto an array.\n\nMoving vga_switcheroo_client_fb_set() after register_framebuffer() can\nresult in VGA switching that does not switch fbcon correctly.\n\nTherefore move vga_switcheroo_client_fb_set() under fbcon_fb_registered(),\nwhich already holds the console lock. Fbdev calls fbcon_fb_registered()\nfrom within register_framebuffer(). Serializes the helper with VGA\nswitcheroo's call to fbcon_remap_all().\n\nAlthough vga_switcheroo_client_fb_set() takes an instance of struct fb_info\nas parameter, it really only needs the contained fbcon state. Moving the\ncall to fbcon initialization is therefore cleaner than before. Only amdgpu,\ni915, nouveau and radeon support vga_switcheroo. For all other drivers,\nthis change does nothing.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ndrm, fbcon, vga_switcheroo: Evitar condición de carrera en la configuración de fbcon\n\nProteger vga_switcheroo_client_fb_set() con el bloqueo de consola. Evita el acceso OOB en fbcon_remap_all(). Sin mantener el bloqueo de consola, la llamada entra en condición de carrera con el cambio de salidas.\n\nVGA switcheroo llama a fbcon_remap_all() al cambiar de clientes. La función fbcon usa struct fb_info.node, que es establecido por register_framebuffer(). Como el código del asistente de fb actualmente configura VGA switcheroo antes de registrar el framebuffer, el valor de node es -1 y por lo tanto no es un valor legal. Por ejemplo, fbcon usa el valor dentro de set_con2fb_map() [1] como un índice en un array.\n\nMover vga_switcheroo_client_fb_set() después de register_framebuffer() puede resultar en un cambio de VGA que no cambia fbcon correctamente.\n\nPor lo tanto, mover vga_switcheroo_client_fb_set() bajo fbcon_fb_registered(), que ya mantiene el bloqueo de consola. Fbdev llama a fbcon_fb_registered() desde dentro de register_framebuffer(). Serializa el asistente con la llamada de VGA switcheroo a fbcon_remap_all().\n\nAunque vga_switcheroo_client_fb_set() toma una instancia de struct fb_info como parámetro, realmente solo necesita el estado fbcon contenido. Mover la llamada a la inicialización de fbcon es por lo tanto más limpio que antes. Solo amdgpu, i915, nouveau y radeon soportan vga_switcheroo. Para todos los demás controladores, este cambio no hace nada.","source":"nvd"}],"published":"2025-12-16T15:06:15.797Z","modified":"2026-10-14T16:10:00.250Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"6a9ee8af344e3bd7dbd61e67037096cdf7f83289","fixed":"711ebd961190def4c69ea24b2f0be75e995af24a","status":"affected"},{"type":"git","introduced":"6a9ee8af344e3bd7dbd61e67037096cdf7f83289","fixed":"482330f8261b4bea8146d9bd69c1199e5dfcbb5c","status":"affected"},{"type":"git","introduced":"6a9ee8af344e3bd7dbd61e67037096cdf7f83289","fixed":"05814c389b53d2f3a0b9eeb90ba7a05ba77c4c2a","status":"affected"},{"type":"git","introduced":"6a9ee8af344e3bd7dbd61e67037096cdf7f83289","fixed":"eb76d0f5553575599561010f24c277cc5b31d003","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.34","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.34","status":"unaffected"},{"type":"semver","introduced":"6.6.143","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.61","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.11","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/711ebd961190def4c69ea24b2f0be75e995af24a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/482330f8261b4bea8146d9bd69c1199e5dfcbb5c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/05814c389b53d2f3a0b9eeb90ba7a05ba77c4c2a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eb76d0f5553575599561010f24c277cc5b31d003","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68296","url":"https://www.cve.org/CVERecord?id=CVE-2025-68296","licence":"CVE Terms of Use","modified":"2026-06-19T11:57:24.114Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68296","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68296","licence":"Public domain","modified":"2026-10-14T16:10:00.250Z"}],"updatedAt":"2026-11-25T22:59:09.531Z","epss":{"score":0.0022,"percentile":0.1335,"date":"2026-12-02T12:00:21.000Z"}}