CVE-2026-68312

cifs: fix cifsFileInfo leak on kmalloc failure in deferred close drain paths

No CVSS score yet EPSS 0.21%

Published 10 Aug 2026 Updated 30 Oct 2026 CNA: Linux

Check your servers for CVE-2026-68312

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-68312 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:

cifs: fix cifsFileInfo leak on kmalloc failure in deferred close drain paths

In cifs_close_deferred_file(), cifs_close_all_deferred_files(), and cifs_close_deferred_file_under_dentry(), when a pending deferred close is cancelled via cancel_delayed_work(), the subsequent kmalloc_obj() to add the file to the local processing list may fail under memory pressure. The loop breaks immediately, but the cancelled work is no longer pending (it would have called _cifsFileInfo_put()), and the cfile is never added to file_head for processing. The cifsFileInfo reference and the open server handle both leak.

Fix by saving the cfile that failed allocation in a local variable, breaking as before, and calling _cifsFileInfo_put() on it after releasing the lock. Any files later in the iteration are unaffected since their deferred work is still pending and will fire normally.

Exploitation

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

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from e3fc065682ebbbd15b0ce0036800f4acbf765d46, before 75143abc21f627da7ee3b0336814bd702692e830
affected from e3fc065682ebbbd15b0ce0036800f4acbf765d46, before c968b2417f6a15d35ff4b97d534af4a126cb510b
affected from e3fc065682ebbbd15b0ce0036800f4acbf765d46, before 7af7ec3af091f55d01f0ebe0246d10e37f358311
affected from e3fc065682ebbbd15b0ce0036800f4acbf765d46, before 6089f561e2c31a3ba52836c75c7d2ab50d2eea41
affected from e3fc065682ebbbd15b0ce0036800f4acbf765d46, before 32390b3f06f26e366cfb27dbac4bc0196c321535
affected from e3fc065682ebbbd15b0ce0036800f4acbf765d46, before c2f2e83e3bbc5483730fd4ee903182761f1ae50f
Other versions: unaffected
Linux
affected 5.15
unaffected before 5.15
unaffected from 6.1.191 up to and including 6.1.*
unaffected from 6.6.160 up to and including 6.6.*
unaffected from 6.12.114 up to and including 6.12.*
unaffected from 6.18.57 up to and including 6.18.*
unaffected from 7.1.6 up to and including 7.1.*
unaffected 7.2 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-68312 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-68312

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-68312
trivy image --scanners vuln IMAGE | grep CVE-2026-68312

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-68312 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.