{"id":"CVE-2025-22097","aliases":["CVE-2025-22097"],"related":[],"kind":"vulnerability","state":"published","title":"drm/vkms: Fix use after free and double free on init error","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/vkms: Fix use after free and double free on init error\n\nIf the driver initialization fails, the vkms_exit() function might\naccess an uninitialized or freed default_config pointer and it might\ndouble free it.\n\nFix both possible errors by initializing default_config only when the\ndriver initialization succeeded.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/vkms: Fix use after free and double free on init error\n\nIf the driver initialization fails, the vkms_exit() function might\naccess an uninitialized or freed default_config pointer and it might\ndouble free it.\n\nFix both possible errors by initializing default_config only when the\ndriver initialization succeeded.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm/vkms: Se corrige el error \"use after free\" y \"double free on init\". Si falla la inicialización del controlador, la función \"vkms_exit()\" podría acceder a un puntero \"default_config\" no inicializado o liberado y liberarlo dos veces. Se corrigen ambos posibles errores inicializando \"default_config\" solo cuando la inicialización del controlador se haya realizado correctamente.","source":"nvd"}],"published":"2025-04-16T14:12:47.649Z","modified":"2026-06-17T08:45:08.440Z","severity":{"scorer":"CISA-ADP","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":"CISA-ADP","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-416"],"affected":[{"ranges":[{"type":"git","introduced":"2df7af93fdadb9ba8226fe443fae15ecdefda2a6","fixed":"49a69f67f53518bdd9b7eeebf019a2da6cc0e954","status":"affected"},{"type":"git","introduced":"2df7af93fdadb9ba8226fe443fae15ecdefda2a6","fixed":"79d138d137b80eeb0a83244d1cff29e64cf91067","status":"affected"},{"type":"git","introduced":"2df7af93fdadb9ba8226fe443fae15ecdefda2a6","fixed":"561fc0c5cf41f646f3e9e61784cbc0fc832fb936","status":"affected"},{"type":"git","introduced":"2df7af93fdadb9ba8226fe443fae15ecdefda2a6","fixed":"d5eb8e347905ab17788a7903fa1d3d06747355f5","status":"affected"},{"type":"git","introduced":"2df7af93fdadb9ba8226fe443fae15ecdefda2a6","fixed":"b8a18bb53e06d6d3c1fd03d12533d6e333ba8853","status":"affected"},{"type":"git","introduced":"2df7af93fdadb9ba8226fe443fae15ecdefda2a6","fixed":"1f68f1cf09d06061eb549726ff8339e064eddebd","status":"affected"},{"type":"git","introduced":"2df7af93fdadb9ba8226fe443fae15ecdefda2a6","fixed":"ed15511a773df86205bda66c37193569575ae828","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.12","status":"unaffected"},{"type":"semver","introduced":"5.15.180","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.134","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.87","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.23","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.11","lastAffected":"6.13.*","status":"unaffected"},{"type":"semver","introduced":"6.14.2","lastAffected":"6.14.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.15","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":"5.12","fixed":"5.15.180"},{"status":"affected","introduced":"5.16","fixed":"6.1.134"},{"status":"affected","introduced":"6.2","fixed":"6.6.87"},{"status":"affected","introduced":"6.7","fixed":"6.12.23"},{"status":"affected","introduced":"6.13","fixed":"6.13.11"},{"status":"affected","introduced":"6.14","fixed":"6.14.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/49a69f67f53518bdd9b7eeebf019a2da6cc0e954","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/79d138d137b80eeb0a83244d1cff29e64cf91067","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/561fc0c5cf41f646f3e9e61784cbc0fc832fb936","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d5eb8e347905ab17788a7903fa1d3d06747355f5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b8a18bb53e06d6d3c1fd03d12533d6e333ba8853","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1f68f1cf09d06061eb549726ff8339e064eddebd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ed15511a773df86205bda66c37193569575ae828","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-04-25T14:30:06.841Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-22097","url":"https://www.cve.org/CVERecord?id=CVE-2025-22097","licence":"CVE Terms of Use","modified":"2026-05-11T21:12:54.498Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-22097","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22097","licence":"Public domain","modified":"2026-06-17T08:45:08.440Z"}],"updatedAt":"2026-11-25T22:58:56.611Z","epss":{"score":0.003,"percentile":0.1513,"date":"2026-11-30T12:00:22.000Z"}}