CVE-2026-138813

Source
https://cve.org/CVERecord?id=CVE-2026-138813
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138813.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-138813
Published
2026-11-30T13:25:13Z
Modified
2026-11-30T15:01:06Z
Summary
nvmet: free the bvec on file namespace range errors
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138813.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
50a909db36f244bcfec6e02598d31c0b0a468175
Fixed
44d71f6d84dcea7ba11874cae075c9fa552829eb
Fixed
50d4554df460676538753d7c71c79d8a49e19e47
Fixed
58e624d9cf2c1e6fa4bb0697c771c1783c36c403
Fixed
9c53aff85435e3ba0a8b33d8b2f50ef7464f138c
Fixed
1cfc0f64b3fbbfca2169213f63f7811447240a96
Fixed
ef062530729f0ddc738ac60a7966567836573e67
Fixed
19c237734e1f83f4fd7fbf29eb817f8f0c831d99
Fixed
9d820d55b3cb4859c7cf42a74dc78f6154f97398

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138813.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.0.0
Fixed
5.10.275
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.226
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.117
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.63
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138813.json"