CVE-2026-138813

nvmet: free the bvec on file namespace range errors

7.5 high EPSS 0.76%

Published 30 Nov 2026 Updated 1 Dec 2026 CNA: Linux

Check your servers for CVE-2026-138813

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-138813 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

7.5 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.76%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 56.4% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 50a909db36f244bcfec6e02598d31c0b0a468175, before 44d71f6d84dcea7ba11874cae075c9fa552829eb
affected from 50a909db36f244bcfec6e02598d31c0b0a468175, before 50d4554df460676538753d7c71c79d8a49e19e47
affected from 50a909db36f244bcfec6e02598d31c0b0a468175, before 58e624d9cf2c1e6fa4bb0697c771c1783c36c403
affected from 50a909db36f244bcfec6e02598d31c0b0a468175, before 9c53aff85435e3ba0a8b33d8b2f50ef7464f138c
affected from 50a909db36f244bcfec6e02598d31c0b0a468175, before 1cfc0f64b3fbbfca2169213f63f7811447240a96
affected from 50a909db36f244bcfec6e02598d31c0b0a468175, before ef062530729f0ddc738ac60a7966567836573e67
affected from 50a909db36f244bcfec6e02598d31c0b0a468175, before 19c237734e1f83f4fd7fbf29eb817f8f0c831d99
affected from 50a909db36f244bcfec6e02598d31c0b0a468175, before 9d820d55b3cb4859c7cf42a74dc78f6154f97398
Other versions: unaffected
Linux
affected 5.0
unaffected before 5.0
unaffected from 5.10.275 up to and including 5.10.*
unaffected from 5.15.226 up to and including 5.15.*
unaffected from 6.1.193 up to and including 6.1.*
unaffected from 6.6.163 up to and including 6.6.*
unaffected from 6.12.117 up to and including 6.12.*
unaffected from 6.18.63 up to and including 6.18.*
unaffected from 7.3.4 up to and including 7.3.*
unaffected 7.4-rc1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-138813 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-138813

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-138813
trivy image --scanners vuln IMAGE | grep CVE-2026-138813

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-138813 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.