{"schema":"threatline.record/2","record":{"id":"CVE-2026-98719","aliases":[],"summary":"KVM: SEV: Nullify \"have run CPUs\" mask pointer when freeing it","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: SEV: Nullify \"have run CPUs\" mask pointer when freeing it\n\nNullify have_run_cpus when freeing the mask, particularly in the error path\nof __sev_guest_init(), so that KVM doesn't have to subtly use sev->active\nto track whether or not the mask has been freed.  As pointed out by Sashiko,\nblindly freeing the mask in sev_vm_destroy() results in a double-free if\nthe mask is freed if __sev_guest_init() fails.\n\nThrow the logic in a helper as nullifying the pointer is frustratingly\ndifficult and weird due to have_run_cpus being a single-entry array when\nCPUMASK_OFFSTACK=n.  Deliberately don't use CPUMASK_VAR_NULL, as it's not\ndirectly assignable when the cpumask is on-stack, e.g. requires using a\nlocal variable and a memcpy(), which is beyond ridiculous.  Furthermore,\nwhile clearing the on-stack bitmask is an unnecessary and arguably unwanted\nside effect, KVM absolutely relies on '0' being the \"null\" value given that\nthe struct is zero-allocated.\n\nOpportunistically add an alloc() helper to pair with free(); there are just\nenough call sites to make doing so worthwhile.","categories":["Operating systems"],"product":"Linux","vendor":"Linux","ecosystem":null,"affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98719","source_modified_at":"2026-10-19T09:24:30.132Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"Linux","vendor":"Linux","versions":[{"version":"6aef7cf800098749ff5d660222efaf6e01e98c09","lessThan":"b1de3ebf59507e0edacaa5cfa2225bc1869e1b63","status":"affected","versionType":"git"},{"version":"9784e5ca91b37b387f3f414af4340c54f7a63566","lessThan":"0fbc7fec2242de6c3dcea6de55573c428e820173","status":"affected","versionType":"git"},{"version":"12c1f6e03f944e399bd2c88441dca5dc702b95a5","lessThan":"8abbc76120a74bfba1851bd97528099d715e45c6","status":"affected","versionType":"git"}],"defaultStatus":"unaffected"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98719","source_modified_at":"2026-10-19T09:24:30.132Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"Linux","vendor":"Linux","versions":[{"version":"6.18.55","lessThan":"6.18.56","status":"affected","versionType":"semver"},{"version":"7.2.9","lessThan":"7.2.10","status":"affected","versionType":"semver"}],"defaultStatus":"unaffected"}],"fixed_versions":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98719","source_modified_at":"2026-10-19T09:24:30.132Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"0fbc7fec2242de6c3dcea6de55573c428e820173","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98719","source_modified_at":"2026-10-19T09:24:30.132Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"8abbc76120a74bfba1851bd97528099d715e45c6","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98719","source_modified_at":"2026-10-19T09:24:30.132Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"6.18.56","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98719","source_modified_at":"2026-10-19T09:24:30.132Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"7.2.10","basis":"first unaffected version stated in the CVE record"}],"cvss":null,"severity":null,"kev":{"listed":false},"epss":{"probability":0.00166,"percentile":0.05522,"score_date":"2026-10-23"},"published_at":"2026-10-18T15:46:54.631Z","modified_at":"2026-10-19T09:24:30.132Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-98719","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-10-19T09:24:30.132Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-98719","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["CVE List","EPSS"],"references":[{"source":"CVE List","url":"https://git.kernel.org/stable/c/b1de3ebf59507e0edacaa5cfa2225bc1869e1b63"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/0fbc7fec2242de6c3dcea6de55573c428e820173"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/8abbc76120a74bfba1851bd97528099d715e45c6"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"product","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-19T09:24:30.132Z","content_hash":"c46cef4109f41ae40b092e14c08d272cbd2f0d09057a55167a6ae9d6e2e9a271"}}
