CVE-2026-99852
published high CVSS 3.1 · 8.1nvmet: Finish the blk plug when integrity allocation fails
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxc6e3f13398123a008cd2ee28f93510b113a32791 to < 1a49e0627949143b63c083d451a60724a15c0070 · c6e3f13398123a008cd2ee28f93510b113a32791 to < 15b675954a96e4ec29f989bd45a3d25c3ad7e6f2 · c6e3f13398123a008cd2ee28f93510b113a32791 to < a84876e6a26c00e9629bf511907a93cc85fee221 · c6e3f13398123a008cd2ee28f93510b113a32791 to < d761553e52e2a2c48ddd280266a29a8f671e1992 · c6e3f13398123a008cd2ee28f93510b113a32791 to < ec6dadd81a16e41cf08c3d376517b46c587373a4 · c6e3f13398123a008cd2ee28f93510b113a32791 to < 13ebf8ef96ac6988f56167a2e50ae290d59fc6f6 · c6e3f13398123a008cd2ee28f93510b113a32791 to < c0b4e770ec74f7d3cb3c9961a08ddd4c12997f79 · c6e3f13398123a008cd2ee28f93510b113a32791 to < 18fc5f6f1ca945630dae5404265de55d65194e22 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.8 (affected) · 0 to < 5.8 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
Description
In the Linux kernel, the following vulnerability has been resolved: nvmet: Finish the blk plug when integrity allocation fails nvmet_bdev_execute_rw() starts a plug before building the bios, but the two error exits taken when nvmet_bdev_alloc_bip() fails return without calling blk_finish_plug(). current->plug is left pointing at the stack frame of the returned function, so the next blk_flush_plug() walks a stale list. Route both failures through a common exit that finishes the plug.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - The remote host's NVMe Read/Write capsule over nvmet-rdma (RoCEv2, routable) sets NLB and the keyed SGL length, unchecked against MDTS. So it picks a metadata_sg spanning more pages than the backing queue's max_integrity_segments (1 on nvme-pci without SGLS_MSDS). bio_integrity_add_page() then returns 0, nvmet_bdev_alloc_bip() fails, and nvmet_bdev_execute_rw() returns without blk_finish_plug(). AC:H - metadata_len is nonzero only when ctrl->pi_support is set. That needs port param_pi_enable and subsys attr_pi_enable, both default-off configfs knobs. It also needs an IBK_INTEGRITY_HANDOVER (mlx5) HCA and a CRC-PI formatted backing bdev with a low integrity segment limit, a rare deployment the attacker cannot create. PR:N - The I/O queue is reached after an NVMe-oF Connect where the hostnqn is only asserted, never authenticated, unless DH-HMAC-CHAP is configured. No credentials are needed to send the oversized Read/Write. UI:N - The remote host sends the triggering command itself and no target-side user action is involved; it can resend until the sgl_alloc() metadata pages are not physically contiguous. S:U - The corruption hits the target kernel's own ib_comp_wq kworker stack and block-layer state, within the same kernel security authority. C:H - current->plug is left pointing at nvmet_bdev_execute_rw()'s dead stack frame. On each kworker sleep, sched_submit_work() runs blk_flush_plug() on it, walking mq_list/cached_rqs and following list pointers through stack memory that later frames overwrote: a stack use-after-return usable for reading memory. I:H - __blk_flush_plug() list_del()s entries from the stale cb_list and calls cb->callback through a pointer loaded from dead stack memory, and stores cur_ktime=0 into it. The next submit_bio's blk_add_rq_to_plug() writes rq pointers through the stale mq_list.tail, corrupting live frames: an arbitrary write plus an indirect call. A:H - Walking garbage plug lists in blk_mq_flush_plug_list() or flush_plug_callbacks() oopses the kworker. Bios already chained into the stale plug are never dispatched, so the parent bio and the nvmet request never complete and queue teardown hangs. The host can repeat this at will.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | c6e3f13398123a008cd2ee28f93510b113a32791 to < 1a49e0627949143b63c083d451a60724a15c0070 (affected · git)c6e3f13398123a008cd2ee28f93510b113a32791 to < 15b675954a96e4ec29f989bd45a3d25c3ad7e6f2 (affected · git)c6e3f13398123a008cd2ee28f93510b113a32791 to < a84876e6a26c00e9629bf511907a93cc85fee221 (affected · git)c6e3f13398123a008cd2ee28f93510b113a32791 to < d761553e52e2a2c48ddd280266a29a8f671e1992 (affected · git)c6e3f13398123a008cd2ee28f93510b113a32791 to < ec6dadd81a16e41cf08c3d376517b46c587373a4 (affected · git)c6e3f13398123a008cd2ee28f93510b113a32791 to < 13ebf8ef96ac6988f56167a2e50ae290d59fc6f6 (affected · git)c6e3f13398123a008cd2ee28f93510b113a32791 to < c0b4e770ec74f7d3cb3c9961a08ddd4c12997f79 (affected · git)c6e3f13398123a008cd2ee28f93510b113a32791 to < 18fc5f6f1ca945630dae5404265de55d65194e22 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.8 (affected)0 to < 5.8 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/13ebf8ef96ac6988f56167a2e50ae290d59fc6f6
- https://git.kernel.org/stable/c/15b675954a96e4ec29f989bd45a3d25c3ad7e6f2
- https://git.kernel.org/stable/c/18fc5f6f1ca945630dae5404265de55d65194e22
- https://git.kernel.org/stable/c/1a49e0627949143b63c083d451a60724a15c0070
- https://git.kernel.org/stable/c/a84876e6a26c00e9629bf511907a93cc85fee221
- https://git.kernel.org/stable/c/c0b4e770ec74f7d3cb3c9961a08ddd4c12997f79
- https://git.kernel.org/stable/c/d761553e52e2a2c48ddd280266a29a8f671e1992
- https://git.kernel.org/stable/c/ec6dadd81a16e41cf08c3d376517b46c587373a4
Provider assertions
1Linux · cna
nvmet: Finish the blk plug when integrity allocation fails
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2a7ba81afe12298271ac352741cac9fcd6cb4a572a04e7f2af0529e65c2fd724
- Ingested
- 01 Dec 2026, 05:47:23 UTC
- Source record
- Official CVE record