CVE-2026-138813
7.5high
nvmet: free the bvec on file namespace range errors
- Severity
- 7.5high CVSS:3.1 by Linux
- Exploit likelihood
- 0.76% (higher than 56% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 and 1 more 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.* | CVE List |
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-138813 changed 2026-12-01 | CVE Terms of Use |
| NVD | CVE-2026-138813 changed 2026-12-01 | Public domain |