{"api_version":"1","generated_at":"2026-11-30T15:53:34+00:00","cve":"CVE-2026-99517","urls":{"html":"https://cve.report/CVE-2026-99517","api":"https://cve.report/api/cve/CVE-2026-99517.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99517","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99517"},"summary":{"title":"nvmet: fix use-after-free of the old registrant in nvmet_pr_preempt()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet: fix use-after-free of the old registrant in nvmet_pr_preempt()\n\nnvmet_pr_preempt() handles a preempt sent by the reservation holder by\nchanging the reservation type with nvmet_pr_update_reg_attr(), unless\nthe reservation is of an All Registrants type.  For the holder that\nhelper does not modify the registrant in place: it puts a copy on the\nregistrant list, points pr->holder to the copy and passes the old\nregistrant to kfree_rcu().\n\nIf the reservation type changed, nvmet_pr_preempt() then hands\n&reg->hostid of that old registrant to nvmet_pr_resv_released().  Unless\nthe reservation released notification is masked, that function takes\nsubsys->lock and compares the host id against every controller of the\nsubsystem.  The caller only holds pr->pr_sem and is not in an RCU\nread-side critical section, so nothing keeps the old registrant alive\nwhile it is read.\n\nThe result is a read of 16 freed bytes that decides which controllers\nget the notification.  Found by code inspection.  kfree_rcu() defers\nthe free, so it usually happens after the read; when the pending free\nis forced to run before the read, KASAN reports the host id as freed\nmemory.\n\nPass the host id of the controller that sent the command instead.  The\nregistrant was looked up by that host id, and the controller outlives\nthe request.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-19 15:18:07","updated_at":"2026-11-19 15:18:07"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/f316aa7f018840523939183425394931b373e4d7","name":"https://git.kernel.org/stable/c/f316aa7f018840523939183425394931b373e4d7","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/fd7843365a9e73f6ee32c30487c21cb62b84c0a2","name":"https://git.kernel.org/stable/c/fd7843365a9e73f6ee32c30487c21cb62b84c0a2","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/506c066da8fb2cef32210ca84439c7bb9855504f","name":"https://git.kernel.org/stable/c/506c066da8fb2cef32210ca84439c7bb9855504f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99517","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99517","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5a47c2080a7316f184107464e4f76737c0c05186 506c066da8fb2cef32210ca84439c7bb9855504f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5a47c2080a7316f184107464e4f76737c0c05186 fd7843365a9e73f6ee32c30487c21cb62b84c0a2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5a47c2080a7316f184107464e4f76737c0c05186 f316aa7f018840523939183425394931b373e4d7 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.13","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.13 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.61 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.2 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/nvme/target/pr.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"506c066da8fb2cef32210ca84439c7bb9855504f","status":"affected","version":"5a47c2080a7316f184107464e4f76737c0c05186","versionType":"git"},{"lessThan":"fd7843365a9e73f6ee32c30487c21cb62b84c0a2","status":"affected","version":"5a47c2080a7316f184107464e4f76737c0c05186","versionType":"git"},{"lessThan":"f316aa7f018840523939183425394931b373e4d7","status":"affected","version":"5a47c2080a7316f184107464e4f76737c0c05186","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/nvme/target/pr.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.13"},{"lessThan":"6.13","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.61","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.2","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.61","versionStartIncluding":"6.13","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.2","versionStartIncluding":"6.13","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.13","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet: fix use-after-free of the old registrant in nvmet_pr_preempt()\n\nnvmet_pr_preempt() handles a preempt sent by the reservation holder by\nchanging the reservation type with nvmet_pr_update_reg_attr(), unless\nthe reservation is of an All Registrants type.  For the holder that\nhelper does not modify the registrant in place: it puts a copy on the\nregistrant list, points pr->holder to the copy and passes the old\nregistrant to kfree_rcu().\n\nIf the reservation type changed, nvmet_pr_preempt() then hands\n&reg->hostid of that old registrant to nvmet_pr_resv_released().  Unless\nthe reservation released notification is masked, that function takes\nsubsys->lock and compares the host id against every controller of the\nsubsystem.  The caller only holds pr->pr_sem and is not in an RCU\nread-side critical section, so nothing keeps the old registrant alive\nwhile it is read.\n\nThe result is a read of 16 freed bytes that decides which controllers\nget the notification.  Found by code inspection.  kfree_rcu() defers\nthe free, so it usually happens after the read; when the pending free\nis forced to run before the read, KASAN reports the host id as freed\nmemory.\n\nPass the host id of the controller that sent the command instead.  The\nregistrant was looked up by that host id, and the controller outlives\nthe request."}],"providerMetadata":{"dateUpdated":"2026-11-19T14:44:21.976Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/506c066da8fb2cef32210ca84439c7bb9855504f"},{"url":"https://git.kernel.org/stable/c/fd7843365a9e73f6ee32c30487c21cb62b84c0a2"},{"url":"https://git.kernel.org/stable/c/f316aa7f018840523939183425394931b373e4d7"}],"title":"nvmet: fix use-after-free of the old registrant in nvmet_pr_preempt()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99517","datePublished":"2026-11-19T14:44:21.976Z","dateReserved":"2026-09-25T10:25:14.419Z","dateUpdated":"2026-11-19T14:44:21.976Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-19 15:18:07","lastModifiedDate":"2026-11-19 15:18:07","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99517","Ordinal":"1","Title":"nvmet: fix use-after-free of the old registrant in nvmet_pr_pree","CVE":"CVE-2026-99517","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99517","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet: fix use-after-free of the old registrant in nvmet_pr_preempt()\n\nnvmet_pr_preempt() handles a preempt sent by the reservation holder by\nchanging the reservation type with nvmet_pr_update_reg_attr(), unless\nthe reservation is of an All Registrants type.  For the holder that\nhelper does not modify the registrant in place: it puts a copy on the\nregistrant list, points pr->holder to the copy and passes the old\nregistrant to kfree_rcu().\n\nIf the reservation type changed, nvmet_pr_preempt() then hands\n&reg->hostid of that old registrant to nvmet_pr_resv_released().  Unless\nthe reservation released notification is masked, that function takes\nsubsys->lock and compares the host id against every controller of the\nsubsystem.  The caller only holds pr->pr_sem and is not in an RCU\nread-side critical section, so nothing keeps the old registrant alive\nwhile it is read.\n\nThe result is a read of 16 freed bytes that decides which controllers\nget the notification.  Found by code inspection.  kfree_rcu() defers\nthe free, so it usually happens after the read; when the pending free\nis forced to run before the read, KASAN reports the host id as freed\nmemory.\n\nPass the host id of the controller that sent the command instead.  The\nregistrant was looked up by that host id, and the controller outlives\nthe request.","Type":"Description","Title":"nvmet: fix use-after-free of the old registrant in nvmet_pr_pree"}]}}}