{"id":"CVE-2022-49568","published":"2025-02-26T02:23:12Z","modified":"2026-05-11T19:02:28Z","title":"KVM: Don't null dereference ops->destroy","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00297,"percentile":0.22934,"provenance":"source"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"references":[{"url":"https://git.kernel.org/stable/c/170465715a60cbb7876e6b961b21bd3225469da8","tags":[]},{"url":"https://git.kernel.org/stable/c/3616776bc51cd3262bb1be60cc01c72e0a1959cf","tags":[]},{"url":"https://git.kernel.org/stable/c/e91665fbbf3ccb268b268a7d71a6513538d813ac","tags":[]},{"url":"https://git.kernel.org/stable/c/d4a5a79b780891c5cbdfdc6124d46fdf8d13dba1","tags":[]},{"url":"https://git.kernel.org/stable/c/e8bc2427018826e02add7b0ed0fc625a60390ae5","tags":[]}],"priority":{"score":8.4,"factors":[{"name":"EPSS percentile","points":4.59},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 852b6d57dc7fa378019786fa84727036e56839ea, < 170465715a60cbb7876e6b961b21bd3225469da8",">= 852b6d57dc7fa378019786fa84727036e56839ea, < 3616776bc51cd3262bb1be60cc01c72e0a1959cf",">= 852b6d57dc7fa378019786fa84727036e56839ea, < e91665fbbf3ccb268b268a7d71a6513538d813ac",">= 852b6d57dc7fa378019786fa84727036e56839ea, < d4a5a79b780891c5cbdfdc6124d46fdf8d13dba1",">= 852b6d57dc7fa378019786fa84727036e56839ea, < e8bc2427018826e02add7b0ed0fc625a60390ae5"]},{"vendor":"Linux","product":"Linux","versions":["3.10"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-01T19:36:56.420307Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-54664","exploited":false,"provenance":"source"}}