{"id":"CVE-2022-49568","aliases":["CVE-2022-49568"],"related":[],"kind":"vulnerability","state":"published","title":"KVM: Don't null dereference ops->destroy","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: Don't null dereference ops->destroy\n\nA KVM device cleanup happens in either of two callbacks:\n1) destroy() which is called when the VM is being destroyed;\n2) release() which is called when a device fd is closed.\n\nMost KVM devices use 1) but Book3s's interrupt controller KVM devices\n(XICS, XIVE, XIVE-native) use 2) as they need to close and reopen during\nthe machine execution. The error handling in kvm_ioctl_create_device()\nassumes destroy() is always defined which leads to NULL dereference as\ndiscovered by Syzkaller.\n\nThis adds a checks for destroy!=NULL and adds a missing release().\n\nThis is not changing kvm_destroy_devices() as devices with defined\nrelease() should have been removed from the KVM devices list by then.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: Don't null dereference ops->destroy\n\nA KVM device cleanup happens in either of two callbacks:\n1) destroy() which is called when the VM is being destroyed;\n2) release() which is called when a device fd is closed.\n\nMost KVM devices use 1) but Book3s's interrupt controller KVM devices\n(XICS, XIVE, XIVE-native) use 2) as they need to close and reopen during\nthe machine execution. The error handling in kvm_ioctl_create_device()\nassumes destroy() is always defined which leads to NULL dereference as\ndiscovered by Syzkaller.\n\nThis adds a checks for destroy!=NULL and adds a missing release().\n\nThis is not changing kvm_destroy_devices() as devices with defined\nrelease() should have been removed from the KVM devices list by then.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: KVM: No desreferenciar ops-&gt;destroy Una depuración de dispositivo KVM ocurre en cualquiera de dos devoluciones de llamada: 1) destroy() que se llama cuando se está destruyendo la VM; 2) release() que se llama cuando se cierra un fd de dispositivo. La mayoría de los dispositivos KVM usan 1) pero los dispositivos KVM del controlador de interrupciones de Book3s (XICS, XIVE, XIVE-native) usan 2) ya que necesitan cerrarse y volver a abrir durante la ejecución de la máquina. La gestión de errores en kvm_ioctl_create_device() asume que destroy() siempre está definido, lo que lleva a una desreferencia NULL como lo descubrió Syzkaller. Esto agrega verificaciones para destroy!=NULL y agrega un release() faltante. Esto no está cambiando kvm_destroy_devices() ya que los dispositivos con release() definido deberían haber sido eliminados de la lista de dispositivos KVM para entonces.","source":"nvd"}],"published":"2025-02-26T02:23:12.722Z","modified":"2026-06-17T05:18:28.493Z","severity":{"scorer":"CISA-ADP","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":"CISA-ADP","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"},{"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-476"],"affected":[{"ranges":[{"type":"git","introduced":"852b6d57dc7fa378019786fa84727036e56839ea","fixed":"170465715a60cbb7876e6b961b21bd3225469da8","status":"affected"},{"type":"git","introduced":"852b6d57dc7fa378019786fa84727036e56839ea","fixed":"3616776bc51cd3262bb1be60cc01c72e0a1959cf","status":"affected"},{"type":"git","introduced":"852b6d57dc7fa378019786fa84727036e56839ea","fixed":"e91665fbbf3ccb268b268a7d71a6513538d813ac","status":"affected"},{"type":"git","introduced":"852b6d57dc7fa378019786fa84727036e56839ea","fixed":"d4a5a79b780891c5cbdfdc6124d46fdf8d13dba1","status":"affected"},{"type":"git","introduced":"852b6d57dc7fa378019786fa84727036e56839ea","fixed":"e8bc2427018826e02add7b0ed0fc625a60390ae5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.10","status":"unaffected"},{"type":"semver","introduced":"5.4.210","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.134","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.58","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.18.15","lastAffected":"5.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.19","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","fixed":"5.4.210"},{"status":"affected","introduced":"5.5","fixed":"5.10.134"},{"status":"affected","introduced":"5.11","fixed":"5.15.58"},{"status":"affected","introduced":"5.16","fixed":"5.18.15"},{"status":"affected","version":"5.19"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/170465715a60cbb7876e6b961b21bd3225469da8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3616776bc51cd3262bb1be60cc01c72e0a1959cf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e91665fbbf3ccb268b268a7d71a6513538d813ac","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d4a5a79b780891c5cbdfdc6124d46fdf8d13dba1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e8bc2427018826e02add7b0ed0fc625a60390ae5","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T19:36:56.420Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49568","url":"https://www.cve.org/CVERecord?id=CVE-2022-49568","licence":"CVE Terms of Use","modified":"2026-05-11T19:02:28.088Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49568","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49568","licence":"Public domain","modified":"2026-06-17T05:18:28.493Z"}],"updatedAt":"2026-11-25T22:58:20.736Z","epss":{"score":0.00297,"percentile":0.24116,"date":"2026-12-01T12:00:22.000Z"}}