Incident response on call, 24/7: +385 98 1900 984NewIR Retainer: a team on contract before an attack
HR · EN
High 7.5CVE-2026-138813

nvmet: free the bvec on file namespace range errors

Published 30/11/2026 · Updated 01/12/2026 · Linux

Description

In the Linux kernel, the following vulnerability has been resolved: nvmet: free the bvec on file namespace range errors nvmet_file_execute_rw() allocates the bvec before nvmet_file_execute_io() checks whether the request fits in the backing file. If the request extends beyond the file, nvmet_file_execute_io() calls nvmet_req_complete() to return an error. This skips nvmet_file_io_done(), so the allocated memory is never freed. Repeated requests can exhaust memory. Use nvmet_file_io_done() to free the bvec before returning the range error to the client.

Affected products and versions

Linux Linux50a909db36f244bcfec6e02598d31c0b0a468175 – < 44d71f6d84dcea7ba11874cae075c9fa552829eb · 50a909db36f244bcfec6e02598d31c0b0a468175 – < 50d4554df460676538753d7c71c79d8a49e19e47 · 50a909db36f244bcfec6e02598d31c0b0a468175 – < 58e624d9cf2c1e6fa4bb0697c771c1783c36c403 · 50a909db36f244bcfec6e02598d31c0b0a468175 – < 9c53aff85435e3ba0a8b33d8b2f50ef7464f138c · 50a909db36f244bcfec6e02598d31c0b0a468175 – < 1cfc0f64b3fbbfca2169213f63f7811447240a96 · 50a909db36f244bcfec6e02598d31c0b0a468175 – < ef062530729f0ddc738ac60a7966567836573e67 · 50a909db36f244bcfec6e02598d31c0b0a468175 – < 19c237734e1f83f4fd7fbf29eb817f8f0c831d99 · 50a909db36f244bcfec6e02598d31c0b0a468175 – < 9d820d55b3cb4859c7cf42a74dc78f6154f97398Fixed in: 44d71f6d84dcea7ba11874cae075c9fa552829eb · 50d4554df460676538753d7c71c79d8a49e19e47 · 58e624d9cf2c1e6fa4bb0697c771c1783c36c403 · 9c53aff85435e3ba0a8b33d8b2f50ef7464f138c · 1cfc0f64b3fbbfca2169213f63f7811447240a96 · ef062530729f0ddc738ac60a7966567836573e67 · 19c237734e1f83f4fd7fbf29eb817f8f0c831d99 · 9d820d55b3cb4859c7cf42a74dc78f6154f97398
Linux Linux5.0Fixed in: 5.10.275 · 5.15.226 · 6.1.193 · 6.6.163 · 6.12.117 · 6.18.63 · 7.3.4 · 7.4-rc1

CVSS vector, explained

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Attack vector
Network (from the internet)
Attack complexity
Low
Privileges required
None (no login)
User interaction
Not required
Scope
Vulnerable component only
Confidentiality
None
Integrity
None
Availability
High impact

References

Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.