Skip to contentSkip to conversation

CVE-2026-99378: pnfs/blocklayout: Complete a device upcall when the pipe is closed

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

pnfs/blocklayout: Complete a device upcall when the pipe is closed

Once blkmapd has read a whole upcall, rpc_pipe_read() unlinks the message from every pipe list, so the purges in rpc_pipe_release() and rpc_close_pipes() no longer reach it. bl_upcall_ops supplies no .release_pipe callback, and bl_pipe_destroy_msg() returns without completing the upcall because a downcall is expected to follow. A daemon that exits between the read and the write therefore strands its waiter: bl_resolve_deviceid() sleeps in wait_for_completion() and never returns, and it holds nn->bl_mutex across that wait, so every later device resolution in the net namespace blocks behind it.

Add a .release_pipe that completes an upcall blkmapd has consumed and left unanswered. Completing an upcall retires it, so a message the framework has already purged is no longer in flight and is not completed a second time here.

The Linux kernel CVE team has assigned CVE-2026-99378 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 3.1 with commit fe0a9b740881d181e3c96c1f6f6043e252692ffe and fixed in 6.12.117 with commit e4db79581b42ced776b726587571969aac162c74
	Issue introduced in 3.1 with commit fe0a9b740881d181e3c96c1f6f6043e252692ffe and fixed in 6.18.61 with commit 9b89bd161183277fe08077f7877b495ec53a2440
	Issue introduced in 3.1 with commit fe0a9b740881d181e3c96c1f6f6043e252692ffe and fixed in 7.3.2 with commit 1c46038a0117c4495783edc8a7532dbda7828e49
	Issue introduced in 3.1 with commit fe0a9b740881d181e3c96c1f6f6043e252692ffe and fixed in 7.4-rc1 with commit 2a25cc8e984610828a526086313b8a7aeefe507d

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-99378

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
fs/nfs/blocklayout/rpc_pipefs.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/e4db79581b42ced776b726587571969aac162c74
	https://git.kernel.org/stable/c/9b89bd161183277fe08077f7877b495ec53a2440
	https://git.kernel.org/stable/c/1c46038a0117c4495783edc8a7532dbda7828e49
	https://git.kernel.org/stable/c/2a25cc8e984610828a526086313b8a7aeefe507d