pnfs/blocklayout: Fix device leaks on parse failure
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel c056f817e4200fb18079d5052c273a22f191ff0a, Kernel 1e1c36b206c659cf94c6755a1d821ed1babd32bc, Kernel 23e4162405c456ce12c772d5882d306135e828ae and 8 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=5c83746a0cf2831d4b59f5cf99ef5fbf138564e4 <c056f817e4200fb18079d5052c273a22f191ff0a, >=5c83746a0cf2831d4b59f5cf99ef5fbf138564e4 <1e1c36b206c659cf94c6755a1d821ed1babd32bc, >=5c83746a0cf2831d4b59f5cf99ef5fbf138564e4 <23e4162405c456ce12c772d5882d306135e828ae, >=5c83746a0cf2831d4b59f5cf99ef5fbf138564e4 <51d162dfb618f6cf3aa5e331c0305e27771ad884, >=5c83746a0cf2831d4b59f5cf99ef5fbf138564e4 <710ae187a5d490a894054d17645cf5c83d37dfbf, >=5c83746a0cf2831d4b59f5cf99ef5fbf138564e4 <8a2494964edac2a13e82441c2bf887548dc3be0b, =3.18 | c056f817e4200fb18079d5052c273a22f191ff0a, 1e1c36b206c659cf94c6755a1d821ed1babd32bc, 23e4162405c456ce12c772d5882d306135e828ae, 51d162dfb618f6cf3aa5e331c0305e27771ad884, 710ae187a5d490a894054d17645cf5c83d37dfbf, 8a2494964edac2a13e82441c2bf887548dc3be0b |
| linux-kernel: Kernel | >=6.13.0 <6.18.52, >=6.19.0 <7.2.6, >=6.2.0 <6.6.160, >=6.7.0 <6.12.110, >=3.18.0 <6.1.191 | 6.18.52, 7.2.6, 6.6.160, 6.12.110, 6.1.191 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket