Skip to contentSkip to conversation

CVE-2026-90150: pnfs/blocklayout: Fix device leaks on parse failure

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

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: Fix device leaks on parse failure

bl_parse_concat() and bl_parse_stripe() allocate a child device array and then parse each child in turn. If parsing a child fails, the failed child is not counted in nr_children and the parent may be left with a children array that bl_free_device() will not release when nr_children is zero.

Release the failed child and the already parsed children before returning the error. Also make bl_free_device() release the child array whenever the children pointer is set, so that partially initialised concat or stripe devices are cleaned up correctly.

bl_parse_scsi() can also fail after assigning d->bdev_file and dropping the file reference. Clear the pointer after fput() so that an outer cleanup path does not put it again.

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

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

	Issue introduced in 3.18 with commit 5c83746a0cf2831d4b59f5cf99ef5fbf138564e4 and fixed in 6.12.110 with commit 8a2494964edac2a13e82441c2bf887548dc3be0b
	Issue introduced in 3.18 with commit 5c83746a0cf2831d4b59f5cf99ef5fbf138564e4 and fixed in 6.18.52 with commit 1e1c36b206c659cf94c6755a1d821ed1babd32bc
	Issue introduced in 3.18 with commit 5c83746a0cf2831d4b59f5cf99ef5fbf138564e4 and fixed in 7.2.6 with commit 23e4162405c456ce12c772d5882d306135e828ae
	Issue introduced in 3.18 with commit 5c83746a0cf2831d4b59f5cf99ef5fbf138564e4 and fixed in 7.3-rc1 with commit c056f817e4200fb18079d5052c273a22f191ff0a

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-90150

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/dev.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/8a2494964edac2a13e82441c2bf887548dc3be0b
	https://git.kernel.org/stable/c/1e1c36b206c659cf94c6755a1d821ed1babd32bc
	https://git.kernel.org/stable/c/23e4162405c456ce12c772d5882d306135e828ae
	https://git.kernel.org/stable/c/c056f817e4200fb18079d5052c273a22f191ff0a