# CVE-2026-68312: cifs: fix cifsFileInfo leak on kmalloc failure in deferred close drain paths

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 7, 2026-11-26)
- **Published:** 2026-08-10T12:02:46.907Z
- **Modified:** 2026-10-30T13:19:43.427Z

## Who should check

- Anyone running Linux \>= e3fc065682ebbbd15b0ce0036800f4acbf765d46, \< 75143abc21f627da7ee3b0336814bd702692e830; \>= e3fc065682ebbbd15b0ce0036800f4acbf765d46, \< c968b2417f6a15d35ff4b97d534af4a126cb510b; \>= e3fc065682ebbbd15b0ce0036800f4acbf765d46, \< 7af7ec3af091f55d01f0ebe0246d10e37f358311; \>= e3fc065682ebbbd15b0ce0036800f4acbf765d46, \< 6089f561e2c31a3ba52836c75c7d2ab50d2eea41; \>= e3fc065682ebbbd15b0ce0036800f4acbf765d46, \< 32390b3f06f26e366cfb27dbac4bc0196c321535; \>= e3fc065682ebbbd15b0ce0036800f4acbf765d46, \< c2f2e83e3bbc5483730fd4ee903182761f1ae50f
- Anyone running Linux 5.15

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

## Affected and fixed versions

- Linux: \>= e3fc065682ebbbd15b0ce0036800f4acbf765d46, \< 75143abc21f627da7ee3b0336814bd702692e830; \>= e3fc065682ebbbd15b0ce0036800f4acbf765d46, \< c968b2417f6a15d35ff4b97d534af4a126cb510b; \>= e3fc065682ebbbd15b0ce0036800f4acbf765d46, \< 7af7ec3af091f55d01f0ebe0246d10e37f358311; \>= e3fc065682ebbbd15b0ce0036800f4acbf765d46, \< 6089f561e2c31a3ba52836c75c7d2ab50d2eea41; \>= e3fc065682ebbbd15b0ce0036800f4acbf765d46, \< 32390b3f06f26e366cfb27dbac4bc0196c321535; \>= e3fc065682ebbbd15b0ce0036800f4acbf765d46, \< c2f2e83e3bbc5483730fd4ee903182761f1ae50f (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-68312. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-68312.md
Affected: Linux >= e3fc065682ebbbd15b0ce0036800f4acbf765d46, < 75143abc21f627da7ee3b0336814bd702692e830; >= e3fc065682ebbbd15b0ce0036800f4acbf765d46, < c968b2417f6a15d35ff4b97d534af4a126cb510b; >= e3fc065682ebbbd15b0ce0036800f4acbf765d46, < 7af7ec3af091f55d01f0ebe0246d10e37f358311; >= e3fc065682ebbbd15b0ce00…
Fixed in: Linux 75143abc21f627da7ee3b0336814bd702692e830, Linux 7af7ec3af091f55d01f0ebe0246d10e37f358311, Linux 6089f561e2c31a3ba52836c75c7d2ab50d2eea41, Linux 32390b3f06f26e366cfb27dbac4bc0196c321535

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-68312 being exploited?

There is no confirmed exploitation: CVE-2026-68312 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-68312?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-68312?

Linux \>= e3fc065682ebbbd15b0ce0036800f4acbf765d46, \< 75143abc21f627da7ee3b0336814bd702692e830; \>= e3fc065682ebbbd15b0ce0036800f4acbf765d46, \< c968b2417f6a15d35ff4b97d534af4a126cb510b; \>= e3fc065682ebbbd15b0ce0036800f4acbf765d46, \< 7af7ec3af091f55d01f0ebe0246d10e37f358311; \>= e3fc065682ebbbd15b0ce0036800f4acbf765d46, \< 6089f561e2c31a3ba52836c75c7d2ab50d2eea41; \>= e3fc065682ebbbd15b0ce0036800f4acbf765d46, \< 32390b3f06f26e366cfb27dbac4bc0196c321535; \>= e3fc065682ebbbd15b0ce0036800f4acbf765d46, \< c2f2e83e3bbc5483730fd4ee903182761f1ae50f; Linux 5.15.

### Is there a fix for CVE-2026-68312?

Yes. Fixed in Linux 75143abc21f627da7ee3b0336814bd702692e830, Linux 7af7ec3af091f55d01f0ebe0246d10e37f358311, Linux 6089f561e2c31a3ba52836c75c7d2ab50d2eea41, Linux 32390b3f06f26e366cfb27dbac4bc0196c321535. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-68312?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/75143abc21f627da7ee3b0336814bd702692e830>
- other: <https://git.kernel.org/stable/c/c968b2417f6a15d35ff4b97d534af4a126cb510b>
- other: <https://git.kernel.org/stable/c/7af7ec3af091f55d01f0ebe0246d10e37f358311>
- other: <https://git.kernel.org/stable/c/6089f561e2c31a3ba52836c75c7d2ab50d2eea41>
- other: <https://git.kernel.org/stable/c/32390b3f06f26e366cfb27dbac4bc0196c321535>
- other: <https://git.kernel.org/stable/c/c2f2e83e3bbc5483730fd4ee903182761f1ae50f>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-68312>

HTML: <https://flawdb.com/CVE-2026-68312> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-68312>
