{"id":"CVE-2025-40110","aliases":["CVE-2025-40110"],"related":[],"kind":"vulnerability","state":"published","title":"drm/vmwgfx: Fix a null-ptr access in the cursor snooper","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/vmwgfx: Fix a null-ptr access in the cursor snooper\n\nCheck that the resource which is converted to a surface exists before\ntrying to use the cursor snooper on it.\n\nvmw_cmd_res_check allows explicit invalid (SVGA3D_INVALID_ID) identifiers\nbecause some svga commands accept SVGA3D_INVALID_ID to mean \"no surface\",\nunfortunately functions that accept the actual surfaces as objects might\n(and in case of the cursor snooper, do not) be able to handle null\nobjects. Make sure that we validate not only the identifier (via the\nvmw_cmd_res_check) but also check that the actual resource exists before\ntrying to do something with it.\n\nFixes unchecked null-ptr reference in the snooping code.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/vmwgfx: Fix a null-ptr access in the cursor snooper\n\nCheck that the resource which is converted to a surface exists before\ntrying to use the cursor snooper on it.\n\nvmw_cmd_res_check allows explicit invalid (SVGA3D_INVALID_ID) identifiers\nbecause some svga commands accept SVGA3D_INVALID_ID to mean \"no surface\",\nunfortunately functions that accept the actual surfaces as objects might\n(and in case of the cursor snooper, do not) be able to handle null\nobjects. Make sure that we validate not only the identifier (via the\nvmw_cmd_res_check) but also check that the actual resource exists before\ntrying to do something with it.\n\nFixes unchecked null-ptr reference in the snooping code.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ndrm/vmwgfx: Corrige un acceso a puntero nulo en el rastreador de cursor\n\nVerifique que el recurso que se convierte en una superficie existe antes de intentar usar el rastreador de cursor en él.\n\nvmw_cmd_res_check permite identificadores explícitamente inválidos (SVGA3D_INVALID_ID) porque algunos comandos svga aceptan SVGA3D_INVALID_ID para significar “sin superficie”; desafortunadamente, las funciones que aceptan las superficies reales como objetos podrían (y en el caso del rastreador de cursor, no lo hacen) ser capaces de manejar objetos nulos. Asegúrese de que validamos no solo el identificador (a través de vmw_cmd_res_check) sino que también verificamos que el recurso real existe antes de intentar hacer algo con él.\n\nCorrige la referencia de puntero nulo sin verificar en el código de rastreo.","source":"nvd"}],"published":"2025-11-12T01:07:24.739Z","modified":"2026-10-19T21:10:00.160Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1","fixed":"3332212e93d0f6e24f8fe79f975e077c4e68ca39","status":"affected"},{"type":"git","introduced":"c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1","fixed":"86aae7053d2da3fdfde7b2e84d86e4af50490505","status":"affected"},{"type":"git","introduced":"c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1","fixed":"af9d88cbf0fce52f465978360542ef679713491f","status":"affected"},{"type":"git","introduced":"c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1","fixed":"299cfb5a7deabdf9ecd30071755672af0aced5eb","status":"affected"},{"type":"git","introduced":"c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1","fixed":"13c9e4ed125e19484234c960efe5ac9c55119523","status":"affected"},{"type":"git","introduced":"c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1","fixed":"b6fca0a07989f361ceda27cb2d09c555d4d4a964","status":"affected"},{"type":"git","introduced":"c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1","fixed":"5ac2c0279053a2c5265d46903432fb26ae2d0da2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.8","status":"unaffected"},{"type":"semver","introduced":"5.10.248","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.198","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.160","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.113","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.54","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.4","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/3332212e93d0f6e24f8fe79f975e077c4e68ca39","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/86aae7053d2da3fdfde7b2e84d86e4af50490505","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/af9d88cbf0fce52f465978360542ef679713491f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/299cfb5a7deabdf9ecd30071755672af0aced5eb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/13c9e4ed125e19484234c960efe5ac9c55119523","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b6fca0a07989f361ceda27cb2d09c555d4d4a964","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5ac2c0279053a2c5265d46903432fb26ae2d0da2","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40110","url":"https://www.cve.org/CVERecord?id=CVE-2025-40110","licence":"CVE Terms of Use","modified":"2026-05-11T21:42:50.636Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40110","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40110","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:07.530Z","epss":{"score":0.00206,"percentile":0.11348,"date":"2026-12-01T12:00:22.000Z"}}