# CVE-2026-138813: nvmet: free the bvec on file namespace range errors

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.76%, higher than 56% of CVEs (2026-12-01)
- Published: 2026-11-30T13:25:13.127Z
- Modified: 2026-12-01T06:17:27.603Z
- Assigned by: 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 50a909db36f244bcfec6e02598d31c0b0a468175 before 44d71f6d84dcea7ba11874cae075c9fa552829eb; from 50a909db36f244bcfec6e02598d31c0b0a468175 before 50d4554df460676538753d7c71c79d8a49e19e47; from 50a909db36f244bcfec6e02598d31c0b0a468175 before 58e624d9cf2c1e6fa4bb0697c771c1783c36c403; from 50a909db36f244bcfec6e02598d31c0b0a468175 before 9c53aff85435e3ba0a8b33d8b2f50ef7464f138c; from 50a909db36f244bcfec6e02598d31c0b0a468175 before 1cfc0f64b3fbbfca2169213f63f7811447240a96; from 50a909db36f244bcfec6e02598d31c0b0a468175 before ef062530729f0ddc738ac60a7966567836573e67; from 50a909db36f244bcfec6e02598d31c0b0a468175 before 19c237734e1f83f4fd7fbf29eb817f8f0c831d99; from 50a909db36f244bcfec6e02598d31c0b0a468175 before 9d820d55b3cb4859c7cf42a74dc78f6154f97398; 5.0 (not affected: before 5.0; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.117 up to 6.12.*; from 6.18.63 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/44d71f6d84dcea7ba11874cae075c9fa552829eb>
- <https://git.kernel.org/stable/c/50d4554df460676538753d7c71c79d8a49e19e47>
- <https://git.kernel.org/stable/c/58e624d9cf2c1e6fa4bb0697c771c1783c36c403>
- <https://git.kernel.org/stable/c/9c53aff85435e3ba0a8b33d8b2f50ef7464f138c>
- <https://git.kernel.org/stable/c/1cfc0f64b3fbbfca2169213f63f7811447240a96>
- <https://git.kernel.org/stable/c/ef062530729f0ddc738ac60a7966567836573e67>
- <https://git.kernel.org/stable/c/19c237734e1f83f4fd7fbf29eb817f8f0c831d99>
- <https://git.kernel.org/stable/c/9d820d55b3cb4859c7cf42a74dc78f6154f97398>

## Sources

- CVE List: [CVE-2026-138813](https://www.cve.org/CVERecord?id=CVE-2026-138813), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-138813](https://nvd.nist.gov/vuln/detail/CVE-2026-138813), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-138813 · Whole record: https://cve.day/CVE-2026-138813.json · Rebuilt by cve.day 2026-12-01T06:32:14.287Z
